Bug 400979 - External Hard Drive Not Mounted Correctly
Summary: External Hard Drive Not Mounted Correctly
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 10.3
: P2 - High : Major with 1 vote (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-17 17:38 UTC by Benjamin McCann
Modified: 2009-02-03 04:46 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
NTFS error in Dolphin (75.89 KB, image/png)
2008-07-24 02:33 UTC, Benjamin McCann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin McCann 2008-06-17 17:38:54 UTC
Even when logged in as root, I can't write to my external hard drive. The drive is formatted as NTFS and I do have ntfs-3g and fuse installed. When I tried to change the permissions, I got the message: "chmod: changing permissions of '/media/externalHardDrive': Read-only file system".  When I view the drive's properties in Konqueror, under the mounting tab, "Read only" is not checked which is extremely confusing since I keep getting messages to the contrary.
Comment 1 Benjamin McCann 2008-06-19 03:22:28 UTC
I tailed /var/log/messages and then plugged the drive in.  It looks like there was some problem because of the line that says: "Jun 18 23:29:51 chameleon-htpc kernel: NTFS-fs error (device sdc1): load_system_files(): $LogFile is not clean.  Mounting read-only.  Mount in Windows."


Jun 18 23:29:49 chameleon-htpc kernel: usb 5-6: new high speed USB device using ehci_hcd and address 8
Jun 18 23:29:49 chameleon-htpc kernel: usb 5-6: new device found, idVendor=13fd, idProduct=1340
Jun 18 23:29:49 chameleon-htpc kernel: usb 5-6: new device strings: Mfr=1, Product=2, SerialNumber=3
Jun 18 23:29:49 chameleon-htpc kernel: usb 5-6: Product: External
Jun 18 23:29:49 chameleon-htpc kernel: usb 5-6: Manufacturer: Generic
Jun 18 23:29:49 chameleon-htpc kernel: usb 5-6: SerialNumber: WD-WCASU2365975
Jun 18 23:29:49 chameleon-htpc kernel: usb 5-6: configuration #1 chosen from 1 choice
Jun 18 23:29:49 chameleon-htpc kernel: scsi8 : SCSI emulation for USB Mass Storage devices
Jun 18 23:29:49 chameleon-htpc kernel: usb-storage: device found at 8
Jun 18 23:29:49 chameleon-htpc kernel: usb-storage: waiting for device to settle before scanning
Jun 18 23:29:50 chameleon-htpc kernel: scsi 8:0:0:0: Direct-Access     Generic  External         1.04 PQ: 0 ANSI: 4
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] 976773168 512-byte hardware sectors (500108 MB)
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] Write Protect is off
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] Mode Sense: 21 00 00 00
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] Assuming drive cache: write through
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] 976773168 512-byte hardware sectors (500108 MB)
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] Write Protect is off
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] Mode Sense: 21 00 00 00
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] Assuming drive cache: write through
Jun 18 23:29:50 chameleon-htpc kernel:  sdc: sdc1
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: [sdc] Attached SCSI disk
Jun 18 23:29:50 chameleon-htpc kernel: sd 8:0:0:0: Attached scsi generic sg3 type 0
Jun 18 23:29:50 chameleon-htpc kernel: usb-storage: device scan complete
Jun 18 23:29:50 chameleon-htpc kernel: printk: 175 messages suppressed.
Jun 18 23:29:50 chameleon-htpc kernel: NTFS-fs warning (device sdc1): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel.
Jun 18 23:29:50 chameleon-htpc kernel: NTFS volume version 3.1.
Jun 18 23:29:51 chameleon-htpc kernel: NTFS-fs error (device sdc1): load_system_files(): $LogFile is not clean.  Mounting read-only.  Mount in Windows.
Jun 18 23:29:51 chameleon-htpc hald: mounted /dev/sdc1 on behalf of uid 1000

Comment 2 Cyril Hrubis 2008-06-19 15:16:43 UTC
Looks like filesystem is not clean, that probably means that windows was turned of not the clean way or are suspended, and because of this it's mounted read-only. I don't know how much we can do here. Reassigning to ntfs-3g maintainer.

And not to forgotten the issue with Konqueror is worth of another bug report, so please open new one for it and keep policy one bug per report.
Comment 3 Benjamin McCann 2008-06-19 17:15:31 UTC
Thanks.  So will plugging this back into a Windows machine and then doing a safe eject or similar solve the problem?  
I'd imagine there's some way to cleanup the file system since Windows must do it.
Comment 4 Benjamin McCann 2008-06-20 05:05:54 UTC
I used the Windows chkdsk program and it looks like I'm further along. I had to run it twice, but I'm no longer getting the error message about the drive being mounted as read-only. Konqueror now at least will let me try to copy files to the disk, but it still bombs out. Here's what I get if I try on the commandline:

