Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Agent_007 on November 04, 2010, 12:54:41 PM

Title: What does mount tool actually do?
Post by: Agent_007 on November 04, 2010, 12:54:41 PM
I installed Tiny Core Linux yesterday, and I have some issues with mount. I have USB 320GB drive (ext3 and single partition) which mounts nicely if I use mount tool and click the red text to green. But I would like to do this automatically and I don't know how. If I do mount /dev/sda1 or mount -a nothing happens (aka /mnt/sda1 stays empty). I removed noauto from /usr/sbin/rebuildfstab but no automount for me.

So what command(s) the mount tool uses or is there some way to automount the USB drive on startup?
Title: Re: What does mount tool actually do?
Post by: gerald_clark on November 04, 2010, 02:33:27 PM
Add "mount /mnt/sda1" to /opt/bootlocal.sh
Title: Re: What does mount tool actually do?
Post by: Lee on November 04, 2010, 03:27:28 PM
Code: [Select]
mount /dev/sda1 /mnt/sda1
should work, either in /opt/bootlocal.sh or at the command line (as root).

Is your drive perhaps an external, usb-connected drive?
Title: Re: What does mount tool actually do?
Post by: maro on November 04, 2010, 06:53:09 PM
To be able to run a 'mount /dev/something' from '/opt/bootlocal.sh' it is important that at the time that 'rebuildfstab' is called in '/etc/init.d/tc-config' ALL respective devices were correctly recognised by the kernel. For USB drives this will require in almost all cases to use the 'waitusb=x' boot code (with a suitable choosen delay value of 'x' seconds, e.g. 5, 10 or 15). I trust your were aware of the need to use 'waitusb', but is your value "good enough"?

To troubleshoot your issue I'd suggest to insert ( date ; cat '/etc/fstab' ) >> /tmp/boot.log at the very start of '/opt/bootlocal.sh'. That way you'd be able to tell whether '/etc/fstab' has all the entries at the critical point in time.
Title: Re: What does mount tool actually do?
Post by: Agent_007 on November 05, 2010, 06:16:36 AM
Add "mount /mnt/sda1" to /opt/bootlocal.sh

That works. Thanks.