-----Original Message----- From: Jonathan Dye [mailto:jon@pecorous.co.uk] Sent: 21 May 2004 10:51 To: Jenny Hopkins Cc: main@lists.alug.org.uk Subject: Re: [ALUG] mini usbdrive and permissions
Jenny Hopkins wrote:
Morning, Does anyone know if I can do anything about my mini usbdrive and permissions? Because I have to mount it vfat, any linux
files I copy
to and from end up with ownership and permissions
completely screwed.
It's an Iomega somethingorother and I mount it thusly:
mount /dev/sda1
/mnt/usbdrive -t vfat
You could mount it as umsdos rather than vfat. From the kernel documentation:
"Umsdos is not a file system per se, but a twist to make a boring one into a useful one.
It gives you:
long file names Permissions and owners Links Special files (devices, pipes...) All that is needed to be a linux root fs."
The first time you mount the usb device you'll have to run umssync /mnt/usbdrive to create the magic --linux-.--- files which actually store the owner/group and permission stuff but after that if you mount the drive as umsdos then everything should just look unixy from then on.
JD
This seems to have confused the device a bit. Below is a log of what I was attempting to do, starting with including the umsdos module in the running kernel. Now I can't mount the device umsdos without the process hanging and getting a D, or mounting elsewhere as vfat as it says /sda1 is already mounted (but if I try to umount it it says it isn't mounted) Thanks, jen
<--SNIP--> if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.20; fi ducati:/usr/src/linux-2.4.20# mount /dev/sda1 /mnt/usbdrive/ -t umsdos ducati:/usr/src/linux-2.4.20# umssync /mnt/usbdrive bash: umssync: command not found ducati:/usr/src/linux-2.4.20# apt-cache search umssync ducati:/usr/src/linux-2.4.20# apt-cache search umsdos umsdos - utilities for controlling a umsdos filesystem ducati:/usr/src/linux-2.4.20# apt-get install umsdos Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: umsdos 0 upgraded, 1 newly installed, 0 to remove and 191 not upgraded. Need to get 18.7kB of archives. After unpacking 65.5kB of additional disk space will be used. Get:1 ftp://ftp.uk.debian.org testing/main umsdos 1.13-2.1 [18.7kB] Fetched 18.7kB in 17s (1063B/s) Selecting previously deselected package umsdos. (Reading database ... 51207 files and directories currently installed.) Unpacking umsdos (from .../umsdos_1.13-2.1_i386.deb) ... Setting up umsdos (1.13-2.1) ... Syncing UMSDOS filesystems ...
ducati:/usr/src/linux-2.4.20# umssync /mnt/usbdrive This utility must operate on a directory of a umsdos mounted file system. Even an msdos file system won't do. If this is the case umount the file system and remount it as a umsdos one. ducati:/usr/src/linux-2.4.20# umount /mnt/usbdrive Segmentation fault ducati:/usr/src/linux-2.4.20# mount /dev/sda1 /mnt/usbdrive/ -t umsdos
....and i was left hanging here.
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________