by 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.