Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Mounting /dev/hdaX at boot time..., Attempt to move /home and /opt< Next Oldest | Next Newest >
Wraithan Offline





Group: Members
Posts: 14
Joined: July 2006
Posted: July 31 2006,00:55 QUOTE

I will give that a go soon...

I can't see a frugal install being good on a computer that 166mhz and 64megs of ram... that is going to be running apache, mysql, php, xmms and icecast without upgrading the ram...

Unless there is a trick to making it take up no extra ram for being a frugal install.

EDIT: Also maybe a wiki page on Frugal installs? I don't even know exactly what they are other than they are like running DSL off the CD.
Back to top
Profile PM 
brianw Offline





Group: Members
Posts: 245
Joined: Sep. 2005
Posted: July 31 2006,01:54 QUOTE

in your boot line (grub or lilo) add the nofstab code and your fstab will remain persistent so any changes you make manually will last.  The fstab gets rebuilt everytime unless you put in the nofstab.  You could also put it in bootlocal.sh as mount commands but using the nofstab will stop all changes to your fstab file from being lost.

EDIT:  almost forgot that you need to tell the system when to mount the partitions.

One of my lines in fstab is:

/dev/hda7 /home ext2 defaults,users,exec 0 2

If there was a  0 where the 2 is at the end it would not get mounted automatically at boot up.  The 2 tells it in which order to mount the partition.  1 is used for the root partition which looks like this on my install:

/dev/hda6  /  ext2  defaults,errors=remount-ro  0  1

Yours would look something like:

/dev/hda2 /mnt/hda2 ext2 defaults,users,exec 0 2
/dev/hda3 /mnt/hda3 ext2 defaults,users,exec 0 2

or

/dev/hda2 /mnt/hda2 ext2 defaults,users,exec 0 2
/dev/hda3 /mnt/hda3 ext2 defaults,users,exec 0 3
Back to top
Profile PM 
Wraithan Offline





Group: Members
Posts: 14
Joined: July 2006
Posted: July 31 2006,02:12 QUOTE

Oh I see, So I need to set that last number to 2 and I shouldn't have any more issues with that? You, my sir, are a genius! (I mean that honestly, not sarcastically.)
Back to top
Profile PM 
Wraithan Offline





Group: Members
Posts: 14
Joined: July 2006
Posted: July 31 2006,16:47 QUOTE

Well, after some more indepth research, turns out brianw is wrong about the last number being the mount order... that number is the order that fsck is ran on the partitions.

http://humbug.org.au/talks/fstab/fstab_man.txt

I was looking through the scripts in /etc/rcS.d and I didn't see anywhere that mount -a is mentioned (the command to mount all the of the drives to the points specified in /etc/fstab) so it is looking like I will have to add a script to that directory to make it work...
Back to top
Profile PM 
brianw Offline





Group: Members
Posts: 245
Joined: Sep. 2005
Posted: July 31 2006,17:39 QUOTE

Sorry about that.  I know everything works for me and I have no problems at startup.  You could try putting a single line in /opt/bootlocal.sh:

mount -a

mounts all devices in fstab, this should solve your problem.  

In my palying around with my HD install I must have made other changes to make it work and didn't realize (must have the mount -a in somewhere else).  Thanks for the correction, constructive critisism helps us all learn.

EDIT:  found my mount -a.  Stuck it in knoppix-autoconfig to work with the nofstab code (did it when I added a code to not regenerate ld.so.cache and modules.dep unless I explicitely request it on bootup and forgot all about it).
Back to top
Profile PM 
12 replies since July 30 2006,17:12 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: Mounting /dev/hdaX at boot time...

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code