Difference between revisions of "Partisi Harddisk Menggunakan fdisk"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: Misalnya kita akan memmbuat sebuah USB harddisk dengan partisi * /opt 512 Mb * swap 64 Mb * /jffs 256 Mb * data sisanya ===Partisi menggunakan fdisk=== Ganti /dev/sd? dengan device yan...) |
Onnowpurbo (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
* data sisanya | * data sisanya | ||
− | + | ==Partisi menggunakan fdisk== | |
Ganti /dev/sd? dengan device yang sebenarnya (misalnya /dev/sde) | Ganti /dev/sd? dengan device yang sebenarnya (misalnya /dev/sde) | ||
Line 83: | Line 83: | ||
* [[Linux Howto]] | * [[Linux Howto]] | ||
+ | * [[gdisk]] |
Latest revision as of 06:41, 21 October 2020
Misalnya kita akan memmbuat sebuah USB harddisk dengan partisi
- /opt 512 Mb
- swap 64 Mb
- /jffs 256 Mb
- data sisanya
Partisi menggunakan fdisk
Ganti /dev/sd? dengan device yang sebenarnya (misalnya /dev/sde)
fdisk /dev/sd? Command (m for help): d (deletes the partition) Selected partition 1 Command (m for help): p Disk /dev/sdd: 8015 MB, 8015314944 bytes 255 heads, 63 sectors/track, 974 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0006fe25 Device Boot Start End Blocks Id System Command (m for help): p Disk /dev/sd?: 64 heads, 63 sectors, 621 cylinders Units = cylinders of 4032 * 512 bytes Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-621, default 1):<HIT ENTER> Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-621, default 621): +512M <HIT ENTER> Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (197-621, default 197):<HIT ENTER> Using default value 197 Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +64M <HIT ENTER> Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (197-621, default 197):<HIT ENTER> Using default value 621 Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +128M <HIT ENTER> Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 4 First cylinder (197-621, default 197):<HIT ENTER> Using default value 1 Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): <HIT ENTER> Command (m for help): t Partition number (1-4): 2 Hex code (type L to list codes): 82 Changed system type of partition 2 to 82 (Linux swap) Command (m for help): p Disk /dev/sd?: 64 heads, 63 sectors, 621 cylinders Units = cylinders of 4032 * 512 bytes Device Boot Start End Blocks Id System /dev/sd?1 * 1 196 395104+ 83 Linux /dev/sd?2 197 262 133056 82 Linux swap /dev/sd?3 263 458 395136 83 Linux Command (m for help): w
Format partisi USB harddisk (ganti /dev/sd? dengan/dev/sdX dari harddisk anda) menggunakan perintah
mke2fs -j -m 1 -L Optware /dev/sd?1 mkswap /dev/sd?2 mke2fs -j -m 1 -L Shared /dev/sd?3 mke2fs -j -m 1 -L Data /dev/sd?4