HD Install :: Mount at Boot



OK Guys....

Love DSL...so much that I did a hard drive install.

*But*, after 72 hours of looking (off and on, of course), I _cannot_ find any information on how to get a partition that is properly configured in /etc/mtab and /etc/fstab to mount automatically on boot.

The only real issue is I run my box headless as a Samba fileserver with SSH. I can get all the pieces working _except_ the mount needed for my Windoze users to see.

Once I SSH in and mount the partition and restart Samba, all is well.

Help me Obi Wan, you're my only hope.

Does adding:

mount /mnt/hda1

(or equivalent device location)

to your /opt/bootlocal.sh

help?

Quote (cbagger01 @ Jan. 22 2006,22:58)
Does adding:

mount /mnt/hda1

(or equivalent device location)

to your /opt/bootlocal.sh

help?

CBagger,

Thanks for the reply...something I considered.

I'm not sure whether adding a mount command to bootlocal.sh is the right way to go for me.

If one looks at the various /etc/rcX.d directories, particularly for runlevel 2 and 5, you will see that bootlocal.sh runs as a symlink as 'S99bootlocal'

Effectively, in my _specific_ setup, I'd have the mount command, the samba startup and then another piece of perl-based software starting all around the same time as S99 scripts. I also do _not_ do autologin, instead waiting in runlevel 2 at the command prompt...so having stuff run as initscripts rather than a shell script at S99 is still a problem.

As such, since the sequence needs to be:

1) mount /dev/hdaX
2) form the samba share mounted at /share/music
3) start the open source perl-based software

Having them fire up almost simultaneously is a problem.

I've tried modifying my /etc/fstab manually to add the share, but for some reason (that may be specific to Knoppix variants), it doesn't appear to mount the share.

The /etc/fstab entry for the drive is as follows:

Code Sample

/dev/hdaX /share/foo ext3 defaults 0 0


This has worked in all my other Linux variants to mount such a partition on boot...so why not here?

Desperately seeking sharemount.

Squif

KNOPPIX/DSL does not automatically mount all partitions listed in /etc/fstab

My advice is if you want better timing, include all functions in your /opt/bootlocal.sh

In other words:

mount /mnt/hda1
...
pause
...
start samba services
...
pause
...
call the open source perl script  &

You will probably need to place the call to the script as a background process by adding an "&" character at the end of the line or otherwise your /opt/bootlocal.sh will never finish executing until after your perl script is complete.

Quote (cbagger01 @ Jan. 23 2006,12:20)
KNOPPIX/DSL does not automatically mount all partitions listed in /etc/fstab

My advice is if you want better timing, include all functions in your /opt/bootlocal.sh

In other words:

mount /mnt/hda1
...
pause
...
start samba services
...
pause
...
call the open source perl script  &

You will probably need to place the call to the script as a background process by adding an "&" character at the end of the line or otherwise your /opt/bootlocal.sh will never finish executing until after your perl script is complete.

Cbagger:

Thanks so much for the fast reply...that's why I dig the open source community so much.

Would it be too cheeky to use time.microsoft.com as my NTP sync server?

Perhaps...this last piece of my DSL install is now in place...

Cheers.

Squiff

Next Page...
original here.