[Grml] /etc/fstab and mounting USB drives
Tom White
tom at bulldogcountry.com
Sat Nov 4 00:03:39 CET 2006
On Fri, 3 Nov 2006, Michael Prokop wrote:
> Please show output of:
>
> # vol_id /dev/usb-sda1
# vol_id /dev/usb-sda1
ID_FS_USAGE=filesystem
ID_FS_TYPE=ntfs
ID_FS_VERSION=3.1
ID_FS_UUID=CEE64717E646FEE9
ID_FS_LABEL=MX320G
ID_FS_LABEL_SAFE=MX320G
> Basically I wanted to avoid another fstype-check in rebuildfstab.
> "auto" works pretty well, everything the kernel is aware of works OOTB.
> The rw becomes ro as soon as the kernel isn't sure whether rw really
> works. Check the syslog when mounting the device, is it *really* rw?
syslog doesn't have much to say:
Nov 3 16:56:02 grml kernel: NTFS volume version 3.1.
But
# mount
...
/dev/usb-sda1 on /mnt/usb-sda1 type ntfs
(rw,nosuid,nodev,noexec,noatime,uid=1000,gid=1000,fmask=0177,dmask=077,nls=iso8859-1,errors=continue,mft_zone_multiplier=1)
Thanks,
-- Tom White
On Fri, 3 Nov 2006, Michael Prokop wrote:
> * Tom White <tom at bulldogcountry.com> [20061103 14:53]:
> > The latest rebuildfstab in my grml installed on hd has these entries:
>
> > LABEL=MX320G /mnt/MX320G ntfs
> > noauto,user,dev,suid,exec,ro,umask=000,uid=tom,gid=tom 0 0 # /dev/sda1
>
> > /dev/usb-sda1 /mnt/usb-sda1 auto
> > user,noauto,nodev,noatime,nosuid,noexec,rw,uid=tom,gid=tom 0 0
>
> > Those are the same drive.
>
> > mount /mnt/MX320G
>
> > doesn't work; it complains about no LABEL=MX320G device.
>
> Please show output of:
>
> # vol_id /dev/usb-sda1
>
> when your device is available as /dev/usb-sda1. (Seems to be a
> problem with ntfs.)
>
> > mount /mnt/usb-sda1
>
> > does work, but I don't like the "rw" on my ntfs file system.
>
> Basically I wanted to avoid another fstype-check in rebuildfstab.
> "auto" works pretty well, everything the kernel is aware of works OOTB.
> The rw becomes ro as soon as the kernel isn't sure whether rw really
> works. Check the syslog when mounting the device, is it *really* rw?
>
> > Here's another pair from /etc/fstab that mount a vfat fs:
>
> > LABEL=MX200G /mnt/MX200G vfat
> > noauto,user,dev,suid,exec,umask=000,uid=tom,gid=tom 0 0 # /dev/sdb1
>
> > /dev/usb-sdb1 /mnt/usb-sdb1 auto
> > user,noauto,nodev,noatime,nosuid,noexec,rw,uid=tom,gid=tom 0 0
>
> > Both
>
> > mount /mnt/MX200G
>
> > and
>
> > mount /mnt/usb-sdb1
>
> > work.
>
> Thanks, seems that vfat works but ntfs causes headaches once more. :(
>
> regards,
> -mika-
> --
> http://grml.org/ # Linux for texttool-users and sysadmins
> http://wiki.grml.org/ # share your knowledge
> http://grml.supersized.org/ # the grml development weblog
> #grml @ irc.freenode.org # meet us on irc
More information about the Grml
mailing list