LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-14-2008, 05:48 PM   #1
roofninja
Member
 
Registered: Jan 2006
Location: Asheville, NC
Distribution: 64 bit - ubuntu 7.10
Posts: 84

Rep: Reputation: 15
external firewire hard drive is read only


I am having problems with my external hard drive. It is a firewire drive. When I turn it on and the PC sees it, all the files are read only. What am I doing wrong? Thanks for any help.

mtab:
/dev/sdb1 /media/disk vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077,usefree 0 0
 
Old 02-14-2008, 06:13 PM   #2
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
This is what I have in mine:
/dev/sda2 /media/disk rw,uid=1000,gid=1000 0 0

Can see if your uid is 1000 ? Type in a console

$ id

and see. Otherwise can you post

$ cd /media
$ id
$ ls -l
 
Old 02-14-2008, 07:37 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 679Reputation: 679Reputation: 679Reputation: 679Reputation: 679Reputation: 679
Quote:
Originally Posted by roofninja View Post
I am having problems with my external hard drive. It is a firewire drive. When I turn it on and the PC sees it, all the files are read only. What am I doing wrong? Thanks for any help.

mtab:
/dev/sdb1 /media/disk vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077,usefree 0 0
The usefree option is one I'm not familiar with. According to your posted mtab entry, it is read-write for the user with a uid of 1000.

When I searched on Google for the "usefree" option, I found this patch. It sounds like Ubuntu is using a new mount option but didn't update the HAL fdi policies to accommodate the change.
Code:
diff -Nur -x '*.orig' -x '*~' ubuntu/fdi/policy/10osvendor/20-storage-methods.fdi ubuntu.new/fdi/policy/10osvendor/20-storage-methods.fdi
--- ubuntu/fdi/policy/10osvendor/20-storage-methods.fdi    2007-08-27 17:34:05.000000000 +0200
+++ ubuntu.new/fdi/policy/10osvendor/20-storage-methods.fdi    2007-10-23 11:18:49.000000000 +0200
@@ -202,6 +202,7 @@
       <append key="volume.mount.valid_options" type="strlist">fmask=</append>
       <append key="volume.mount.valid_options" type="strlist">uid=</append>
       <append key="volume.mount.valid_options" type="strlist">flush</append>
+      <append key="volume.mount.valid_options" type="strlist">usefree</append>
     </match>
     <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
       <append key="volume.mount.valid_options" type="strlist">longnames</append>
You might grep for "usefree" on your system and see if that is the case.
Code:
locate '/fdi/policy/10osvender/'
# cd to the located folder
grep -R usefree *
If you don't find it, check if you have updated your system. If you have, you might want to submit a bug.

In the meantime, you could either decide whether this patch is correct and apply it yourself, or manually mount the drive without the "usefree" option.

----

Also check your "/var/log/messages" logfile. If there is a problem mounting a filesystem, the problem should be logged.

Last edited by jschiwal; 02-14-2008 at 07:40 PM.
 
Old 02-16-2008, 02:25 PM   #4
roofninja
Member
 
Registered: Jan 2006
Location: Asheville, NC
Distribution: 64 bit - ubuntu 7.10
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by biophysics View Post
This is what I have in mine:
/dev/sda2 /media/disk rw,uid=1000,gid=1000 0 0

Can see if your uid is 1000 ? Type in a console

$ id

and see. Otherwise can you post

$ cd /media
$ id
$ ls -l
I checked my id and Yes my id is 1000.
 
Old 02-16-2008, 04:26 PM   #5
roofninja
Member
 
Registered: Jan 2006
Location: Asheville, NC
Distribution: 64 bit - ubuntu 7.10
Posts: 84

Original Poster
Rep: Reputation: 15
jschiwal:

I checked the system and yes it has the "usefree" stuff in the fdi files. It took me a while to find what you were talking about, but it was fun learning something new. You also asked me to check my logfiles and that is what I get:

Feb 16 16:10:57 nc-ub64 kernel: [ 289.121061] sdb: sdb1
Feb 16 16:10:57 nc-ub64 kernel: [ 289.128953] sd 6:0:0:0: [sdb] Attached SCSI disk
Feb 16 16:10:57 nc-ub64 kernel: [ 289.128975] sd 6:0:0:0: Attached scsi generic sg1 type 0

I didn't get any errors and the system keeps seeing it as read only.
 
Old 02-16-2008, 04:41 PM   #6
roofninja
Member
 
Registered: Jan 2006
Location: Asheville, NC
Distribution: 64 bit - ubuntu 7.10
Posts: 84

Original Poster
Rep: Reputation: 15
I ran a dmesg | tail and this is what I got.

[ 790.762350] sd 7:0:0:0: [sdb] Got wrong page
[ 790.762352] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 790.762354] sdb: sdb1
[ 790.767448] sd 7:0:0:0: [sdb] Attached SCSI disk
[ 790.767470] sd 7:0:0:0: Attached scsi generic sg1 type 0
[ 816.979080] FAT: Filesystem panic (dev sdb1)
[ 816.979083] fat_get_cluster: invalid cluster chain (i_pos 0)
[ 816.979086] File system has been set read-only
[ 851.053137] ieee1394: Node changed: 0-01:1023 -> 0-00:1023
[ 851.053143] ieee1394: Node suspended: ID:BUS[0-00:1023] GUID[0001a39500030316]

Maybe this is why the drive has been read only. How do I fix this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Will Ubuntu Recognize My External Firewire Hard Drive? BlahBlah_X Ubuntu 5 01-17-2007 10:18 AM
Mounting an external firewire hard drive: how? Choke Linux - Hardware 2 02-11-2005 01:42 PM
External Firewire Hard drive not detected wellwatch Linux - Hardware 1 10-11-2004 10:42 AM
Firewire external hard drive and Yellow Dog macsphere Linux - Laptop and Netbook 1 08-22-2004 02:10 PM
External firewire 120 gig hard drive??? Thetawaves Slackware 5 10-10-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration