Tiny Core Base > TCB Q&A Forum
What does mount tool actually do?
(1/1)
Agent_007:
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?
gerald_clark:
Add "mount /mnt/sda1" to /opt/bootlocal.sh
Lee:
--- Code: ---mount /dev/sda1 /mnt/sda1
--- End code ---
should work, either in /opt/bootlocal.sh or at the command line (as root).
Is your drive perhaps an external, usb-connected drive?
maro:
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.
Agent_007:
--- Quote from: gerald_clark on November 04, 2010, 11:33:27 AM ---Add "mount /mnt/sda1" to /opt/bootlocal.sh
--- End quote ---
That works. Thanks.
Navigation
[0] Message Index
Go to full version