djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

External HD killed by B+

Sat Jan 03, 2015 8:55 pm

Hello everyone,

I just bought a new B+ yesterday and while playing around with it on RASPBMC, I tried plugging in one of my external HD to access my library thtough XBMC.

However nothing happened and I did not seem to be able to access the content of the drive.

I then unplugged it from the B+ and plug it in back into my windows 7 laptop. Despite the drive got powered up right away, nothing else happened and no access to the drive.and nothing to see under computer management, no disk thus no letter assigned.

I also checked on a Win8 PC and a MAC and same thing happens...

Any idea if there is anything I can do? at least to retrieve the data?

Thanks

User avatar
r3d4
Posts: 983
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: External HD killed by B+

Sun Jan 04, 2015 10:17 am

AFAIK most usb disk problems are power related , what kind of usb disk/caddy do you have .

It seams unlikly the pi killed your disk , at worst some how the disk might have become corrupted .

In linux you can look at the dmegs logs before/when/after you plugin in the 'bad' usb disk , this should give some hint at what the problem might be ...


If you have spare computers / ones you can boot from cdrom/usb .... try dowloading the Lubuntu iso , burn to a cd or usb ...

- boot up a spare pc wiith it ( select boot from cd/usb)
- run dmesg
- plugin usb diisk
- run dmesg

You might see something like this ( happen when a usb disk is pluged in )
[ 6886.297017] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 6886.302304] sd 6:0:0:0: [sdc] 15633408 512-byte logical blocks: ...
[ 6886.307291] sd 6:0:0:0: [sdc] Write Protect is off
[ 6886.307308] sd 6:0:0:0: [sdc] Mode Sense: 43 00 00 00
[ 6886.312707] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 6886.339481] sdc: sdc1 sdc2 sdc3 sdc4 sdc5
[ 6886.373283] sd 6:0:0:0: [sdc] Attached SCSI disk
[ 6889.511379] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
....ect
Real life is, to most, a long second-best, a perpetual compromise between the ideal and the possible.
-
Meanwhile, the sysadmin who accidentally nuked the data reckons "its best not run anything more with sudo today"
-
what about spike milligan?

andrum99
Posts: 1239
Joined: Fri Jul 20, 2012 2:41 pm

Re: External HD killed by B+

Sun Jan 04, 2015 12:01 pm

djskynet wrote:Hello everyone,

I just bought a new B+ yesterday and while playing around with it on RASPBMC, I tried plugging in one of my external HD to access my library thtough XBMC.

However nothing happened and I did not seem to be able to access the content of the drive.

I then unplugged it from the B+ and plug it in back into my windows 7 laptop. Despite the drive got powered up right away, nothing else happened and no access to the drive.and nothing to see under computer management, no disk thus no letter assigned.

I also checked on a Win8 PC and a MAC and same thing happens...

Any idea if there is anything I can do? at least to retrieve the data?

Thanks
Did you try unplugging the external hard disk then rebooting the laptop? I have an external hard disk that sometimes fails to be seen by Windows 7. Rebooting always fixes it.

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 4:52 pm

r3d4 wrote:AFAIK most usb disk problems are power related , what kind of usb disk/caddy do you have .

It seams unlikly the pi killed your disk , at worst some how the disk might have become corrupted .

In linux you can look at the dmegs logs before/when/after you plugin in the 'bad' usb disk , this should give some hint at what the problem might be ...


If you have spare computers / ones you can boot from cdrom/usb .... try dowloading the Lubuntu iso , burn to a cd or usb ...

- boot up a spare pc wiith it ( select boot from cd/usb)
- run dmesg
- plugin usb diisk
- run dmesg

You might see something like this ( happen when a usb disk is pluged in )
[ 6886.297017] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 6886.302304] sd 6:0:0:0: [sdc] 15633408 512-byte logical blocks: ...
[ 6886.307291] sd 6:0:0:0: [sdc] Write Protect is off
[ 6886.307308] sd 6:0:0:0: [sdc] Mode Sense: 43 00 00 00
[ 6886.312707] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 6886.339481] sdc: sdc1 sdc2 sdc3 sdc4 sdc5
[ 6886.373283] sd 6:0:0:0: [sdc] Attached SCSI disk
[ 6889.511379] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
....ect
I put lubuntu on a USB key and rebooted the computer. Chose to go with "try lubuntu without installing" and tried to run the dmegs command but nothing happens...nothing pops up

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: External HD killed by B+

