############################################################################3 Partitioning Partitioning and labeling a disk under Linux is done with the FDISK command. There is also a screen-oriented version called CFDISK, which has essentially the same commands. [root@abby /root]# fdisk -l Disk /dev/sda (Sun disk label): 9 heads, 80 sectors, 1151 cylinders Units = cylinders of 720 * 512 bytes Device Flag Begin Start End Blocks Id System /dev/sda1 0 0 1000 360000 83 Linux native /dev/sda2 u 1000 1000 1151 54360 82 Linux swap /dev/sda3 0 0 1151 414360 0 Empty [root@abby /root]# fdisk Using /dev/sda as default device! Command (m for help): m Command action a toggle a read only flag b edit bsd disklabel c toggle the mountable flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): l 0 Empty 3 SunOS swap 6 SunOS stand 82 Linux swap 1 Boot 4 SunOS usr 7 SunOS var 83 Linux native 2 SunOS root 5 Whole disk 8 SunOS home Command (m for help): q [root@abby /root]# fdisk -l Disk /dev/sda (Sun disk label): 9 heads, 80 sectors, 1151 cylinders Units = cylinders of 720 * 512 bytes Device Flag Begin Start End Blocks Id System /dev/sda1 0 0 1000 360000 83 Linux native /dev/sda2 u 1000 1000 1151 54360 82 Linux swap /dev/sda3 0 0 1151 414360 0 Empty [root@abby /root]# #------------------------ partition with windoz ---------------------# Dual boot partition with windoz on the first partition [root@praxan local]# fdisk -l Disk /dev/hda: 240 heads, 63 sectors, 1292 cylinders Units = cylinders of 15120 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 401 3031528+ c Win95 FAT32 (LBA) /dev/hda2 402 1079 5125680 83 Linux /dev/hda3 1080 1161 619920 83 Linux /dev/hda4 1162 1292 990360 82 Linux swap I used an application called fips to shrink the windoz partition then installed linux on the rest of the disk. In the above partition table there are two linux native partition and one swap partition. The smaller linux native is for additional data such as home directories or logs. Note: If possible put the linux native partion beginning under cylinder 1023. It works ! but I believe it may be happier.