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: (2) </ [1] 2 >/

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

reply to topic new topic new poll
Topic: Mount at Boot< Next Oldest | Next Newest >
squiffiness Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Jan. 22 2006,18:30 QUOTE

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.
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Jan. 23 2006,03:58 QUOTE

Does adding:

mount /mnt/hda1

(or equivalent device location)

to your /opt/bootlocal.sh

help?
Back to top
Profile PM 
squiffiness
Unregistered






Posted: Jan. 23 2006,12:58 QUOTE

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
Back to top
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Jan. 23 2006,17:20 QUOTE

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.
Back to top
Profile PM 
squiffiness Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Jan. 23 2006,23:39 QUOTE

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
Back to top
Profile PM 
6 replies since Jan. 22 2006,18:30 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Mount at Boot

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