Mount at Boot


Forum: HD Install
Topic: Mount at Boot
started by: squiffiness

Posted by squiffiness on Jan. 22 2006,18:30
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.

Posted by cbagger01 on Jan. 23 2006,03:58
Does adding:

mount /mnt/hda1

(or equivalent device location)

to your /opt/bootlocal.sh

help?

Posted by squiffiness on Jan. 23 2006,12:58
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

Posted by cbagger01 on Jan. 23 2006,17: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.

Posted by squiffiness on Jan. 23 2006,23:39
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

Posted by cyberoidx on Jan. 24 2006,15:48
Windows harddisks are vfat format not ext3 maybe u made a mistake there.. )

and there is another code for NTFS i guess.

Posted by squiffiness on Jan. 25 2006,00:43
Quote (cyberoidx @ Jan. 24 2006,10:48)
Windows harddisks are vfat format not ext3 maybe u made a mistake there.. )

and there is another code for NTFS i guess.

I appreciate the response.

I did a 'native install' however and erased my hard drive 100%. My partitions are:

/dev/hda1 linuxswap
/dev/hda2 linux ext3 mounted as /
/dev/hda3 linux ext3 mounted as /musicshare

Therefore, all my partitions are linux type. I have no fat32 or NTFS partitions in this system.

If the partitions were NTFS or vfat, my experience is that DSL will still find them and will autopopulate the /etc/fstab and mtab files correctly.

It even catches the NTFS stuff and mounts it read only.

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