| Author |
Message |
penguinman007
Guest
|
Posted: Sun 17 Jul 2005, 21:01 Post subject:
How do I make changes to /etc/fstab permanent? |
|
I have puppy on a USB stick.
Changes to /etc/fstab do not seem to be permanent.
I assume /etc/fstab resides in ram, and is compied from a permanent location.
I need to know where this permanent location is.
So I can modify fstab.
(I want to automagically mount a network drive on startup)
Penguinman007
|
|
Back to top
|
|
 |
Jesse
Joined: 08 May 2005 Posts: 465 Location: Auckland, NZ
|
Posted: Sun 17 Jul 2005, 21:44 Post subject:
|
|
the file /etc/fstab is usually hiding in you pup001 file.
/etc directory is a symlink to /root/.etc if you have a pup001 file mounted on /root
I guess that can change depending on what boot process is chosen, like if you choose a grub boot option that excludes what I've said above.
I'm fairly sure that there are options that make a filesystem mounted at boot time, distinct and seperate from a file system that is required to be mounted as part of the system, and seperate from those where the partition is not mounted at boot.
In the fstab file, I think the first number after the options means "mount at boot", and the second number somehow indicates the ordering or concurrency of sequence of mounting.
I don't know if Barrys scripts use "mount -a" which is how those are supposed to happen, in the standard linux/unix way of doing this sort of thing.
here are some pages I found that might help:
http://www.computerhope.com/unix/umount.htm
http://linux.about.com/od/commands/l/blcmdl8_mount.htm
Jesse
|
|
Back to top
|
|
 |
penguinman007
Guest
|
Posted: Sun 17 Jul 2005, 22:05 Post subject:
|
|
Thanks Jesse.
|
|
Back to top
|
|
 |
penguinman007
Guest
|
Posted: Sun 17 Jul 2005, 22:30 Post subject:
|
|
Changes to /root/.etc/fstab are not permanent.
When I edit this file, the changes are not present after re-boot.
So there must be a master location for this file (fstab) somewhere.
?
|
|
Back to top
|
|
 |
penguinman007
Guest
|
Posted: Sun 17 Jul 2005, 22:41 Post subject:
|
|
Changes to /root/.etc/fstab are not permanent.
When I edit this file, the changes are not present after re-boot.
So there must be a master location for this file (fstab) somewhere.
?
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10818 Location: The Peoples Republic of California
|
Posted: Mon 18 Jul 2005, 01:58 Post subject:
|
|
| penguinman007 wrote: | Changes to /root/.etc/fstab are not permanent.
When I edit this file, the changes are not present after re-boot.
So there must be a master location for this file (fstab) somewhere.
? |
I like to start with certain partitions mounted. I mount them in ~/.etc/rc.d/rc.local
I have a script I run to unmount them before I reboot.
|
|
Back to top
|
|
 |
thoughtjourney
Joined: 04 May 2005 Posts: 61 Location: Sutton, NSW
|
Posted: Mon 18 Jul 2005, 07:49 Post subject:
|
|
| Quote: | | I have a script I run to unmount them before I reboot. |
Bruce, would you mind posting this script? I've had trouble properly umounting drives at shtdown, and would like to see what you have done differently to me
Thanks, heaps!
_________________ in the beginning was the Logos
http://thoughtjourney.aus.cc
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Mon 18 Jul 2005, 18:45 Post subject:
|
|
/tmp/rc.reboot is run when Puppy shuts down ... Puppy 1.0.3 overwrites /etc/rc.d/rc.reboot now, so you can't edit it anymore (the changes will be overwritten)
you can copy /etc/rc.d/rc.reboot somewhere (maybe call it rc.myreboot) and edit the copy, and put a line in an init script like rc.local that copies rc.myreboot to /tmp/rc.reboot
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10818 Location: The Peoples Republic of California
|
Posted: Fri 22 Jul 2005, 10:40 Post subject:
|
|
[quote="thoughtjourney"] | Quote: |
Bruce, would you mind posting this script? I've had trouble properly umounting drives at shtdown, and would like to see what you have done differently to me Thanks, heaps! |
A script could be like this:
| Code: | #!/bin/sh
umount /dev/hda6
umount /dev/hdc1 |
Or it could be on the mount points
| Code: | #!/bin/sh
umount /mnt/hda6
umount /mnt/hdc1 |
|
|
Back to top
|
|
 |
|