Page 1 of 1

Error deleting the partitioning scheme on /dev/sda *Solved*

PostPosted: Thu Dec 21, 2017 7:47 pm
by IchIch
Hello! I got a little trouble installing the fvdw firmware on my 2TB Cloudbox.
After the NAS stop working i was able to save all my data via fvdw console and FTP, reading the awesome instrucions by @fvdw (thanks, thanks, thanks!), but now i can't install the firmware. The console give me this commands:

Code: Select all
fdisk: device has more than 2^32 sectors, can't use all of them
GPT fdisk (gdisk) version 0.8.5

Caution! After loading partitions, the CRC doesn't check out!
Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: damaged

Found invalid MBR and corrupt GPT. What do you want to do? (Using the
GPT MAY permit recovery of GPT data.)
 1 - Use current GPT
 2 - Create blank GPT

Your answer:
Command (? for help): b back up GPT data to a file
c       change a partition's name
d       delete a partition
i       show detailed information on a partition
l       list known partition types
n       add a new partition
o       create a new empty GUID partition table (GPT)
p       print the partition table
q       quit without saving changes
r       recovery and transformation options (experts only)
s       sort partitions
t       change a partition's type code
v       verify disk
w       write table to disk and exit
x       extra functionality (experts only)
?       print this menu

Command (? for help): b back up GPT data to a file
c       change a partition's name
d       delete a partition
i       show detailed information on a partition
l       list known partition types
n       add a new partition
o       create a new empty GUID partition table (GPT)
p       print the partition table
q       quit without saving changes
r       recovery and transformation options (experts only)
s       sort partitions
t       change a partition's type code
v       verify disk
w       write table to disk and exit
x       extra functionality (experts only)
?       print this menu

Command (? for help): b back up GPT data to a file
c       change a partition's name
d       delete a partition
i       show detailed information on a partition
l       list known partition types
n       add a new partition
o       create a new empty GUID partition table (GPT)
p       print the partition table
q       quit without saving changes
r       recovery and transformation options (experts only)
s       sort partitions
t       change a partition's type code
v       verify disk
w       write table to disk and exit
x       extra functionality (experts only)
?       print this menu

Command (? for help):
Command (? for help):
There was an error deleting the partitioning scheme on /dev/sda.
Installer will exit

root@fvdw-sta-kirkwood:/ # cat installer.log

fvdw-sl-installer log
tftpd ip address 192.168.0.16
getting required programs from tftp server 192.168.0.16
Dialog installed
xterm installed
mke2fs-ext3 present
gdisk present
Start fvdw-sl firmware installer version 3.1

selected nas type cloudbox platform kirkwood
selected disk /dev/sda
gpt support bootloader selected yes
selected partion table type msdos
Deleting old msdos partiton table
deleting msdos partition failed


Tried with and without GPT support, whit and without sayng that my disk are bigger than 2GB; same results.
I found this post http://plugout.net/viewtopic.php?f=28&t=1926&view=next but it was pretty useless :-/
Can you help me? I have absolutely no experience with linux, coding and so, but i'm pretty good with copy/paste :D

Re: Error deleting the partitioning scheme on /dev/sda

PostPosted: Thu Dec 21, 2017 8:33 pm
by fvdw
selected nas type cloudbox platform kirkwood
selected disk /dev/sda
gpt support bootloader selected yes
selected partion table type msdos
Deleting old msdos partiton table
deleting msdos partition failed


you must select to use gpt partition table, an ms-dos partition table can not be used on a disk bigger then 2 GB
In the output you posted you did not do that as it mentions that you selected msdos

But it seems your gpt partition table is corrupt causing difficulties for the installer to delete it.
What you could try is on the command line start gdisk and delete the partition table on sda then run the installer again and choose use gpt
(before leaving gdisk be sure to use the "w" command to write new partition table or changes to partition table to disk. This is also required after deleting a partition table

Re: Error deleting the partitioning scheme on /dev/sda

PostPosted: Thu Dec 21, 2017 11:45 pm
by IchIch
Hey fvdw, thanks a lot for the quick answer.
I posted the output related to my last attempt, but same error about deleting partition occours in other attempts, with gpt and "Bigger than 2 GB" option selected.
Can you please write me the commands to delete the partition table by gdisk on command line (and the "w" command), or address me to a topic that talking about that? Thanks for your your patience :-)

Re: Error deleting the partitioning scheme on /dev/sda

PostPosted: Thu Dec 21, 2017 11:59 pm
by Jocko
on the telnet window, do
Code: Select all
gdisk /dev/sda
and it must say
Code: Select all
Found invalid MBR and corrupt GPT. What do you want to do? (Using the GPT MAY permit recovery of GPT data.)
 1 - Use current GPT
 2 - Create blank GPT

Your answer:
select "Create blank GPT" by typing '2'

Then check if the partition table is now empty: type 'p'

if yes try again to install the firmware (after closing gdisk menu : type 'q')

Now is too late for me :z)

Re: Error deleting the partitioning scheme on /dev/sda

PostPosted: Fri Dec 22, 2017 12:23 am
by IchIch
Thanks Jocko! I'll try ASAP. Sleep well :-)

Re: Error deleting the partitioning scheme on /dev/sda

PostPosted: Fri Dec 22, 2017 11:12 am
by IchIch
Worked like a charm!
So, to sum it up:

Device: Lacie Cloudbox (White casing)
Problem: The console say "There was an error deleting the partitioning scheme on /dev/sda."
Why: Corrupt gpt partition table
Solution:
Write on the telnet window:
Code: Select all
gdisk /dev/sda

It must say
Code: Select all
Found invalid MBR and corrupt GPT. What do you want to do? (Using the GPT MAY permit recovery of GPT data.)
 1 - Use current GPT
 2 - Create blank GPT

Select "2", than "w" at the next prompt.

After that, the GDisk quit by himself, so, to check if the partition table is empty, I retype:
Code: Select all
gdisk /dev/sda

And than "p"
Everything was fine, so i retry to install the firmware as written on the help file, and it worked great.

Thanks a lot to @fvdw and @Jocko for the quick, nice and precise help (feel free to modify this post to leave a better help for those who will have the same problem).
...and sorry for my english.

Have to go... playing with my new toy :-)

Re: Error deleting the partitioning scheme on /dev/sda

PostPosted: Fri Dec 22, 2017 1:16 pm
by Jocko
:thumbup
Nice you succeeded to fix your issues