LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-21-2014, 02:44 AM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
broke my HDD?


Oh gosh. I think I walked right into this. I have a powered 2TB USB HDD which I connect to my Centos6 server for backup purposes. On Saturday morning this died. I took it back to the shop and they swapped it for me (I never thought to ask them what kind of policy they have for security on returned drives!)

I formatted the new drive using gparted and plugged it into the server. The plan is to add this to fstab and identify by UUID which I grabbed by ll /dev/devices/by_uuid. Anyway, I have a lot of disks on this box and entered the wrong UUID (lazy Sunday morning, at this point I start thinking it is worth documenting which UUID corresponds to which mount point). I just wanted to make sure I got the right UUID so I disconnected and reconnected the USB cable to the PC. Whoops, I can't see the device any more. And I can't shutdown while the device is connected.

I plugged the drive into another PC running F20 and these are the messages that greet me:

Quote:
Sep 21 15:23:01 dual kernel: scsi 6:0:0:0: Direct-Access Seagate Expansion Desk 0604 PQ: 0 ANSI: 6
Sep 21 15:23:01 dual kernel: sd 6:0:0:0: Attached scsi generic sg3 type 0
Sep 21 15:23:01 dual kernel: sd 6:0:0:0: [sdc] Spinning up disk...
Sep 21 15:23:31 dual systemd-udevd[484]: worker [1404] /devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0 timeout; kill it
Sep 21 15:23:31 dual systemd-udevd[484]: seq 2028 '/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0' killed
Sep 21 15:24:41 dual kernel: .................................................................................................... not responding...
Sep 21 15:24:41 dual kernel: sd 6:0:0:0: [sdc] 488378645 4096-byte logical blocks: (2.00 TB/1.81 TiB)
Sep 21 15:24:41 dual kernel: sd 6:0:0:0: [sdc] 16384-byte physical blocks
Sep 21 15:25:02 dual kernel: sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled
Sep 21 15:25:09 dual kernel: sd 6:0:0:0: [sdc] Asking for cache data failed
Sep 21 15:25:09 dual kernel: sd 6:0:0:0: [sdc] Assuming drive cache: write through
Sep 21 15:25:09 dual kernel: sd 6:0:0:0: [sdc] Spinning up disk...
Sep 21 15:26:49 dual kernel: .................................................................................................... not responding...
Sep 21 15:26:49 dual kernel: sd 6:0:0:0: [sdc] 488378645 4096-byte logical blocks: (2.00 TB/1.81 TiB)
Sep 21 15:26:49 dual kernel: sd 6:0:0:0: [sdc] 16384-byte physical blocks
Sep 21 15:30:18 dual kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 21 15:30:18 dual kernel: Sense Key : Not Ready [current]
Sep 21 15:30:18 dual kernel: Add. Sense: Logical unit is in process of becoming ready
Sep 21 15:30:18 dual kernel: Read(10): 28 00 00 00 00 00 00 00 01 00
Sep 21 15:30:18 dual kernel: end_request: I/O error, dev sdc, sector 0
Sep 21 15:30:18 dual kernel: Buffer I/O error on device sdc, logical block 0
Sep 21 15:33:18 dual kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 21 15:33:18 dual kernel: Sense Key : Not Ready [current]
Sep 21 15:33:18 dual kernel: Add. Sense: Logical unit is in process of becoming ready
Sep 21 15:33:18 dual kernel: Read(10): 28 00 00 00 00 00 00 00 01 00
Sep 21 15:33:18 dual kernel: end_request: I/O error, dev sdc, sector 0
Sep 21 15:33:18 dual kernel: Buffer I/O error on device sdc, logical block 0
Sep 21 15:36:19 dual kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 21 15:36:19 dual kernel: Sense Key : Not Ready [current]
Sep 21 15:36:19 dual kernel: Add. Sense: Logical unit is in process of becoming ready
Sep 21 15:36:19 dual kernel: Read(10): 28 00 00 00 00 00 00 00 01 00
Sep 21 15:36:19 dual kernel: end_request: I/O error, dev sdc, sector 0
Sep 21 15:36:19 dual kernel: Buffer I/O error on device sdc, logical block 0
“error on device” doesn't look too promising. I guess the question is, can the disk be rescued?

I read that fsck may be able to help so I gave that a go:

Quote:
[tim@dual ~]$ sudo fsck /dev/sdc1
[sudo] password for tim:
fsck from util-linux 2.24.2
e2fsck 1.42.8 (20-Jun-2013)
fsck.ext2: No such file or directory while trying to open /dev/sdc1
Possibly non-existent device?
[tim@dual ~]$ sudo fsck /dev/sdc
fsck from util-linux 2.24.2
That started about 70 minutes ago and I can leave it running all night if required. It took gparted a good hour to format the disk so I appreciate this may take a while.

Any thoughts appreciated.

Cheers
 
Old 09-21-2014, 03:25 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,490

Rep: Reputation: Disabled
If you just unplug a usb drive without unmounting it, you can cause corruption to the filesystem. Also, when you unplug and then re insert a usb drive it likely will get given a different designation, i.e. if it was sdb it could be sdc this time around. You didn't mention which distro you are using nor what filesystem is on your drive, (these should be part of your request for help). However, it does look as if you may well have a corrupt filesystem, possibly the mbr.
 
Old 09-21-2014, 03:57 AM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
I formatted the disk using gparted on a Mint live CD. The file system is ext2.

I originally plugged the disk into a Centos6 system (that is when I unplugged and plugged the USB cable) and it is currently plugged into a F20 system.
 
Old 09-21-2014, 08:41 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,490

Rep: Reputation: Disabled
See if it (fsck) is doing anything by running 'top' in another terminal.
I would have expected you to have had at least one partition on that disk.
Unless you have a backup of the mbr, I don't think you can recover any files from it, (at least not without a lot of hassle).
Worst case scenario - use fdisk to create a new mbr, partition it anew, and put a new filesystem on it.
 
Old 09-21-2014, 08:51 AM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I might be mistaken but when I see these messages on a hard drive it simply means it is broken. These kind of errors are not caused by partitioning or file system errors. It could be that the interface logic is broken. Especially when you just swapped the drives and the second drive also appears to be defective.

To be sure, pull the drive from the external case and plug it into any other SATA interface.

jlinkels
 
  


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
adding SATA ext3 HDD into new Suse11.4 box with ext4 system HDD Mail2me Linux - Hardware 4 10-26-2011 07:47 PM
Slow USB transfer rates (60kb p/s) External HDD --> Internal HDD drfrostbyte Linux - Hardware 4 03-28-2011 01:20 AM
Replacing HDD in an LVM without any ports left for new HDD, therefor using a USB dock boast Linux - General 0 01-12-2010 09:03 AM
copied Debian install from dead hdd to new hdd.now system fails to boot :S deepclutch Debian 18 02-15-2008 07:17 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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