Koozali.org: home of the SME Server

Mounting USB disk under ibay

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Mounting USB disk under ibay
« on: March 06, 2008, 08:57:52 AM »
Ive read the faq and other forum posts on this and can't seem to find an answer to my question.

This is what I did ;

1) Created ibay 'usbdisk' [group:everyone | read/write:group]
2) Plugged in usb disk
3) mount -t vfat -o rw /dev/sdc1 /home/e-smith/files/ibays/usbdisk/files

Great, I can see the files on the usb disk in windows exploder however I cannot write files? I then tried ;

4) chown root:shared -R /home/e-smith/files/ibays/usbdisk/files
5) chmod -R 777 /home/e-smith/files/ibays/usbdisk/files (or similar)

Edit: At 4) Once mounted 'files' becomes root:root - in actual fact root can write from cli ...

Thinks - this is a permissions issue ... so, showing a glaring hole in my basic knowledge of mount I did the following crazy things to get this working for now - its temporary anyway just to get all the survey videos onto the drive, once.

I removed 'files' directory from the end of the ibay path. Plugging in the usbdisk creates /media/NO_NAME so I create a softlink to /media/NO_NAME called 'files' instead

/home/e-smith/files/ibays/usbdisk # ln -s files /media/NO_NAME

I then added below to bottom of /etc/fstab

/dev/sdc1 /media/NO_NAME vfat auto,users,rw,exec,umask=000 0 0

(I don't know the meaning of all the switches but will try and catch up on reading soon :)
http://www.tuxfiles.org/linuxhelp/fstab.html
http://www.tech-faq.com/umask.shtml

Issuing 'mount /media/NO_NAME' the usbdisk showed up on the ibay share and I could write to it :)

Probably doing all the wrong things but with a working outcome !

« Last Edit: March 06, 2008, 08:10:00 PM by gbentley »
"If you don't know what you want, you end up with a lot you don't."