External USB HDD

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

RE: External USB HDD

Postby youlikeicecream » Sat Jun 04, 2005 9:42 am

drwxr-xr-x 9 root root 32768 2005-06-04 10:39 LACIE

is my Dir listing
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

RE: External USB HDD

Postby youlikeicecream » Sat Jun 04, 2005 9:56 am

after clicking the auto icon on the desktop which mounts /dev/sdb1 to /media/sdb1

i used mount to move the mounted directory :

root@Kubuntu:/mnt/LACIE # mount --move /media/sdb1 /mnt/LACIE
root@Kubuntu:/mnt/LACIE # cd ..
root@Kubuntu:/mnt # ls -la
total 76
drwxr-xr-x 6 root root 4096 2005-06-02 00:25 .
drwxr-xr-x 22 root root 4096 2005-06-01 18:38 ..
drwx------ 9 mike mike 32768 2005-06-04 10:51 LACIE
drwxr-xr-x 4 root root 16384 1970-01-01 01:00 LinMusic
drwxr-xr-x 5 root root 16384 1970-01-01 01:00 LinSwap
drwxr-xr-x 2 root root 4096 2005-06-01 20:09 VIDEO
root@Kubuntu:/mnt #

notice that now the whole filesystem belongs to me and only i can write to it and view it. although this works it is really messy, what is going on here ?

Mike :)
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

RE: External USB HDD

Postby Nigel » Sat Jun 04, 2005 10:05 am

Try doing a chmod 777 on /mnt/LACIE before you mount the disk...
then try
mount -t vfat -o rw /dev/sdb1 /mnt/LACIE
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

RE: External USB HDD

Postby youlikeicecream » Sat Jun 04, 2005 7:28 pm

tried that and this was result

root@Kubuntu:/mnt # ls -la
total 48
drwxr-xr-x 6 root root 4096 2005-06-02 00:25 .
drwxr-xr-x 22 root root 4096 2005-06-01 18:38 ..
drwxrwxr-x 2 root root 4096 2005-06-02 00:25 LACIE
drwxr-xr-x 4 root root 16384 1970-01-01 01:00 LinMusic
drwxr-xr-x 5 root root 16384 1970-01-01 01:00 LinSwap
drwxr-xr-x 2 root root 4096 2005-06-01 20:09 VIDEO
root@Kubuntu:/mnt # chmod 777 LACIE
root@Kubuntu:/mnt # ls -la
total 48
drwxr-xr-x 6 root root 4096 2005-06-02 00:25 .
drwxr-xr-x 22 root root 4096 2005-06-01 18:38 ..
drwxrwxrwx 2 root root 4096 2005-06-02 00:25 LACIE
drwxr-xr-x 4 root root 16384 1970-01-01 01:00 LinMusic
drwxr-xr-x 5 root root 16384 1970-01-01 01:00 LinSwap
drwxr-xr-x 2 root root 4096 2005-06-01 20:09 VIDEO
root@Kubuntu:/mnt # mount -t vfat -o rw /dev/sdb1 /mnt/LACIE
root@Kubuntu:/mnt # ls -la
total 76
drwxr-xr-x 6 root root 4096 2005-06-02 00:25 .
drwxr-xr-x 22 root root 4096 2005-06-01 18:38 ..
drwxr-xr-x 9 root root 32768 1970-01-01 01:00 LACIE
drwxr-xr-x 4 root root 16384 1970-01-01 01:00 LinMusic
drwxr-xr-x 5 root root 16384 1970-01-01 01:00 LinSwap
drwxr-xr-x 2 root root 4096 2005-06-01 20:09 VIDEO
root@Kubuntu:/mnt #

i give up .. will not use it the drive as I wanted to
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

RE: External USB HDD

Postby skecs » Sun Jun 05, 2005 3:07 am

Can you paste your /etc/fstab file?

I can remember having a similar problem mounting vfat partitions and changing the mount permissions (where it is just defaults) to include "rw,users" fixed the problem. Note the "s" on users - this allows users to mount the device.

I'm looking for my old details on fstab config - it's here somewhere :roll:
Regards from
Downunder!
.... _
... (0)>
... / /\
.. / / .)
.. V_/_
Linux Powered!
User avatar
skecs
 
Posts: 76
Joined: Fri Apr 22, 2005 9:22 am
Location: Bathurst, NSW Australia

RE: External USB HDD

Postby youlikeicecream » Sun Jun 05, 2005 7:55 am

