Raid5 Faile: can not change to fd00

Re: Raid5 Faile: can not change to fd00

Postby Draftmancorp » Thu Jan 20, 2022 7:02 pm

Jocko wrote:so saved it by typing w + enter and post
Code: Select all
fdisk -l /dev/sda
gdisk /dev/sda


here we are:

Code: Select all
root@Norman_Nas:/ # fdisk -l /dev/sda

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               9          72      514080  83 Linux
/dev/sda2              73         136      514080  83 Linux
/dev/sda3             137         200      514080  82 Linux swap
/dev/sda4             201      243201  1951905532+  5 Extended
/dev/sda5             209         312      835380  83 Linux
/dev/sda6             321         328       64260  83 Linux
/dev/sda7             337         400      514080  83 Linux
/dev/sda8             409      243201  1950234772+ 83 Linux
root@Norman_Nas:/ # gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: present

Found valid MBR and GPT. Which do you want to use?
 1 - MBR
 2 - GPT
 3 - Create blank GPT

Your answer:
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Re: Raid5 Faile: can not change to fd00

Postby Jocko » Thu Jan 20, 2022 7:04 pm

SO we try now to delete the Lacie gpt table, select 3 and type w -> y to save it

Note : I do not know if the mbr will be again deleted. In this case you have to create it again :shocked
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid5 Faile: can not change to fd00

Postby Draftmancorp » Thu Jan 20, 2022 7:06 pm

Jocko wrote:SO we try now to delete the Lacie gpt table, select 3 and type w -> y to save it
Note : I do not know if the mbr will be again deleted. In this case you have to create it again :shocked

Code: Select all
Your answer: 3
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/sda.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
root@Norman_Nas:/ #


need I to perform a fdisk -l /dev/sda?
Last edited by Draftmancorp on Thu Jan 20, 2022 7:08 pm, edited 1 time in total.
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Re: Raid5 Faile: can not change to fd00

Postby Jocko » Thu Jan 20, 2022 7:07 pm

and now if you do
Code: Select all
fdisk -l /dev/sda
gdisk -l /dev/sda
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid5 Faile: can not change to fd00

Postby Draftmancorp » Thu Jan 20, 2022 7:09 pm

here:

Code: Select all
login as: root
root@192.168.1.189's password:
root@Norman_Nas:/ # fdisk -l /dev/sda

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
256 heads, 63 sectors/track, 242251 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1      242252  1953514583+ ee EFI GPT
root@Norman_Nas:/ # 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): D012CED9-5442-4D68-8A9F-BE24EE4EABD6
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 3907029101 sectors (1.8 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name
root@Norman_Nas:/ #
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Re: Raid5 Faile: can not change to fd00

Postby Jocko » Thu Jan 20, 2022 7:14 pm

So we have to create again mbr partition but first we go to to destroy gpt data structures.

Code: Select all
gdisk /dev/sda
x + enter
z + enter
y + enter


use now fdisk and repeat
Code: Select all
fdisk /dev/sda
n + enter
p + enter
1 + enter
9 + enter
72 + enter

n + enter
p + enter
2 + enter
73 + enter
136 + enter

n + enter
p  + enter
3  + enter
137  + enter
200  + enter
t  + enter
3  + enter
82  + enter

n + enter
e + enter
4 + enter
201 + enter
243201 + enter

n + enter
209 + enter
312 + enter

n + enter
321 + enter
328 + enter

n + enter
337 + enter
400 + enter

n + enter
409 + enter
243201 + enter
save it (w + enter) and post
Code: Select all
fdisk -l /dev/sda
gdisk -l /dev/sda
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid5 Faile: can not change to fd00

Postby Draftmancorp » Thu Jan 20, 2022 7:21 pm

Code: Select all
login as: root
root@192.168.1.189's password:
root@Norman_Nas:/ # gdisk /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.

Command (? for help): x

Expert command (? for help): z
About to wipe out GPT on /dev/sda. Proceed? (Y/N): y
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Blank out MBR? (Y/N): y
root@Norman_Nas:/ # fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 243201.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-243201, default 1): 9
Last cylinder or +size or +sizeM or +sizeK (9-243201, default 243201): 72

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1-243201, default 1): 73
Last cylinder or +size or +sizeM or +sizeK (73-243201, default 243201): 136

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (1-243201, default 1): 137
Last cylinder or +size or +sizeM or +sizeK (137-243201, default 243201): 200

Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): 82
Changed system type of partition 3 to 82 (Linux swap)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
e
Selected partition 4
First cylinder (1-243201, default 1): 201
Last cylinder or +size or +sizeM or +sizeK (201-243201, default 243201): 243201

Command (m for help): n
First cylinder (201-243201, default 201): 209
Last cylinder or +size or +sizeM or +sizeK (209-243201, default 243201): 312

Command (m for help): n
First cylinder (201-243201, default 201): 321
Last cylinder or +size or +sizeM or +sizeK (321-243201, default 243201): 328

Command (m for help): n
First cylinder (201-243201, default 201): 337
Last cylinder or +size or +sizeM or +sizeK (337-243201, default 243201): 400

Command (m for help): n
First cylinder (201-243201, default 201): 409
Last cylinder or +size or +sizeM or +sizeK (409-243201, default 243201): 243201

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
root@Norman_Nas:/ # fdisk -l /dev/sda

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               9          72      514080  83 Linux
/dev/sda2              73         136      514080  83 Linux
/dev/sda3             137         200      514080  82 Linux swap
/dev/sda4             201      243201  1951905532+  5 Extended
/dev/sda5             209         312      835380  83 Linux
/dev/sda6             321         328       64260  83 Linux
/dev/sda7             337         400      514080  83 Linux
/dev/sda8             409      243201  1950234772+ 83 Linux
root@Norman_Nas:/ # gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************

Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 59F50F83-3525-4393-9EBB-A25F6F17066E
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 8-sector boundaries
Total free space is 647636 sectors (316.2 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1          128520         1156679   502.0 MiB   8300  Linux filesystem
   2         1156680         2184839   502.0 MiB   8300  Linux filesystem
   3         2184840         3212999   502.0 MiB   8200  Linux swap
   5         3341520         5012279   815.8 MiB   8300  Linux filesystem
   6         5140800         5269319   62.8 MiB    8300  Linux filesystem
   7         5397840         6425999   502.0 MiB   8300  Linux filesystem
   8         6554520      3907024064   1.8 TiB     8300  Linux filesystem
root@Norman_Nas:/ #
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Re: Raid5 Faile: can not change to fd00

Postby Jocko » Thu Jan 20, 2022 7:24 pm

Nice you have no longer the orphan lacie gpt table :thumbup

Last step change partition id on sda8, so run
Code: Select all
fdisk /dev/sda
t + enter
8 +enter
fd + enter
w + enter
fdisk -l /dev/sda



---edited to fix some bad commands---
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid5 Faile: can not change to fd00

Postby Draftmancorp » Thu Jan 20, 2022 7:25 pm

umm....not sure..

Code: Select all
login as: root
root@192.168.1.189's password:
root@Norman_Nas:/ # fdisk /dev/sda8
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 242793.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): t
No partition is defined yet!

Command (m for help):
Draftmancorp
Donator VIP
Donator VIP
 
Posts: 526
Joined: Thu May 02, 2013 1:55 pm

Re: Raid5 Faile: can not change to fd00

Postby Jocko » Thu Jan 20, 2022 7:27 pm

sorry it was
Code: Select all
fdisk /dev/sda
(type q to quit the current fdisk menu)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 9 guests