LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-28-2006, 05:07 PM   #1
PostPCMan
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Rep: Reputation: 0
Why has my USB Diskbecome read-only?


I attached a USB disk drive to my Suse 9.3 system, created a directory, and started to backup up a few gigs of stuff. It copied for a while, but after a few minutes, it ran into some kind of trouble and wouldn't write any more, even though there is LOTS of space. Now, I can read from it, but whenever I try to write to it, or delete the incomplete directory that was written or create a new directory, it tells me

"rm: cannot remove `whatever': Read-only file system".

Mount tells me that it's mounted RW (Bocachica is the drive in question)-

# mount
/dev/hda2 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hdb1 on /d2 type ext3 (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hdd on /media/SU1010_001 type subfs (ro,nosuid,nodev,fs=cdfss,procuid)
/dev/sda3 on /media/Bocachica type subfs (rw,nosuid,nodev,sync,fs=hfsplus)
/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid)


I'm working as root, and anyway the directory that I'm trying to remove is mode 777. /media/Bocachica is 755, and I can't change it because it gives me the "Read-only file system" message.

What am I missing here? Why has this drive become read-only even though it tells me that it's rw? What has changed since it started writing, and wrote at least some data successfully?

Thanks, in advance, for any help.
 
Old 06-28-2006, 05:29 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Check dmesg and see if it says anything.

Also a note not to double post. One of the rules here.

Brian1
 
Old 06-28-2006, 05:57 PM   #3
PostPCMan
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the pointer. dmesg tells me:

HFS+-fs warning: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. mounting read-only.

OK, so that explains why it is read-only, but it brings up two other questions. Where is fsck.hfsplus (it doesn't seem to be on my system), and how should I unmount a usb drive? In this case, I never actually unmounted it, though I tried. When I 'umount /media/...' it always tells me

umount: /media/Bocachica: device is busy

Therefore, I actually did a shutdown before unplugging it.

Thanks again.
 
Old 06-28-2006, 06:37 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not a standard tool in most linux distros. Look on google for fsck.hfsplus and also use the terms hfsplus tools as well.

Brian1
 
Old 06-29-2006, 12:58 AM   #5
PostPCMan
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
I looked around and didn't easily find fsck.hfsplus, so I plugged the disk into a Mac and did a repair with Disk Utility. It didn't find any problems, but when I put it back on the Suse Linux box, all is good. Perhaps it cleaned something up silently when I first plugged it into the Mac.

Thanks for the help.
 
Old 06-29-2006, 04:02 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not a Mac user but does it understand vfat partitions. If so you might reformat the drive to that since linux does fine with fat partitions. Or have two partitions and one hfs and the other fat. Then mount fat when needing to move data from one to the other and still have hfs one if hfs uses permissions and special attributes.

Brian1
 
Old 07-01-2006, 08:33 AM   #7
alek66
Member
 
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256

Rep: Reputation: 30
what partition is using your usb disc
 
  


Reply



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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
USB hard disk read only neranjana Mandriva 7 11-24-2005 02:48 AM
usb flash drive always read-only flihp Linux - Hardware 2 11-12-2005 05:14 PM
Read only USB Disk when in Nautilus djib Linux - Hardware 3 12-30-2004 03:57 PM
read usb drive in redhat 9.0 ? wlaw Linux - Newbie 1 06-21-2004 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:07 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