Perhaps /etc/init.d/local.sh is executing the mount command before the kernel recognizes the usb device.Try mounting by UUID in case the device name is wrong. Find the UUID with the blkid command, mount UUID= instead of /dev/sdb1.Verify the UUID is correct in terminal with a manual mount if you have problem. If this fails then use /etc/fstab with UUID.
After boot, my usb hasn't been mounted. But when I manuely click on it (inside the folder browser) , the usb is mounted on "usbdisk" ... so that's a good thing.
But how can have it automatically mounted ? I need it as I use my usb to store programs (thanks to "tazpkg link)
But the device is not mounted after boot. But when I click on it manually with PcManFm, the device is mounted on /media/usbdisk (and not on /media/disk as it is by default) .
I've add this in /etc/init.d/local.sh
mount -t ext3 /dev/disk/by-uuid/236388c3-954f-4ba7-9365-ef7e03c6988e /media/usbdisk
But it change nothing ...
So the first command seems to allocate a mount point but the second command doesn't mount it automatically
---------
For internal harddrives, the last command is suffisent and works, but for SDcard and USB , it doesn't work and I've tested it on 2 PC
@ Toto, I've read that page. But I think that I've put the right option "defaults"
I though about it , I've tested it ..... but no ..
Also, I've try/put this command in local.sh
mount -a
But, as before, it works only if I do it manually after boot in a terminal (the device is mounted in the right place)
As usual, I've got this message in the Boot LOG
Starting local startup commands... mounting UUID=236388c3-954f-4ba7-9365-ef7e03c6988e on /media /usbdisk failed: No such file or directory Starting all daemons specified in /etc/rcS.conf...
(So it show that local.sh is effectively executed)
I will search for a way to execute the mount later in the boot chronology.
mount -t ext3 /dev/disk/by-uuid/236.. the UUID of your device.... 3c6988e /media/usbdisk
at the end of /etc/init.d/rcS file is the solution .
I don't know if is at suitable solution , but it works.
Beside this, The advantage to specify the mount point in fstab , apparently, is that the device will be always related to that one. So, If you unmount it , and then re-mount it , it still be associated with the mount point specified in fstab (and not /media/disk by default) . Another advantage to specify in fstab, is that you can precise the mount options (like read-only)
Actually, if you want have your usb automatically mounted, you have to avoid to plug another usb (even a mouse) or try to launch a package on it, both before open pcmanfm or acces the usb's folders with Xterm.
.... :(
Slitaz should have a kind of gui box to manage automatic mount .
Is anybody wanting to share some feedback of their experience ?
Maybe you could write a udev rule. This way you can specify a particular device name to your usb key. It also alows you to execute a script whenever the usb key is plugged.
Add this line to the script file? (note busybox sleep cmd) Change sleep option/variable accordingly, depending on how long you need before kernel actually activates usb devices?
/bin/busybox sleep 10; mount -t ext3 /dev/sdb1 /media/flash