You are not logged in.

#1 2008-04-10 07:34:46

synthead
Member
Registered: 2006-05-09
Posts: 1,337

[solved] Permissions for an external USB hard drive w/ XFCE

I have a Seagate external HDD that interfaces via USB.  On it, I have two partitions, a FAT32 partition and an ext3 partition.  I can write to the FAT32 parition just fine as a regular user, no problem.  But on the ext3 partition, it's read-only to my regular user.  I can browse it and mount it as a user via XFCE's built-in volume management stuff, but not write.  How can I allow writing to the drive?

Last edited by synthead (2008-05-08 07:57:22)

Offline

#2 2008-04-10 09:32:55

_nalle
Member
From: Stockholm/Sweden
Registered: 2006-01-11
Posts: 70
Website

Re: [solved] Permissions for an external USB hard drive w/ XFCE

How does your /etc/fstab look? It should be mounted with the atleast these two flags: rw , user.

This should allow your user to mount the drive as read/write. If this doesn't work there is a more advanced way by using the gid and uid flags. This however is abit tricky and you should really google some before attempting to use it as you will be frustrated when it won't work :-)


Swedish Archlinux Mirror Administrator - ftp.gigabit.nu

Offline

#3 2008-04-10 19:40:09

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] Permissions for an external USB hard drive w/ XFCE

I will definately take a look into it when I get back home, thanks big_smile

I didn't have to do anything to my other USB storage drives, why is this one different?

Offline

#4 2008-05-08 04:39:05

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] Permissions for an external USB hard drive w/ XFCE

What I don't understand is if I pop a USB flash drive into my computer, it lets me read and write.  It doesn't matter what it is, if it's a USB flash drive, HAL will allow normal users to write.  It's a mass storage device, and so is this Seagate, so why does it matter?  Shouldn't it follow suit for hard drives too?

Another thing I don't understand is, well, say I pop in a USB flash drive.  My computer will probably assign it to /dev/sdb.  If I put my hard drive in afterwards, it'll set it up as /dev/sdc.  So how do I set the permissions with ftab if the drive letters are going to fluctuate all the time?  I suppose I could make other changes so it doesn't, but it seems like there should be a more elegant way to do this.

Offline

#5 2008-05-08 06:29:35

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: [solved] Permissions for an external USB hard drive w/ XFCE

deleted

Last edited by Misbah (2012-02-14 04:27:05)

Offline

#6 2008-05-08 07:18:15

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] Permissions for an external USB hard drive w/ XFCE

How do I find UUIDs?

I haven't solved this problem yet.

Offline

#7 2008-05-08 07:20:41

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] Permissions for an external USB hard drive w/ XFCE

Ah, I found it.  /dev/disk/by-uuid ... then ls -l smile  I'm working on getting this sorted now, I'll try your suggestions smile

Offline

#8 2008-05-08 07:29:57

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] Permissions for an external USB hard drive w/ XFCE

Well, same problem even after modifying fstab ...

[max@gayforceone mnt]$ cat /etc/fstab
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
/dev/sda1 swap swap defaults 0 0
/dev/sda2 / ext3 defaults 0 1

# shmfs /dev/shm shm defaults 0 0

UUID=38c016a6-51e1-477f-848f-a333e9bc3f37 /mnt/seagay ext3 rw,users,noauto 0 0
[max@gayforceone mnt]$ mount seagay
[max@gayforceone mnt]$ cd seagay && ls
Install_Samorost2.exe  apps    etc      lost+found  pics     stuff
Jenna                  disk-1  games    max         pwn_bak  vids
Recycled               docs    homemax  music       stash
[max@gayforceone seagay]$ mkdir ff
mkdir: cannot create directory `ff': Permission denied
[max@gayforceone seagay]$ groups
disk wheel video audio optical storage max
[max@gayforceone seagay]$

Offline

#9 2008-05-08 07:57:11

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] Permissions for an external USB hard drive w/ XFCE

Offline

#10 2008-05-08 08:14:13

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: [solved] Permissions for an external USB hard drive w/ XFCE

deleted

Last edited by Misbah (2012-02-14 04:26:05)

Offline

#11 2008-05-08 16:36:18

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [solved] Permissions for an external USB hard drive w/ XFCE

Misbah wrote:

I was thinking about making a fstab line for my external USB drive as well so as a regular user I could read/write it (I can only do that by root) but what if the drive is off when you boot? Won't you get an error during the fsck sequence?

@Misbah
This may help you.  Look for where he talks about elective mount point:  http://kmandla.wordpress.com/2008/03/17 … istro-nfs/.

Offline

Board footer

Powered by FluxBB