bmccann@chameleon-htpc:~/Documents/My Music/flac> sudo cp -r George\ Clinton\ -\ Greatest\ Funkin\'\ Hits\ \(1996\)/ /media/500GB\ External\ Hard\ Drive/My\ Documents/My\ Music/flac/
cp: cannot create directory `/media/500GB External Hard Drive/My Documents/My Music/flac/George Clinton - Greatest Funkin\' Hits (1996)': Operation not permitted


The new output to /var/log/messages is below:
Jun 20 01:06:12 chameleon-htpc kernel: usb 5-6: new high speed USB device using ehci_hcd and address 10
Jun 20 01:06:12 chameleon-htpc kernel: usb 5-6: new device found, idVendor=13fd, idProduct=1340
Jun 20 01:06:12 chameleon-htpc kernel: usb 5-6: new device strings: Mfr=1, Product=2, SerialNumber=3
Jun 20 01:06:12 chameleon-htpc kernel: usb 5-6: Product: External
Jun 20 01:06:12 chameleon-htpc kernel: usb 5-6: Manufacturer: Generic
Jun 20 01:06:12 chameleon-htpc kernel: usb 5-6: SerialNumber: WD-WCASU2365975
Jun 20 01:06:12 chameleon-htpc kernel: usb 5-6: configuration #1 chosen from 1 choice
Jun 20 01:06:12 chameleon-htpc kernel: scsi10 : SCSI emulation for USB Mass Storage devices
Jun 20 01:06:12 chameleon-htpc kernel: usb-storage: device found at 10
Jun 20 01:06:12 chameleon-htpc kernel: usb-storage: waiting for device to settle before scanning
Jun 20 01:06:13 chameleon-htpc kernel: scsi 10:0:0:0: Direct-Access Generic External 1.04 PQ: 0 ANSI: 4
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] 976773168 512-byte hardware sectors (500108 MB)
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] Write Protect is off
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] Mode Sense: 21 00 00 00
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] Assuming drive cache: write through
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] 976773168 512-byte hardware sectors (500108 MB)
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] Write Protect is off
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] Mode Sense: 21 00 00 00
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] Assuming drive cache: write through
Jun 20 01:06:13 chameleon-htpc kernel: sdc: sdc1
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: [sdc] Attached SCSI disk
Jun 20 01:06:13 chameleon-htpc kernel: sd 10:0:0:0: Attached scsi generic sg3 type 0
Jun 20 01:06:13 chameleon-htpc kernel: usb-storage: device scan complete
Jun 20 01:06:13 chameleon-htpc kernel: NTFS-fs warning (device sdc1): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel.
Jun 20 01:06:13 chameleon-htpc kernel: NTFS volume version 3.1.
Jun 20 01:06:13 chameleon-htpc hald: mounted /dev/sdc1 on behalf of uid 1000
Comment 5 Benjamin McCann 2008-07-04 06:53:27 UTC
I upgraded to openSUSE 11.0 and this is still happening.
Comment 6 Benjamin McCann 2008-07-24 02:33:08 UTC
Created attachment 229628 [details]
NTFS error in Dolphin

I dropped my hard drive and got a new one of very similar model, which I plugged in today and apparently there is a HAL error.  After doing a Google search I found a solution which suggests openSuse ships with an out-dated util-linux ("If you are getting this error in KDE you can solve it easily by upgrading to util-linux-2.13-r2")  Perhaps this could be upgraded to a newer version in 11.1?
Comment 7 Benjamin McCann 2008-07-24 02:55:30 UTC
NTFS write is finally working for me (this should really work by default).  I fixed it by doing the following:

Create a file /sbin/mount.ntfs.sh with the following:
#!/bin/bash
ntfs-3g "$@" -o locale=en_US.utf8,force

Run "chmod +x /sbin/mount.ntfs.sh"

Run "ln -s /sbin/mount.ntfs.sh /sbin/mount.ntfs"
Comment 10 Hans Petter Jansson 2008-12-12 03:45:32 UTC
This seems to be working for me in openSUSE 11.1. If you get the chance, can you test it in 11.1 and let us know if it fixes the problem for you?
Comment 11 Benjamin McCann 2008-12-12 07:14:25 UTC
Ok, I'll retest after 11.1 comes out next week. 
Comment 12 Benjamin McCann 2009-02-03 04:05:40 UTC
This is fixed in 11.1
Comment 13 Benjamin McCann 2009-02-03 04:12:25 UTC
Fixed in 11.1
Comment 14 Yuri Tsarev 2009-02-03 04:46:39 UTC
It fixed in KDE4 and GNOME, not in KDE3.