/etc/fstab ....
(had to comment out LACIE for device to work from device icon on desktop)

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb9 /home ext3 defaults 0 2
/dev/hda10 /mnt/LinMusic vfat defaults 0 0
/dev/hdb10 /mnt/LinSwap vfat defaults 0 0
#/dev/sdb1 /mnt/LACIE vfat defaults 0 0
/dev/hdb7 /tmp ext3 defaults 0 2
/dev/hdb6 /usr ext3 defaults 0 2
/dev/hdb8 /var ext3 defaults 0 2
/dev/hda6 none swap sw 0 0
/dev/hdb5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

thanks :)
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

RE: External USB HDD

Postby youlikeicecream » Sun Jun 05, 2005 7:56 am

have recently noticed that I am also experiencing the same problems with the other two fat partitions, can't write to them also
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

RE: External USB HDD

Postby skecs » Sun Jun 05, 2005 9:35 am

I'm sure (do a man 5 fstab & man 8 mount at the terminal for more information) that with the three vfat devices you should change "defaults" to "rw,user,auto" and they should be mounted at boot time. If the LaCie drive isn't attached all the time change it to noauto.

Do this and reboot to flush everything and have /etc/fstab read again and it should work. The "defaults" settings are "rw, suid, dev, exec, auto, nouser, and async" which doesn't allow users to mount those devices/file systems.

Hope this helps.
Regards from
Downunder!
.... _
... (0)>
... / /\
.. / / .)
.. V_/_
Linux Powered!
User avatar
skecs
 
Posts: 76
Joined: Fri Apr 22, 2005 9:22 am
Location: Bathurst, NSW Australia

RE: External USB HDD

Postby youlikeicecream » Sun Jun 05, 2005 9:54 am

I think thats what Mandriva did in fstab and it worked, will try in a mojo.

cheers ta :)
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

RE: External USB HDD

Postby youlikeicecream » Sun Jun 05, 2005 10:03 am

Okay so tried that, pasting etc/fstab but still didn't work. Root is the owner but LinSwap and LinMusic are still writeabl;e for root only (World/Group readeable) and the LACIE wasn't even mounted.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb9 /home ext3 defaults 0 2
/dev/hda10 /mnt/LinMusic vfat rw,user,auto 0 0
/dev/hdb10 /mnt/LinSwap vfat rw,user,auto 0 0
/dev/sdb1 /mnt/LACIE vfat rw,user,auto 0 0
/dev/hdb7 /tmp ext3 defaults 0 2
/dev/hdb6 /usr ext3 defaults 0 2
/dev/hdb8 /var ext3 defaults 0 2
/dev/hda6 none swap sw 0 0
/dev/hdb5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

Postby M0PHP » Sun Jun 05, 2005 10:56 am

Don't know if this will work on a vfat partition but it's worth a go.

To allow other users to write, do this before mounting as pointed out previously in the thread.

# chmod 777 /mnt/LACIE
# ls -l /mnt|grep LACIE

That should give you drwxrwxrwx for LACIE, iirc.

Mount it, then do:

# chmod -R 777 /mnt/LACIE
(might take a while if its a big disk)
# ls -l /mnt|grep LACIE

(and it should be drwxrwxrwx again)

# ls -l /mnt/LACIE

You should now have (d)rwxrwxrwx under /LACIE and all of its subfolders and files.
User avatar
M0PHP
LXF regular
 
Posts: 737
Joined: Wed Apr 06, 2005 7:40 am
Location: Bishop Auckland, County Durham, UK

Postby youlikeicecream » Sun Jun 05, 2005 10:58 am

this has been tried before and after mounting. could it be because i have made the 160GB Lacie drive a single 157GB Primary FAT32 Partition, should it hav been a logical partition ?

Mike :)
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

Postby M0PHP » Sun Jun 05, 2005 11:00 am

Have you already ran chmod -R after mounting to make all the directories on the disk 777?

Hmm.. no Mike, that shouldn't affect it at all.
User avatar
M0PHP
LXF regular
 
Posts: 737
Joined: Wed Apr 06, 2005 7:40 am
Location: Bishop Auckland, County Durham, UK

Postby youlikeicecream » Sun Jun 05, 2005 11:05 am

tried it, yeah
youlikeicecream
LXF regular
 
Posts: 721
Joined: Fri Jun 03, 2005 11:40 am
Location: Oxford

Postby M0PHP » Sun Jun 05, 2005 11:08 am

Well, I don't know what else to suggest :?
User avatar
M0PHP
LXF regular
 
Posts: 737
Joined: Wed Apr 06, 2005 7:40 am
Location: Bishop Auckland, County Durham, UK

PreviousNext

Return to Help!

Who is online

Users browsing this forum: chris, Google [Bot] and 0 guests