LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-09-2017, 06:22 AM   #1
chicken057
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Rep: Reputation: Disabled
HDDs after initialising in Synology not working anymore GPT lost


Hi folks,

I am lost what is going on here. It would be fantastic if you are able to help me to bring my disks back to live.

Code:
=================
sudo gdisk /dev/disk2
Password:
GPT fdisk (gdisk) version 1.0.3

Warning! Read error 5; strange behavior now likely!
Warning! Read error 5; strange behavior now likely!
Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.

=================
Command (? for help): p
Disk /dev/disk2: 5860533168 sectors, 2.7 TiB
Sector size (logical): 512 bytes
Disk identifier (GUID): DCC840E8-2BA0-473A-9828-FAC40C82044F
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5860533101 sectors (2.7 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name


=================
Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): y

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk2.
Unable to save backup partition table! Perhaps the 'e' option on the experts'
menu will resolve this problem.
Warning! An error was reported when writing the partition table! This error
MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
Code:
=================
sudo fdisk /dev/disk2
Disk: /dev/disk2	geometry: 97451/255/63 [1565565872 sectors]
Signature: 0x0
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused
I have no idea what is happening here but there is not GPT anymore on the disk and I am not able to write a new one. Everything I tried is giving me an input/output error but I cannot believe that 5 perfectly working disk all of a sudden don't work anymore.

Thanks in advance
Guido
 
Old 12-14-2017, 11:52 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Try:

Code:
blockdev --getro /dev/disk2

If it prints "1" then the device has been set read-only.
 
Old 12-14-2017, 01:45 PM   #3
chicken057
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
Try:

Code:
blockdev --getro /dev/disk2

If it prints "1" then the device has been set read-only.
It is set to "0" and I can also write data with dd but simply cannot bring the HDD back to live because of the deep formatting. It seems that I would need to rewrite the GPT somehow manually. One thing is that this is a 512B/4096 drive but most of the newer drives are 4k drives.

sudo gpt -vv show /dev/disk2
gpt show: /dev/disk2: mediasize=3000592982016; sectorsize=512; blocks=5860533168

5860533168 = 732566646 (4k)

sudo dd if=/dev/zero of=/dev/disk2 bs=4k seek=732566500 --> writes properly 46 blocks

Any idea? I really tried anything I can find. But I somehow need to recover the GPT.
 
Old 12-14-2017, 03:02 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Can't hurt to run smart tests or the OEM diag suite.

Some of the nas products do some odd stuff. Could be using in a a different way than we'd think in linux.

Put the drive back in the nas and run diags maybe.
 
Old 12-15-2017, 02:57 AM   #5
chicken057
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
I already ran SMART with the WD native tool and everything comes back fine. I can even write with DD to the complete disk and even to the last block. The thing I am wondering at the moment if this has something to do with the 4k disk itself as I am not able to dd with 512 byte only 4k and bigger. I put the drive already back to the NAS and that was my initial try but no chance to get this drives back to life there. That was actually the reason why I bought the SATA III to USB adapter. Very strange...but something must have done something do the disk I am not aware yet.


Quote:
Originally Posted by jefro View Post
Can't hurt to run smart tests or the OEM diag suite.

Some of the nas products do some odd stuff. Could be using in a a different way than we'd think in linux.

Put the drive back in the nas and run diags maybe.
 
Old 12-15-2017, 06:18 AM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Can you post the error from the system log?
 
Old 12-15-2017, 03:00 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I'd think a modern nas could initilize the drive. You say you dd'ed to it??? I'd assume it should need at least a standard mbr written to in now. Does gparted allow you to change it?
 
Old 12-15-2017, 03:33 PM   #8
chicken057
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
The Synology just comes back with cannot format...and can't remember exactly what error message. Gparted will tell me input/output error and when I want to initialise a new GPT it will fail. And yes I can dd to it without any issue.

Quote:
Originally Posted by jefro View Post
I'd think a modern nas could initilize the drive. You say you dd'ed to it??? I'd assume it should need at least a standard mbr written to in now. Does gparted allow you to change it?
 
  


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
LXer: Installing Debian testing On GPT HDDs (hegt/he 2TB) From A Grml Live Linux LXer Syndicated Linux News 0 11-26-2013 10:11 AM
[SOLVED] May have lost all HD data, ee GPT/GUID?!?! thallium Linux - Newbie 4 02-13-2013 06:35 AM
fdisk sees 2TB HDDs as GPT partitioned... Should I leave this or remove it? Aunnix Linux - Hardware 5 11-18-2012 04:52 PM
[SOLVED] Slackware 13.37 - gdisk choices, MBR, GPT or Blank GPT CFet Slackware - Installation 3 04-01-2011 04:46 PM

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

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