Postanowiłem utworzyć partycję na dysku USB 640GB za pomocą fdisk w openwrt. Oto co robiłem i zobaczyłem:
# fdisk /dev/sda
Note: sector size is 1024 (not 512)
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xe7b78e8d.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 38912.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 38912 cylinders
Units = cylinders of 16065 * 1024 = 16450560 bytes
Disk identifier: 0xe7b78e8d
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Partition number (1-4): ^C
root@Gargoyle:~# fdisk /dev/sda
Note: sector size is 1024 (not 512)
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x52115dce.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 38912.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
n
Invalid partition number for type `n'
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-38912, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-38912, default 38912): 800
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (801-38912, default 801):
Using default value 801
Last cylinder or +size or +sizeM or +sizeK (801-38912, default 38912): t
Last cylinder or +size or +sizeM or +sizeK (801-38912, default 38912): 1014
Command (m for help): p
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 38912 cylinders
Units = cylinders of 16065 * 1024 = 16450560 bytes
Disk identifier: 0x52115dce
Device Boot Start End Blocks Id System
/dev/sda1 1 800 12851937 83 Linux
/dev/sda2 801 1014 3437910 83 Linux
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (1015-38912, default 1015):
Using default value 1015
Last cylinder or +size or +sizeM or +sizeK (1015-38912, default 38912):
Using default value 38912
Command (m for help):
Czy to normalne, że tak duży dysk ma tu tylko 38912 cylindrów? W ubuntu sformatowałem go totalnie bez tworzenia partycji.
MiniPC 6xRJ45 2Gb, N100, 16GB DDR5, 1TB NVMe (Gargoyle)
Linksys WRT3200ACM (Gargoyle)
Tp-link 1043NDv2 (Gargoyle)