DSL doesn't mount fstab-partitions at boot.


Forum: HD Install
Topic: DSL doesn't mount fstab-partitions at boot.
started by: endrebj

Posted by endrebj on Dec. 04 2007,14:40
My /etc/fstab looks like this
Code Sample
/dev/hda3 / ext3 defaults,errors=remount-ro  0  1
/dev/hda4 /home/dsl/lagring ext3 defaults 0 0
10.0.0.13:/home/filserver/storlagring/ /home/dsl/mnt/filserver/ nfs rsize=8192,wsize=8192,timeo=14,intr
proc /proc proc defaults  0  0
/dev/fd0 /mnt/auto/floppy vfat defaults,user,noauto,showexec,umask=022  0  0
/dev/cdrom /mnt/auto/cdrom iso9660 defaults,ro,user,noexec,noauto  0  0
/dev/hda1 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda1 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda2 /mnt/hda2 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda4 /mnt/hda4 ext3 noauto,users,exec 0 0

But none of the partitions I have specified (/dev/hda4, /dev/hda1, NFS-drive) are mounted during the boot. Everyone gets mounted perfectly when I run # mount -a.
And DSL/Knoppix also add the auto-partitions during each boot, even though I remove them each time.

What do I have to do to mount my partitions (/dev/hda4 and the NFS-drive) automatically during boot? Isn't /etc/fstab the right file?

Posted by roberts on Dec. 04 2007,16:23
By default DSL is deisgned to be nomadic, therefore, not mount 'others' hard drives. Your answer depends on how you 'installed' DSL. DSL does not really promote traditional hard drive installations.
But if that is yours, add nofstab and the fstab will not be rebuilt. If mount -a works for you then use it. Add to the rc.scripts, /etc/init.d/knoppix-autoconfig ( just after the fstab check) or possibly /opt/bootlocal.sh depending on your requirements.

Posted by endrebj on Dec. 04 2007,21:10
OK. I added nofstab to menu.lst, and mount -a to /opt/bootlocal.sh. It works perfect! Thanks! :)

But it uses about 2 minutes to mount the nfs-share. Do you see anything inefficient in the mount-string? It has always used that long time, also when it was not mounted during boot.
My Ubuntu-machine mounts the same nfs-share in no time.

Posted by roberts on Dec. 04 2007,21:30
Usually a delay like that indicates a nameserver lookup trying to resolve name to ip. Perhaps adding an entry into /etc/hosts?
Posted by endrebj on Dec. 04 2007,22:16
What should I add to /etc/hosts? Name and adress for the client or server?

I was wrong in the last post. It doesn't use 2 minutes to mount. It uses 5 (!) minutes to mount.
And I get a couple of error messages (but it mounts successfully at the end):
portmap: server localhost not responding, timed out
portmap: server localhost not responding, timed out
lockd_up: makesock failed, error=5
portmap: server localhost not responding, timed out

Posted by Ridgeland on July 28 2008,22:09
Quote
add nofstab and the fstab will not be rebuilt

I edited /etc/fstab to mount partitions like I want them, then I deleted all the KNOPPIX lines.  I added    nofstab   to the kernel line in menu.lst and rebooted.  I still get a bunch of "# Added by KNOPPIX" in /etc/fstab.  What did I do wrong?  At the GRUB menu I used e then e to verify I'm booting a line with nofstab.
I also added   mount -a   to /opt/bootlocal.sh.  That works fine.  Now the partitions mount where my edits to /etc/fstab tells them to.  I don't see that the KNOPPIX adds mounted anything in /mnt/hdax.  Partitions are mounted where I wanted them.  It's just uncomfortable to have unwanted edits done to /etc/fstab.

Posted by lucky13 on July 28 2008,22:53
Quote
I still get a bunch of "# Added by KNOPPIX" in /etc/fstab.  What did I do wrong?

Nothing. That's the beauty of knoppix! It will continually rewrite your fstab for you.

Thankfully, Robert removed many of the extraneous filesystem modules so those no longer load as a result of the knoppix scripts (especially /sbin/hotplug-knoppix and its call to /usr/sbin/rebuildfstab). This is one of the primary reasons why I think "Debian-style" hard drive installs with DSL are too much of a hassle. These scripts are fine (ideal even) for CD/frugal-type installs but not for traditional hard drive installs.

Posted by Ridgeland on July 29 2008,02:13
You're right I am adding DSL as a traditional hard drive installation.
I still have my 1996 Gateway GP5-200 (Pentium 5 at 200MHz) 256MB RAM.  I have SuSE 10.1, Xubuntu 7.04, ZenWalk 5.2, Puppy v4.0 all on it's 40GB hard drive.  On this old PC only DSL will actually turn off the PC on shutdown, the others reboot! or leave the screen and PC on waiting for me to push in the switch for 5 seconds.  Kernel 2.4 vs. 2.6 maybe.  DSL is also faster than SuSE and Xubuntu.  Since DSL is mounting my partitions in the directories of my choice this issue is not worth pursuing.  I did wade around in rc5.d, etc/init.d/dsl-functions and more, but I did not wander across a script that edits fstab.
On to other issues ... useradd, auto login, mydsl, ssh, ... I'll enjoy myself  :)

Posted by lucky13 on July 29 2008,04:49
Quote
...1996 Gateway GP5-200 (Pentium 5 at 200MHz)...

Pentium 2 (probably MMX). With 256MB of RAM, you should reconsider using a frugal install and running toram. There's not much need for all those other things you have cluttering up your hard drive (Puppy?! ugh). The power-off is related to ACPI/APM, not a kernel-specific difference.

If you insist on keeping/using hard drive install, there are a few things I recommend updating and changing. There's a WWW link at the bottom of each of my posts that goes to my blog, where I have a DSL Hard Drive page linked on the top right hand side. I was going add more content related to un-knoppix'ing things but haven't yet. None of that is germane, though, if you use a frugal install and then have the rest of your hard drive for other things.

edit... one update to my hard drive page:
OpenSSH_5.0p1, OpenSSL 0.9.8h 28 May 2008

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.