Raid5 Faile: can not change to fd00

Re: Raid5 Faile: can not change to fd00

Postby Draftmancorp » Thu Jan 20, 2022 6:20 pm

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:/ #
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 6:23 pm

So currently, do not stop the nas it won't reboot now. We go to try to create manually the mbr table as you posted it on a previous post
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 6:25 pm

:shocked ah... ok.
yeah, i can't stop the nas becouse i'm not physically there. i'm working remotly, so i can perform many reboot as you want, but not a "stop" because then I couldn't turn it on. :mrgreen:
ok... I always know how to make you have a nice evening, right? :snicker i'm not so lucky.
Check, pp account, I sent you a coffee with croissants.
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 6:41 pm

So
try to remove the protective mbr partition
Code: Select all
fdisk /dev/sda
d + enter
w + enter
q +enter

Create the mbr table
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


then type p + enter and you should get this partition table
Code: Select all
   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


only in this case type w+enter to save it and q +enter to quit fdisk interface. Then post fdisk -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 6:49 pm

ops... make a messsssss

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

The number of cylinders for this disk is set to 242251.
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): d
Selected partition 1

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:/ # q
-sh: q: not found
root@Norman_Nas:/ # fdisk /dev/sda

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
[color=#FF0000]First cylinder (1-243201, default 1): 4[/color]
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): 201
Value is out of range
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): Command (m for help): n
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): Command action
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8):    e   extended
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8):    p   primary partition (1-4)
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): e
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): Selected partition 4
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): First cylinder (1-243201, default 1): 4
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): 201
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): Value is out of range
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): Last cylinder or +size or +sizeM or +sizeK (4-8, default 8):
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8):


I make a mess here:

Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Selected partition 4
First cylinder (1-243201, default 1): 4 (it had to be 201 right?)
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8): 201
Value is out of range
Last cylinder or +size or +sizeM or +sizeK (4-8, default 8):

then it slipped a "paste" command and disaster...

How can i turn back or... overwrite this mess? :doh
or maybe ow can i start from begin?
Last edited by Draftmancorp on Thu Jan 20, 2022 6:51 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 6:51 pm

type p to see what partitions are set
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 6:52 pm

Jocko wrote:type p to see what partitions are set


Code: Select all
Command (m for help): p

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               4           4        8032+  5 Extended

Partition table entries are not in disk order

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 6:54 pm

so delete partition 4
Code: Select all
d +enter
4 + enter
and restart from this step n -> e -> 4 -> 201 -> 243201
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 6:59 pm

Jocko wrote:so delete partition 4
Code: Select all
d +enter
4 + enter
and restart from this step n -> e -> 4 -> 201 -> 243201


thanks, here we are:

Code: Select all
Command (m for help): p

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

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:00 pm

so saved it by typing w + enter and post
Code: Select all
fdisk -l /dev/sda
gdisk /dev/sda
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 15 guests