GParted Boot Flag issue

jthorpe

Reputable
Mar 29, 2016
105
2
4,685
I'm using GParted from http://gparted.org/livecd.php to attempt to see what format a drive from a WD Network Attached Storage (from a model: WD20000H1NC-00). This NAS wouldn't read on the network, so I pulled the drive from it and connected it to my computer and it showed as "Unallocated" in disk management.

I then used GParted Live (from a iso cd image) and it showed up as the following:

File system: ntfs
Size: 931.51 GiB
Flags: boot

Path: /dev/sda1
Status: Not mounted
Label:
UUID:
First sector: 63
Last sector: 1953520064
Total sectors: 1953520002

Warning:
The device /dev/sda1 doesn't exist

ntfsresize v2012.1.15AR.7 (libntfs-3g)
ERROR(2): Failed to check '/dev/sda1' mount state: No such file or directory
Probably /etc/mtab is missing. It's too risky to continue. You might try
an another Linux distro.

Unable to read the contents of this file system!
Because of this some operations may be unavailable.

The cause might be a missing software package.
The folling list of softare packages is required for ntfs file system support: ntfsprogs / ntfs-3g.


Out of frustration and being tired (not a good combo when trying to work on things like this), I inadvertanily removed the "Boot" flag from the drive, now it shows the 931.51 GiB as unallocated with the following info:

File system: unallocated
Size: 931.51 GiB

First sector: 0
Last sector: 1953525167
Total sectors: 1953525168

Warning:
Input/output error during read on /dev/sda
Input/output error druing read on /dev/sda
/dev/sda: unrecognised disk label


Device Informatin:
Model: ATA WDC WD10EAVS-98M
Size: 931.51 GiB
Path: /dev/sda

Partition table: unrecognized
Heads: 255
Sectors/track: 63
Cylinders: 121601
Total sectors: 1953525168
Sector size: 512


When I click on new for a new partition it says:

No partition table found on device /dev/sda

A partition table is required before partitions cab be added.
To create a new partition table choose the menu item: Device --> Create Partition Table.


Creating a new partition table will erase all data on the drive, so I don't want to do that.


Using the "Attempt Data Rescue" option it says:

No file systems found on /dev/sda

The disk scan by gpart did not find any recognizable file systems on this disk.


I've tried the: $ sudo fdisk -l -u /dev/sda command and it says "sudo: fdisk - 1: command not found"

Some command lines come up as Write-Protected even when using the sudo command lines.


What can I do to get this back to NTFS (relabel the boot flag) and/or be able to get the data off this drive??
 
Well you can turn the boot flag back on. It is easy to do with fdisk but it is not going to help you.

I am not familiar with the gparted live CD but I can say the live CD at sysresccd.org has fdisk plus many other Linux recovery tools.

I suspect you may be working with a failing drive. I can comment more if you post the output of:
smartctl -a /dev/sda
fsarchiver probe
mdadm -E /dev/sda?
 



I don't see the the option when I right click on the partition, GParted has everything grayed out except for new partitio (which wants you to create a new partition table), and information. If I'm not mistaken the fdisk and the sudo fdisk command came back as write protected (it's a Western Digital Caviar Green drive and from what I've read, WD locks their drives).

Right now it's running a deep scan of the "Analyse Cylinder" portion of TestDisk as of right now it's showing:

Disk /dev/sda - 1000GB / 931 GiB - CHS 121602 255 63
Analyse cylinder 1420/121601: 01%
Read error at 618/138/32 (lba=9936895)

HPFS - NTFS 0 1 1 121600 254 63 1953520002 [New Volume]


Is the command lines you posted for GParted or the sysrescd live CD, or do the work on both?


Thanks.
 



I went to the sysresccd.org site, but see multiple options for download. What am I suppose to download?

Thanks.