Sun Jan 04, 2015 5:00 pm

dmesg not dmegs....
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 5:09 pm

pluggy wrote:dmesg not dmegs....
Sorry that is what I mean.

When I click on run then type in dmegs and press enter nothing is happening...not sure why... Maybe because Linux is not really installed and only run on the USB key?

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 5:22 pm

I was able to run dmesg using the Raspberry Pi directly

here is what I get

sd 1:0:0:0: [sda]
Result: hostbyte=0x01 driverbyte=0x00
sd 1:0:0:0: [sda] Sense not available.
sd 1:0:0:0: [sda] Asking for cache data failed
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI disk
usb 1-1.4: new high-speed USB device number 6 using dwc_otg
usb 1-1.4: New USB device found, idVendor=0bc2, idProduct=ab21
usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.4: Product: Backup+ RD
usb 1-1.4: Manufacturer: Seagate
usb 1-1.4: SerialNumber: NA75VD6E
usb-storage 1-1.4:1.0: USB Mass Storage device detected
scsi2 : usb-storage 1-1.4:1.0
scsi 2:0:0:0: Direct-Access Seagate Backup+ RD 0143 PQ: 0 ANSI: 6
sd 2:0:0:0: [sda] Spinning up disk...
.ready
sd 2:0:0:0: [sda] 1953525167 512-byte logical blocks: (1.00 TB/931 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 2b 00 10 08
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
usb 1-1.4: reset high-speed USB device number 6 using dwc_otg
pi@raspbmc:~$

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: External HD killed by B+

Sun Jan 04, 2015 6:12 pm

The drive isn't dead, but I'm not familiar with raspbmc to know where to go from here. Its possible that its been formatted with EXT4 or something that windows can't see.

Are you familiar with Administrative tools in Windows 7 ? Computer management and then disk management in there should yield some clues with the drive plugged into the Windows machine.

You need to start up a terminal running Lubuntu to be able to use the command line.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: External HD killed by B+

Sun Jan 04, 2015 6:17 pm

If Raspbmc understands the same commands as Raspbian,

Code: Select all

sudo fdisk -l 
should yield clues.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 7:08 pm

pluggy wrote:The drive isn't dead, but I'm not familiar with raspbmc to know where to go from here. Its possible that its been formatted with EXT4 or something that windows can't see.

Are you familiar with Administrative tools in Windows 7 ? Computer management and then disk management in there should yield some clues with the drive plugged into the Windows machine.

You need to start up a terminal running Lubuntu to be able to use the command line.
The drive does not show under disk management nor anywhere else. Basically, I only see it under the "safely remove hardware" icon...

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 7:11 pm

pluggy wrote:If Raspbmc understands the same commands as Raspbian,

Code: Select all

sudo fdisk -l 
should yield clues.
sudo fdisk -I gives me that

pi@raspbmc:~$ sudo fdisk -1
fdisk: invalid option -- '1'
Usage:
fdisk [options] <disk> change partition table
fdisk [options] -l <disk> list partition table(s)
fdisk -s <partition> give partition size(s) in blocks

Options:
-b <size> sector size (512, 1024, 2048 or 4096)
-c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
-h print this help text
-u[=<unit>] display units: 'cylinders' or 'sectors' (default)
-v print program version
-C <number> specify the number of cylinders
-H <number> specify the number of heads
-S <number> specify the number of sectors per track

I do not really mind lossing what was on that disk, I'd just like to be able to use it again on Windows

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: External HD killed by B+

Sun Jan 04, 2015 7:18 pm

djskynet wrote: sudo fdisk -I gives me that

pi@raspbmc:~$ sudo fdisk -1
fdisk: invalid option -- '1'
Usage:
fdisk [options] <disk> change partition table
fdisk [options] -l <disk> list partition table(s)
fdisk -s <partition> give partition size(s) in blocks
Usage:
fdisk [options] -l <disk> list partition table(s)


So it needs to be:
fdisk <space> minus letter 'ell'

not

fdisk <space> minus number 'one'

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: External HD killed by B+

Sun Jan 04, 2015 8:15 pm

Like the man says, its a lower case 'ell' not the number 'one'. It lists all the disk like devices connected to the machine.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 8:17 pm

B.Goode wrote:
djskynet wrote: sudo fdisk -I gives me that

pi@raspbmc:~$ sudo fdisk -1
fdisk: invalid option -- '1'
Usage:
fdisk [options] <disk> change partition table
fdisk [options] -l <disk> list partition table(s)
fdisk -s <partition> give partition size(s) in blocks
Usage:
fdisk [options] -l <disk> list partition table(s)


So it needs to be:
fdisk <space> minus letter 'ell'

not

fdisk <space> minus number 'one'
sorry, my bad.

Seems like the drive does not appear

Disk /dev/mmcblk0: 31.7 GB, 31674335232 bytes
4 heads, 16 sectors/track, 966624 cylinders, total 61863936 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000798a3

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 4096 147455 71680 c W95 FAT32 (LBA)
/dev/mmcblk0p2 151552 61863935 30856192 83 Linux

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: External HD killed by B+

Sun Jan 04, 2015 8:21 pm

try
fdisk -l /dev/sda # eff disk minus ell slash dee ee vee slash ess dee ay
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 8:34 pm

DougieLawson wrote:try
fdisk -l /dev/sda # eff disk minus ell slash dee ee vee slash ess dee ay
Invalid option...

pi@raspbmc:~$ fdisk -l/dev/eda
fdisk: invalid option -- '/'
Usage:
fdisk [options] <disk> change partition table
fdisk [options] -l <disk> list partition table(s)
fdisk -s <partition> give partition size(s) in blocks

Options:
-b <size> sector size (512, 1024, 2048 or 4096)
-c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
-h print this help text
-u[=<unit>] display units: 'cylinders' or 'sectors' (default)
-v print program version
-C <number> specify the number of cylinders
-H <number> specify the number of heads
-S <number> specify the number of sectors per track

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: External HD killed by B+

Sun Jan 04, 2015 8:42 pm

Read what you quoted from Dougie and compare with what you typed....
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 8:45 pm

pluggy wrote:Read what you quoted from Dougie and compare with what you typed....
just a typing error sorry but I did type exactly what Dougie quoted


pi@raspbmc:~$ fdisk -l/dev/sda
fdisk: invalid option -- '/'
Usage:
fdisk [options] <disk> change partition table
fdisk [options] -l <disk> list partition table(s)
fdisk -s <partition> give partition size(s) in blocks

Options:
-b <size> sector size (512, 1024, 2048 or 4096)
-c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
-h print this help text
-u[=<unit>] display units: 'cylinders' or 'sectors' (default)
-v print program version
-C <number> specify the number of cylinders
-H <number> specify the number of heads
-S <number> specify the number of sectors per track

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: External HD killed by B+

Sun Jan 04, 2015 8:47 pm

you need a space between -l and /dev/sda

You'll probably also need sudo sticking on the front.
Last edited by pluggy on Sun Jan 04, 2015 8:51 pm, edited 1 time in total.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: External HD killed by B+

Sun Jan 04, 2015 8:50 pm

Doing it on my Ubuntu machine (first cousin to whats on the Pi) gives

Code: Select all

sv@STSR-Desktop:~$ sudo fdisk -l /dev/sda
[sudo] password for sv: 

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000c0dfd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048  1945206783   972602368   83  Linux
/dev/sda2      1945208830  1953523711     4157441    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5      1945208832  1953523711     4157440   82  Linux swap / Solaris
sv@STSR-Desktop:~$ 
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

djskynet
Posts: 10
Joined: Sat Jan 03, 2015 8:46 pm

Re: External HD killed by B+

Sun Jan 04, 2015 9:14 pm

pluggy wrote:you need a space between -l and /dev/sda

You'll probably also need sudo sticking on the front.
I've tried everything the space, the sudo up front but still nothing happens I always get
Result: hostbyte=0x01 driverbyte=0x00
sd 18:0:0:0: [sda] Sense not available.
sd 18:0:0:0: [sda] Asking for cache data failed
sd 18:0:0:0: [sda] Assuming drive cache: write through
sd 18:0:0:0: [sda] Attached SCSI disk
usb 1-1.2: new high-speed USB device number 35 using dwc_otg
usb 1-1.2: device not accepting address 35, error -71
usb 1-1.2: new high-speed USB device number 37 using dwc_otg
usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=ab21
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: Backup+ RD
usb 1-1.2: Manufacturer: Seagate
usb 1-1.2: SerialNumber: NA75VD6E
usb-storage 1-1.2:1.0: USB Mass Storage device detected
scsi19 : usb-storage 1-1.2:1.0
scsi 19:0:0:0: Direct-Access Seagate Backup+ RD 0143 PQ: 0 ANSI: 6
sd 19:0:0:0: [sda] Spinning up disk...
....................................................................................................not responding...
sd 19:0:0:0: [sda] 1953525167 512-byte logical blocks: (1.00 TB/931 GiB)
sd 19:0:0:0: [sda] Write Protect is off
sd 19:0:0:0: [sda] Mode Sense: 2b 00 10 08
sd 19:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 19:0:0:0: [sda] Spinning up disk...
....................................................................................................not responding...
sd 19:0:0:0: [sda] Unhandled error code
sd 19:0:0:0: [sda]
Result: hostbyte=0x07 driverbyte=0x00
sd 19:0:0:0: [sda] CDB:
cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
usb 1-1.2: USB disconnect, device number 37
sd 19:0:0:0: [sda] Unhandled error code
sd 19:0:0:0: [sda]
Result: hostbyte=0x01 driverbyte=0x00
sd 19:0:0:0: [sda] CDB:
cdb[0]=0x28: 28 00 00 00 00 01 00 00 01 00
end_request: I/O error, dev sda, sector 1
Buffer I/O error on device sda, logical block 1
sd 19:0:0:0: [sda] Unhandled error code
sd 19:0:0:0: [sda]
Result: hostbyte=0x01 driverbyte=0x00
sd 19:0:0:0: [sda] CDB:
cdb[0]=0x28: 28 00 00 00 00 02 00 00 01 00
end_request: I/O error, dev sda, sector 2
Buffer I/O error on device sda, logical block 2
sda: unable to read partition table
sd 19:0:0:0: [sda] READ CAPACITY failed
sd 19:0:0:0: [sda]
Result: hostbyte=0x01 driverbyte=0x00
sd 19:0:0:0: [sda] Sense not available.
sd 19:0:0:0: [sda] Write Protect is on
sd 19:0:0:0: [sda] Mode Sense: 40 13 85 c0
sd 19:0:0:0: [sda] No Caching mode page found
sd 19:0:0:0: [sda] Assuming drive cache: write through
sd 19:0:0:0: [sda] Attached SCSI disk
usb 1-1.5: new high-speed USB device number 38 using dwc_otg
usb 1-1.5: New USB device found, idVendor=0bc2, idProduct=ab21
usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.5: Product: Backup+ RD
usb 1-1.5: Manufacturer: Seagate
usb 1-1.5: SerialNumber: NA75VD6E
usb-storage 1-1.5:1.0: USB Mass Storage device detected
scsi20 : usb-storage 1-1.5:1.0
scsi 20:0:0:0: Direct-Access Seagate Backup+ RD 0143 PQ: 0 ANSI: 6
sd 20:0:0:0: [sda] 1953525167 512-byte logical blocks: (1.00 TB/931 GiB)
sd 20:0:0:0: [sda] Write Protect is off
sd 20:0:0:0: [sda] Mode Sense: 2b 00 10 08
sd 20:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
usb 1-1.5: reset high-speed USB device number 38 using dwc_otg
pi@raspbmc:~$ sudo fdisk -l /dev/sda
BLANK

just nothing after typying either sudo fdisk -l/dev/sda or sudo fdisk -l /dev/sda

and the disk does not show under sudo fdisk -l just the SD card despite the drive seems to be powered up as the light is on...

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: External HD killed by B+

Sun Jan 04, 2015 9:27 pm

We know from earlier posts that you have seen the usage information for fdisk which says:

fdisk [options] -l <disk> list partition table(s)


So, given that the output from dmesg - reporting on what the system has experienced as it boots up - says:

"sda: unable to read partition table"

it isn't really surprising that fdisk is not subsequently able to list the partition table, since the the system has already told you it is unreadable.

Return to “General discussion”