LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 11-30-2006, 09:53 PM   #1
flycast
Member
 
Registered: Jul 2006
Posts: 87

Rep: Reputation: 15
USB drive errors


I have a usb drive that now only mounts read only. dmesg | tail gives the following:
Quote:
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
/dev/scsi/host1/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
lp0: using parport0 (polling).
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
EXT3-fs error (device sd(8,0)): ext3_check_descriptors: Block bitmap for group 880 not in group (block 0)!
EXT3-fs: group descriptors corrupted !
This drive holds my backups so I don't want to take unnecessary chances if I can avoid it. Since it is read only I have though about getting another drive and copying everything over before messing with it. It is 160GB about 75% full.

One more thing...as my status to the left says I am a debian newbie.

Any ideas on saving this drive without buying another?

Last edited by flycast; 11-30-2006 at 09:55 PM.
 
Old 11-30-2006, 10:17 PM   #2
king111
Member
 
Registered: Jul 2005
Distribution: Debian, Ubuntu
Posts: 85

Rep: Reputation: 15
Not to sound alarming, but it seems like your filesystem is trashed. Sometimes it's good to keep backups of backups
 
Old 11-30-2006, 10:17 PM   #3
PenGUiN_6_1
Member
 
Registered: Oct 2006
Location: Brunswick, MD
Distribution: gNewSense 2.3 (deltah) i386
Posts: 56

Rep: Reputation: 22
Look up the program 'fsck.ext3' or whatever, and try running that. It may help you when you look for information on the drive. I would warn you to be certain of the drive not being mounted, because sometimes funny things can happen. I would specifically look for the option where you can test the drive without potentially damaging the information on it (which, if it is EXT3 or whatever it is, and you are running different various versions of linux, then it helps because you can check one if it reports errors)

Last edited by PenGUiN_6_1; 11-30-2006 at 10:22 PM.
 
Old 11-30-2006, 10:19 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Code:
       errors=continue / errors=remount-ro / errors=panic
              Define  the  behaviour  when an error is encountered.  (Either ignore errors and just mark the file system erroneous and
              continue, or remount the file system read-only, or panic and halt the system.)  The default is  set  in  the  filesystem
              superblock, and can be changed using tune2fs(8).

       sb=n   Instead  of  block  1,  use block n as superblock. This could be useful when the filesystem has been damaged.  (Earlier,
              copies of the superblock would be made every 8192 blocks: in block 1, 8193, 16385, ... (and one got thousands of  copies
              on  a  big  filesystem).  Since  version 1.08, mke2fs has a -s (sparse superblock) option to reduce the number of backup
              superblocks, and since version 1.15 this is the default. Note that this may mean that  ext2  filesystems  created  by  a
              recent  mke2fs  cannot be mounted r/w under Linux 2.0.*.)  The block number here uses 1k units. Thus, if you want to use
              logical block 32768 on a filesystem with 4k blocks, use "sb=131072".
See if you can mount it with the options "ro", "errors=remount-ro" and "sb=8193". Perhaps the superblock is currupt leading to the errors you are seeing. Copying the data to another drive is a good idea by the way.

Last edited by jschiwal; 11-30-2006 at 10:20 PM.
 
Old 12-01-2006, 08:25 AM   #5
flycast
Member
 
Registered: Jul 2006
Posts: 87

Original Poster
Rep: Reputation: 15
Sound like my drive is basically hosed. I will buy a second drive. I have been wanting to play with setting up a RAID array so that I can expand. I think what I will do is set up a second drive and copy as much data from the bad drive as I can and then figure out what to do with the bad drive.
 
Old 12-01-2006, 09:29 AM   #6
sporkinum
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake, maybe Ubuntu if I can ever get it to install
Posts: 8

Rep: Reputation: 0
I wouldn't know if this would have anything to do with it, but I never could get an external usb2 hd to work decently under linux. I decided to try the firewire interface instead, and the drive runs much better.

I guess I should add that the drive is running ntfs. I probably should have made it fat32 though.

Last edited by sporkinum; 12-01-2006 at 01:02 PM.
 
Old 12-01-2006, 10:14 AM   #7
axobeauvi
Member
 
Registered: Apr 2003
Posts: 128

Rep: Reputation: 16
I never had a problem with ext. usb drives ,but you may want to try ext2.
ext3 is iffy for this type of setup
 
Old 12-01-2006, 01:30 PM   #8
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Instead of having those USB drives problem, why not trying Diskless system (no hardisk at all)
Have a peek on my last few post.

Sporkinum is right 1394 handles streams much better than USB.
 
Old 12-01-2006, 06:26 PM   #9
flycast
Member
 
Registered: Jul 2006
Posts: 87

Original Poster
Rep: Reputation: 15
Bobymc:

Thanks for the suggestion. The USB drive is a old drive I had that I am using because I have it on hand. It is storing backups of other computers on my network using BackupPC. I don't know of any 160GB USB sticks. It would be awesome however if we could get rid of disks altogether and just use chip memory.
 
Old 12-02-2006, 11:35 AM   #10
linux01
LQ Newbie
 
Registered: Aug 2005
Posts: 20

Rep: Reputation: 1
What's the filesystem type ...

What's the filesystem type on this external drive???
Are any other computer that uses this drive running Windoze software???
Perhaps the filesystem has been locked by another system. Or the "BackupPC"...
Have you tried the remount switch of the mount command?
Or simply umount it and mount it with the rw switches.
Are you the root user when you try to access it???
DO NOT run the fsck command until you know the filesystem type, otherwise ......

Last edited by linux01; 12-02-2006 at 11:37 AM.
 
Old 12-03-2006, 11:41 AM   #11
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
If there's 160GB stick then it will be the bankcruptcy of the HDD manufacturer.

8 or maybe 16 NANDgate memory is the largest recently.

You can count on axobeauvi on making the FS to ext2.( I have 7 different linux OS in 1 HDD using ext2 FS)

I'm not rely on USB2 for data streaming, it's OK for storage only I would say.
 
  


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
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 01:09 PM
Installing Debian on USB Hard Drive/USB Jump Drive kushalkoolwal Debian 10 02-26-2009 02:46 PM
Plug-in usb hard drive gives errors in /var/log/messeges and dmesg jasone Linux - Hardware 12 11-18-2005 01:19 AM
USB simpletech hard drive errors MDK hoyLANd Linux - Hardware 4 08-21-2005 08:01 PM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 07:36 PM


All times are GMT -5. The time now is 10:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration