is this disk empty ?
do a CTRL+c to leave gdisk
then enter gdisk again
- Code: Select all
gdisk /dev/sdb
and give command "p" to see what on there
gdisk /dev/sdb
login as: root
root@192.168.1.189's password:
Access denied
root@192.168.1.189's password:
root@fvdwsl-base:/ # gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.5
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: damaged
Found valid MBR and corrupt GPT. Which do you want to use? (Using the
GPT MAY permit recovery of GPT data.)
1 - MBR
2 - GPT
3 - Create blank GPT
Your answer: p
Command (? for help): ^C
root@fvdwsl-base:/ # gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.5
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: damaged
Found valid MBR and corrupt GPT. Which do you want to use? (Using the
GPT MAY permit recovery of GPT data.)
1 - MBR
2 - GPT
3 - Create blank GPT
Your answer: p
login as: root
root@192.168.1.189's password:
root@fvdwsl-base:/ # gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.5
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: damaged
Found valid MBR and corrupt GPT. Which do you want to use? (Using the
GPT MAY permit recovery of GPT data.)
1 - MBR
2 - GPT
3 - Create blank GPT
Your answer: 2
Command (? for help): p
Disk /dev/sdb: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): BD9E4609-6C8E-4E0B-A9FE-9FABDD95600B
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 28866 sectors (14.1 MiB)
Number Start (sector) End (sector) Size Code Name
1 4036608 4038655 1024.0 KiB 0700 primary
2 4048896 3907028991 1.8 TiB 0700 primary
3 4040704 4042571 934.0 KiB 0700 primary
4 4044800 4046848 1.0 MiB 0700 primary
5 2048 514047 250.0 MiB 0700 primary
6 530432 546497 7.8 MiB 0700 primary
7 546816 578945 15.7 MiB 0700 primary
8 579584 2266409 823.6 MiB 0700 primary
9 2267136 4018221 855.0 MiB 0700 primary
10 4020224 4036289 7.8 MiB 0700 primary
Command (? for help):
gdisk -l /dev/sdb
login as: root
root@192.168.1.189's password:
root@fvdwsl-base:/ # gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.5
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: damaged
Found valid MBR and corrupt GPT. Which do you want to use? (Using the
GPT MAY permit recovery of GPT data.)
1 - MBR
2 - GPT
3 - Create blank GPT
Your answer: 2
Command (? for help): d
Partition number (1-10): 10
Command (? for help): d
Partition number (1-9): 9
Command (? for help): d
Partition number (1-8): 8
Command (? for help): d
Partition number (1-7): 7
Command (? for help): d
Partition number (1-6): 6
Command (? for help): d
Partition number (1-5): 5
Command (? for help): d
Partition number (1-4): 4
Command (? for help): d
Partition number (1-3): 3
Command (? for help): d
Partition number (1-2): 2d
Command (? for help): d
Using 1
Command (? for help): 2
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): d
No partitions
Command (? for help): n
Partition number (1-128, default 1): 1
First sector (34-3907029134, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-3907029134, default = 3907029134) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
Command (? for help): p
Disk /dev/sdb: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): BD9E4609-6C8E-4E0B-A9FE-9FABDD95600B
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 3907029134 1.8 TiB 8300 Linux filesystem
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/sdb.
The operation has completed successfully.
root@fvdwsl-base:/ # gdisk -l /dev/sdb
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/sdb: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): BD9E4609-6C8E-4E0B-A9FE-9FABDD95600B
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 3907029134 1.8 TiB 8300 Linux filesystem
root@fvdwsl-base:/ #
mke2fs -j -m 1 /dev/sdb1
Return to Lacie 5big Network vs2
Users browsing this forum: No registered users and 11 guests