Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot write as user on automounted ext3 in Gnome
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lexming
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2007
Posts: 123
Location: Barcelona

PostPosted: Mon Jan 18, 2010 1:03 pm    Post subject: Cannot write as user on automounted ext3 in Gnome Reply with quote

Hi,
I have an external USB HD with 3 partitions, 2 EXT3 and 1 NTFS. Every partition is automounted correctly and it appears on the Gnome desktop. The problem is that I cannot write on the EXT3 partitions as non-root user. The funny thing is that the NTFS partition works perfectly, it automounts and I can read/write it.

In the gconf editor there are settings for autmounting NTFS and other types of partitions where I can set the uid= option, but there aren't such things for EXT3 partitions. Do you know where I could set those permissions on automounted EXT3 partitions?

BTW, I don't have any reference to external drives on my fstab. And this is not a fresh gentoo installation, I think that this feature got broken on my system after the gnome 2.26 upgrade.

Thanks a lot! :)
Back to top
View user's profile Send private message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 264

PostPosted: Mon Jan 18, 2010 1:33 pm    Post subject: Reply with quote

How much free disk space is left? Maybe you reserved the default 5% for the exclusive use by root? You can check for reserved memory by running tune2fs -l /dev/sdXY - it should show something like that if disabled:

Code:

Reserved block count:     0


If that's the problem you can fix it by running tune2fs -r 0 /dev/... after unmounting the filesystem. You surely won't need reserved space on a USB disk.

What does the kernel say? (dmesg) Did you check any logs?
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Jan 18, 2010 1:39 pm    Post subject: Reply with quote

Reserved space is needed to keep fragmentation low. I wouldn't recommend disabling it. Depending on drive use and size 5% may be too much, you have to make an educated decision.
Back to top
View user's profile Send private message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 264

PostPosted: Mon Jan 18, 2010 1:48 pm    Post subject: Reply with quote

AFAIK 5% are not enough to maintain low fragmentation. I remember having read that 15% was the recommended space that would need to remain free, but it also depends on the filesystem and its version. However, if you run below 5-10% you usually simply need the space and don't care about fragmentation any more. Instead you should delete the largest files ASAP and don't keep it that low for long. Since it's a USB disk I guess that's the usual case, so turning it off (or setting it to a low amount like 1% by using -m 1) would be okay. I would always reserve some memory on a root system, though.

Being a USB disk with rather slow transfer rates I would assume that even a higher fragmentation rate doesn't change much; seek times on the disk and the cache refillment should be faster than the transfer from the internal cache to the connected PC. At least if the system is doing some read-ahead. But feel free to correct me if I'm wrong; I rarely use USB HDDs.
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
lexming
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2007
Posts: 123
Location: Barcelona

PostPosted: Mon Jan 18, 2010 2:29 pm    Post subject: Reply with quote

Thank you for the comments.

The most filled partition has 40% of free space, so I don't think that the reserved space is causing the problem.

This is the dmesg when I plug in the HD
Code:
usb 1-1: new high speed USB device using ehci_hcd and address 6
usb 1-1: New USB device found, idVendor=1058, idProduct=1010
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: External HDD   
usb 1-1: Manufacturer: Western Digital
usb 1-1: SerialNumber: 57442D57584E3330394A4335373230
usb 1-1: configuration #1 chosen from 1 choice
scsi9 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 9:0:0:0: Direct-Access     WD       5000BEV External 1.75 PQ: 0 ANSI: 4
sd 9:0:0:0: Attached scsi generic sg2 type 0
sd 9:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 9:0:0:0: [sdb] Write Protect is off
sd 9:0:0:0: [sdb] Mode Sense: 23 00 00 00
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sd 9:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1 sdb2 sdb3
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sd 9:0:0:0: [sdb] Attached SCSI disk
EXT4-fs (sdb2): barriers enabled
kjournald2 starting: pid 10714, dev sdb2:8, commit interval 5 seconds
EXT4-fs (sdb2): internal journal on sdb2:8
EXT4-fs (sdb2): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (sdb2): mounted filesystem with ordered data mode


And here the tune2fs report
Code:
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          893a2aaf-71d8-448a-bac8-b3e430735d90
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              7806976
Block count:              31223584
Reserved block count:     1561179
Free blocks:              12321249
Free inodes:              7402261
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1016
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Tue Apr 21 22:13:09 2009
Last mount time:          Mon Jan 18 15:19:49 2010
Last write time:          Mon Jan 18 15:19:49 2010
Mount count:              5
Maximum mount count:      -1
Last checked:             Mon Jan 18 12:08:48 2010
Check interval:           15552000 (6 months)
Next check after:         Sat Jul 17 13:08:48 2010
Lifetime writes:          473 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:             256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      11d7d2f8-3d10-441c-8b47-b57c7bc7f087
Journal backup:           inode blocks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum