Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: forsik on May 12, 2012, 05:46:14 AM
-
I have a problem with mounting usb hard drive on its UUID
Installed packages: fuse, fusecompress, ntfs-3g, ntfs-3g-adv
# blkid
/dev/sdc1: UUID="6054DA9E54DA766E" TYPE="ntfs"
# sudo mount -t ntfs-3g UUID=6054DA9E54DA766E /home/ftp
ntfs-3g: Failed to access volume "uuid=6054DA9E54DA766E": No such file or directory
mount: uuid=6054DA9E54DA766E on /home/ftp failed:No such device
but
# Sudo mount-t ntfs-3g/dev/sdc1 /home/ftp
it is ok
What is the problem?
-
Hi forsik
I'm not so sure that mount will take a UUID as a parameter. Try it this way:
sudo mount -t ntfs-3g `blkid -U 6054DA9E54DA766E` /home/ftp
You might also want to read the Info file for ntfs-3g-adv.tcz which states:
*** This extension conflicts with the regular extension ***
*** ntfs-3g and they should not be used at the same time. ***
-
Even if regular mount does, mount.ntfs3g might not. Check the help for both.
-
I just re-read the help for the mount utility that comes with util-linux.tcz, and it states:
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
The help for the busybox version (bin/mount) makes no mention of UUID.
-
# sudo mount -t ntfs-3g `blkid -U 6054DA9E54DA766E` /home/ftp
The line solved the problem. I hope this is the right way.
It is strange that a simple mounting by uuid does not work in tinycore, I tried to do the same in slitaz linux, it worked
Thanks to all :)
Is it possible to mount a usb drive via fstab? fstab is required uuid ...
If fstab causes difficulties, tell in what the script to insert this line to startup? /opt/bootlocal.sh ?
-
Hi forsik
If you install util-linux.tcz then the following should work:
sudo mount -t ntfs-3g -U 6054DA9E54DA766E /home/ftpBear in mind, Tinycore is designed to be a lightweight distribution. As a result, many of the commands
included in the default install are supplied by busybox, and don't have all the bells and whistles of their
full featured counterparts. Using the blkid command will work with all versions of mount. If you need full
featured versions of any of the busybox commands, check AppBrowser. For a list of commands
supplied by busybox, type busybox.
-
you should avoid the ntfs-3g-adv extension because the current ntfs-3g will have most likely more features and will be more stable at the same time. besides of that, I suggest using labels for mounting and setting them with ntfslabel e.g. so that it your devices look like
/dev/sda3: LABEL="DATA" UUID="01947F7B03E63E78" TYPE="ntfs"
because UUIDs really don't make sense for manually mounting and umounting partitions or for humans at all IMHO.
fstab doesn't require UUIDs, labels work as well (but only with util-linux.tcz, not with the busybox mount).
UUID=6054DA9E54DA766E /mnt/sdc1 ntfs-3g noauto,users,exec 0 0
LABEL=DATA /mnt/sdc1 ntfs-3g noauto,users,exec 0 0
another option would be to refer in fstab directly to the symlinks (to avoid util-linux.tcz)
/dev/disk/by-uuid/6054DA9E54DA766E /mnt/sdc1 ntfs-3g noauto,users,exec 0 0
/dev/disk/by-label/DATA /mnt/sdc1 ntfs-3g noauto,users,exec 0 0
but those links are not created by our udev.
@curaga: is this a configure option for udev? I didn't find a udevadm cmd to force the creation of those symlinks either... mhm.
-
Busybox mount does support uuid/label, but we have the volumeid options disabled for smaller bb size.
For the udev links, they need additional helpers and so not shipped in the base. You can grab udev-extra for the helpers, and the mentioned rules from an udev 173 source tarball.