Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Apr 2014, 08:16
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How do I make changes to /etc/fstab permanent?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
penguinman007
Guest


PostPosted: 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

PostPosted: 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
View user's profile Send private message 
penguinman007
Guest


PostPosted: Sun 17 Jul 2005, 22:05    Post subject:  

Thanks Jesse.
Back to top
penguinman007
Guest


PostPosted: 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


PostPosted: 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: 11050
Location: The Peoples Republic of California

PostPosted: 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
View user's profile Send private message 
thoughtjourney

Joined: 04 May 2005
Posts: 61
Location: Sutton, NSW

PostPosted: 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 Smile

Thanks, heaps!

_________________
in the beginning was the Logos

http://thoughtjourney.aus.cc
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: 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
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11050
Location: The Peoples Republic of California

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0482s ][ Queries: 11 (0.0033s) ][ GZIP on ]