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 Thu 02 Oct 2014, 08:49
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 Posts_count  
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: 11109
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: 11109
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0586s ][ Queries: 12 (0.0066s) ][ GZIP on ]