Applet for detecting the filesystem type.
Tito
farmatito at tiscali.it
Wed Nov 24 13:12:56 UTC 2010
On Tuesday 23 November 2010 11:00:57 Sameer Naik wrote:
> Hello,
>
> I am using busybox-1.15.2. I am writing a hotplug script for mdev to
> automount usb disk drives with ext2, ext3, vfat, ntfs-3g file systems.
> In my hotplug script i need to figure out the label of the disk
Hi,
why do you need to autodetect it, just try if one of them works:
for fstype in ext2 ext3 vfat ntfs-3g last
do
if test "x$fstype" = "xlast" ; then
echo "Fstype not supported"
break
fi
mount -t $fstype /dev/$UUID /mnt/$LABEL
if test "x$?" = "x0" ; then
break
fi
done
Just my 0,2 cents
Ciao,
Tito
> partition as well as the filesystem type. To get the label i found the
> 'blkid' applet that prints out the label as well as the UUID of the
> partition, but does not print the filesystem type.
>
> I would like to know if there is any existing applet in busybox so as
> to determine the file system type of a disk partition.
>
> Thanks and Regards
> ~Sameer
More information about the busybox
mailing list