WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: What does mount tool actually do?  (Read 3938 times)

Offline Agent_007

  • Newbie
  • *
  • Posts: 2
What does mount tool actually do?
« 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?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: What does mount tool actually do?
« Reply #1 on: November 04, 2010, 02:33:27 PM »
Add "mount /mnt/sda1" to /opt/bootlocal.sh

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: What does mount tool actually do?
« Reply #2 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?
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: What does mount tool actually do?
« Reply #3 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.

Offline Agent_007

  • Newbie
  • *
  • Posts: 2
Re: What does mount tool actually do?
« Reply #4 on: November 05, 2010, 06:16:36 AM »
Add "mount /mnt/sda1" to /opt/bootlocal.sh

That works. Thanks.