LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-03-2013, 03:21 AM   #1
aidan@keyworld.net
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Rep: Reputation: 0
usb drive - cannot write, can read and delete


I have a usb drive to which I wish to write. Format is ext3. Can read, delete, but cannot write. Following is terminal output:

root@Aidan:/media/USB shared# mount
/dev/mapper/vg0-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/mapper/vg0-home on /home type ext3 (rw)
/dev/mapper/vg0-opt on /opt type ext3 (rw)
/dev/mapper/vg0-tmp on /tmp type ext3 (rw)
/dev/mapper/vg0-usr on /usr type ext3 (rw)
/dev/mapper/vg0-var on /var type ext3 (rw)
none on /sys/bus/usb/drivers type usbfs (rw,devgid=119,devmode=664)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
vmware-vmblock on /var/run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,default_permissions,allow_other)
/dev/sdf on /media/ARCHOS type vfat (rw,nosuid,nodev,uhelper=hal,uid=1000,utf8,shortname=mixed,flush)
/dev/sde1 on /media/USB shared type ext3 (rw,nosuid,nodev,uhelper=hal)
root@Aidan:/media/USB shared# mkdir Archos
mkdir: cannot create directory `Archos': Input/output error
root@Aidan:/media/USB shared#


What did I do wrong?
 
Old 04-03-2013, 03:40 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 278

Rep: Reputation: 118Reputation: 118
This looks like the drive might be faulty. Could you try it on another machine to try and confirm? Or try another drive on this machine?
 
Old 04-04-2013, 04:05 PM   #3
redfox2807
Member
 
Registered: Jul 2012
Distribution: Kubuntu, Debian, Meego, Android
Posts: 116

Rep: Reputation: 16
yep, it looks like a bad cluster that the drive tries to write upon and fails. Check the drive for bad sectors e.g. using badblocks command
 
Old 04-05-2013, 10:41 AM   #4
aidan@keyworld.net
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Solved: that did the trick!

Yes, the drive had a large number of bad blocks - not surprising, considering its age. The following command cleaned them up:
root@Aidan:/home/aidan# fsck.ext3 -vy /dev/sde1
Now I need to locate a cheap (no cost!) replacement drive.

Many thanks for your guidance.
 
Old 04-05-2013, 02:45 PM   #5
redfox2807
Member
 
Registered: Jul 2012
Distribution: Kubuntu, Debian, Meego, Android
Posts: 116

Rep: Reputation: 16
well, if you're short of cash at the moment, you still can try to use the drive. First, backup all the data that you find to be critical for you, of course. Then 'label' the bad sectors as unusable. Use 'e2fsck -c' for that. You can read more on smartmontools how to's.
This is by no means a permanent solution, but if this is a flash drive you use just for sharing some data you're not afraid to lose occasionally, it might still be used for a pretty long period of time. Anyways I would get a new drive on the first occasion since they're cheap as peanut nowadays.
 
  


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
USB drive Read/Write - NTFS sp149 Linux - General 7 11-14-2007 04:11 PM
how can I automate my usb drive to be read/write abrand888 Debian 4 10-19-2006 06:58 PM
nagging problem --sharing USB drive with Windows for read/write 1kyle Suse/Novell 2 09-25-2005 03:35 AM
Cannot mount a USB drive as read/write. icheyne MEPIS 2 06-28-2005 01:48 AM
read & write USB pen drive?? wrangler Linux - Newbie 5 03-08-2005 03:11 PM


All times are GMT -5. The time now is 05:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration