You are not logged in.

#1 2016-12-21 04:58:33

StodgyKetchup
Member
Registered: 2016-12-05
Posts: 4

[SOLVED]Unable to modify drive's partitions/partition table (NTFS/MBR)

Hello! Yesterday I lost power while resizing an ntfs partition (the disk had an MBR partition scheme), and now I'm unable to manage partitions with utilities such as testdisk and cfdisk. The drive that I'm having trouble with is /dev/sda. I tried googling the problem, but none of the solutions solved my problem. Thank you for the help!
EDIT: Sorry for bad title
EDIT1: Didn't realize I could change the title.

Output of lsblk:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb      8:16   0 232.9G  0 disk 
|-sdb1   8:17   0   500M  0 part 
|-sdb2   8:18   0  17.6G  0 part 
|-sdb3   8:19   0  49.6G  0 part 
|-sdb4   8:20   0     1K  0 part 
|-sdb5   8:21   0    75G  0 part /
|-sdb6   8:22   0    60G  0 part /home
`-sdb7   8:23   0    16G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom 

Output of lsblk -a:

sda      8:0    0         0 disk 
sdb      8:16   0 232.9G  0 disk 
|-sdb1   8:17   0   500M  0 part 
|-sdb2   8:18   0  17.6G  0 part 
|-sdb3   8:19   0  49.6G  0 part 
|-sdb4   8:20   0     1K  0 part 
|-sdb5   8:21   0    75G  0 part /
|-sdb6   8:22   0    60G  0 part /home
`-sdb7   8:23   0    16G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom

Output of cfdisk /dev/sda:

cfdisk: cannot open /dev/sda: No such device or address

Output of fdisk -l:

Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 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
Disklabel type: dos
Disk identifier: 0x40959a13

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1            2048   1026047   1024000   500M 27 Hidden NTFS WinRE
/dev/sdb2         1026048  37890047  36864000  17.6G  7 HPFS/NTFS/exFAT
/dev/sdb3        37890048 141850623 103960576  49.6G  7 HPFS/NTFS/exFAT
/dev/sdb4       141850624 488396799 346546176 165.3G  f W95 Ext'd (LBA)
/dev/sdb5  *    141852672 299139071 157286400    75G 83 Linux
/dev/sdb6       299141120 424970239 125829120    60G 83 Linux
/dev/sdb7       424972288 458526719  33554432    16G 83 Linux

dmesg | tail -n30

[ 1064.713259] usb 1-3: reset high-speed USB device number 4 using ehci-pci
[ 1064.930937] scsi host6: uas_eh_bus_reset_handler success
[ 1075.039924] sd 6:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
[ 1075.039928] sd 6:0:0:0: tag#0 CDB: opcode=0x0 00 00 00 00 00 00
[ 1075.039933] scsi host6: uas_eh_bus_reset_handler start
[ 1075.153252] usb 1-3: reset high-speed USB device number 4 using ehci-pci
[ 1075.370942] scsi host6: uas_eh_bus_reset_handler success
[ 1075.370948] sd 6:0:0:0: Device offlined - not ready after error recovery
[ 1075.370982] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371002] sd 6:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x01 driverbyte=0x00
[ 1075.371003] sd 6:0:0:0: [sda] Sense not available.
[ 1075.371006] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371009] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371012] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371015] sd 6:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[ 1075.371016] sd 6:0:0:0: [sda] Sense not available.
[ 1075.371018] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371021] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371025] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371028] sd 6:0:0:0: [sda] Write Protect is off
[ 1075.371030] sd 6:0:0:0: [sda] Mode Sense: 00 00 00 00
[ 1075.371031] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371034] sd 6:0:0:0: [sda] Asking for cache data failed
[ 1075.371036] sd 6:0:0:0: [sda] Assuming drive cache: write through
[ 1075.371039] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371041] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371043] sd 6:0:0:0: rejecting I/O to offline device
[ 1075.371221] sd 6:0:0:0: [sda] Attached SCSI disk
[ 1279.513433] perf: interrupt took too long (3139 > 3136), lowering kernel.perf_event_max_sample_rate to 63600
[ 1746.114425] perf: interrupt took too long (3932 > 3923), lowering kernel.perf_event_max_sample_rate to 50700

Last edited by StodgyKetchup (2016-12-22 00:26:27)

Offline

#2 2016-12-21 08:28:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: [SOLVED]Unable to modify drive's partitions/partition table (NTFS/MBR)

cat /proc/scsi/scsi

The device on host 6 is likely broken.

Offline

#3 2016-12-21 14:12:13

StodgyKetchup
Member
Registered: 2016-12-05
Posts: 4

Re: [SOLVED]Unable to modify drive's partitions/partition table (NTFS/MBR)

Attached devices:
Host: scsi6 Channel: 00 Id: 00 Lun: 00
  Vendor: Seagate  Model: BUP Slim BK      Rev: 0107
  Type:   Direct-Access                    ANSI  SCSI revision: 06
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: WDC WD2500AAJS-0 Rev: 3E03
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: TSSTcorp Model: DVD+-RW TS-H653F Rev: D200
  Type:   CD-ROM    

Is there a way to determine if the device is fubar or not (I don't mean the data on it)? Thank you for the reply.

Last edited by StodgyKetchup (2016-12-21 14:13:18)

Offline

#4 2016-12-21 14:19:59

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED]Unable to modify drive's partitions/partition table (NTFS/MBR)

Offline

#5 2016-12-21 14:40:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: [SOLVED]Unable to modify drive's partitions/partition table (NTFS/MBR)

smartctl will likely not be able to access the drive either.

If you can, check the cables (plugs, slots, seating, replace cable try on another host - looks like usb? could be underpowered)
Cross-check with a live distro or OtherOS™ to rule out a bug in the kernel. If it comes up nowhere, it's just dead.

Offline

#6 2016-12-22 00:25:33

StodgyKetchup
Member
Registered: 2016-12-05
Posts: 4

Re: [SOLVED]Unable to modify drive's partitions/partition table (NTFS/MBR)

seth wrote:

smartctl will likely not be able to access the drive either.

If you can, check the cables (plugs, slots, seating, replace cable try on another host - looks like usb? could be underpowered)
Cross-check with a live distro or OtherOS™ to rule out a bug in the kernel. If it comes up nowhere, it's just dead.

Yeah, I tried smartctl before and it didn't work. I retried it, still no dice. I tried plugging it into a few other devices (2 Arch machines, 1 Ubuntu, 3 Debian stable) and it didn't come up anywhere. I also used some different cables. Seems like it is dead. I'll mark this as solved. Thanks for your help.

Offline

Board footer

Powered by FluxBB