Page 1 of 2

Is my hdd wrecked?

PostPosted: Wed Apr 18, 2018 10:28 am
by lillprinsen
Hi, guys im new here. I cant access my files and I got the blue blinking light om my cloudbox. I read a lot of posts here and used the Console and Standalone Kernel to check my cloudbox. And know think my hdd is totally broken. Is there any way to recover my files. This is the error codes I get whem I type gdisk -l /dev/sda

Code: Select all
GPT fdisk (gdisk) version 0.8.5

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.
Disk /dev/sda: 8089950 sectors, 3.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 00000000-0000-0000-0000-000000000000
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 8089916
Partitions will be aligned on 2048-sector boundaries
Total free space is 8089883 sectors (3.9 GiB)

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


Please help. Thanks /C

Re: Is my hdd wrecked?

PostPosted: Wed Apr 18, 2018 12:05 pm
by fvdw
There is no partition table on this disk present according gdisk.
Furthermore the the read errors are also a bad sign.

Without partition table it is impossible to recover any data.
What you could try is recreate the original partition table. And see if you can mount the partition. The partition table is on the beginning of the disk and your data could still be present on the dsk.
The table points to the sectors where the partitions start and end and indentify the type of partition. Whatever you do, donot write anything else to the disk then the original partition table.
Why the table is lost ?? Couldbe a bad sector but could also be a failing disk

The original table is posted in several topics in this forum but here it is once more, this is for a 2 TB disk. Yours is 4 TB so you must adapt last sector of partition 8
Code: Select all
cloudbox original partiton table root@(none):/ # gdisk -l /dev/sda GPT fdisk (gdisk) version 0.8.5 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Disk /dev/sda: 3907029168 sectors, 1.8 TiB Logical sector size: 512 bytes Disk identifier (GUID): 48EB39C7-FA39-4315-9B4C-B7E4FE438E83 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries Total free space is 2014 sectors (1007.0 KiB)

Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 grub_core
2 4096 397311 192.0 MiB 8300 boot_rescue
3 397312 399359 1024.0 KiB 8300 nv_data   
4 399360 3545087 1.5 GiB FD00 root_1      
5 3545088 6690815 1.5 GiB FD00 root_2
6 6690816 8787967 1024.0 MiB FD00 var
7 8787968 9312255 256.0 MiB FD00 swap
8 9312256 3907029134 1.8 TiB FD00 user_data

Re: Is my hdd wrecked?

PostPosted: Wed Apr 18, 2018 1:22 pm
by lillprinsen
ok, thanks for the help. The problem is I have no idea how to recreate the original partition table or how to change to code you provided? Could you give me some pointers? Or what to search for?
Thnks /C

Re: Is my hdd wrecked?

PostPosted: Wed Apr 18, 2018 1:40 pm
by Jocko
Hi lillprinsen

Please to read this topic viewtopic.php?f=3&t=3#p14521

Currently you use a Disposable email address. So You must update your account by a real email account within 12 hours. You account will be removed on other case.

Re: Is my hdd wrecked?

PostPosted: Wed Apr 18, 2018 1:54 pm
by lillprinsen
Jocko wrote:Hi lillprinsen

Please to read this topic viewtopic.php?f=3&t=3#p14521

Currently you use a Disposable email address. So You must update your account by a real email account within 12 hours. You account will be removed on other case.


Hi Jocko thats the only email address i’ve got that isnt a gmail. Can I change to my gmail adress?

Re: Is my hdd wrecked?

PostPosted: Wed Apr 18, 2018 2:04 pm
by Jocko
So send an email from your gmail address to our admin address so that we add an exclude rule on yours

---edit---
I updated your account

Re: Is my hdd wrecked?

PostPosted: Thu Apr 19, 2018 8:53 am
by fvdw
Hi

In gdisk there is the command "m" it wil give you a list of posdible commands you can give.
One of them is "n" that is used to create a partition entry
When you use it gdisk will ask to give partition number start sector end sector and partition type. The last one has a help command to show a list of avaible types. Pick the one as shown in the example. Same holds for start and end sector except for end sector of partition 8, chose as last sector for this partition the max sector of your disk as shown in the header when gdisk is started (8089916). When done use command "p" to see th result of your work. If you are happy with the new partition table use the command "w" to write it to disk. This last step is required, if you don't do that and just close gdisk the new table is lost and no changes are made to the disk.

Re: Is my hdd wrecked?

PostPosted: Thu Apr 19, 2018 10:10 am
by lillprinsen
fvdw wrote:Hi

In gdisk there is the command "m" it wil give you a list of posdible commands you can give.
One of them is "n" that is used to create a partition entry
When you use it gdisk will ask to give partition number start sector end sector and partition type. The last one has a help command to show a list of avaible types. Pick the one as shown in the example. Same holds for start and end sector except for end sector of partition 8, chose as last sector for this partition the max sector of your disk as shown in the header when gdisk is started (8089916). When done use command "p" to see th result of your work. If you are happy with the new partition table use the command "w" to write it to disk. This last step is required, if you don't do that and just close gdisk the new table is lost and no changes are made to the disk.


Thx i'll give it a try.

Re: Is my hdd wrecked?

PostPosted: Fri Apr 20, 2018 7:01 am
by lillprinsen
lillprinsen wrote:
fvdw wrote:Hi

In gdisk there is the command "m" it wil give you a list of posdible commands you can give.
One of them is "n" that is used to create a partition entry
When you use it gdisk will ask to give partition number start sector end sector and partition type. The last one has a help command to show a list of avaible types. Pick the one as shown in the example. Same holds for start and end sector except for end sector of partition 8, chose as last sector for this partition the max sector of your disk as shown in the header when gdisk is started (8089916). When done use command "p" to see th result of your work. If you are happy with the new partition table use the command "w" to write it to disk. This last step is required, if you don't do that and just close gdisk the new table is lost and no changes are made to the disk.


Thx i'll give it a try.


I have been trying for hours and googled and can´t seem to understand how to execute commands in gdisk. I should do this in the connected telenet right? This is ehat happens when I try.
Code: Select all
root@fvdw-sta-kirkwood:/ # gdisk -l dev/sda
GPT fdisk (gdisk) version 0.8.5

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.
Disk dev/sda: 8089950 sectors, 3.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 00000000-0000-0000-0000-000000000000
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 8089916
Partitions will be aligned on 2048-sector boundaries
Total free space is 8089883 sectors (3.9 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
root@fvdw-sta-kirkwood:/ # gdisk -n
GPT fdisk (gdisk) version 0.8.5

Problem opening -n for reading! Error is 2.
The specified file does not exist!
root@fvdw-sta-kirkwood:/ #


I understand that im doing something wrong but cant figure out what. Please help. /C

Re: Is my hdd wrecked?

PostPosted: Fri Apr 20, 2018 7:54 am
by fvdw
Yes you must use gdisk on the linux command line, so via telnet client assuming you run our standalone kernel.

you should start gdisk like this (so without the -l option)

Code: Select all
gdisk /dev/sda

;)

Now you should be able to enter commands as explained

PS when you use the -l option it only list drive info, you can use that command later to check if you made the correct partition table