I want to create on my disk this table partition using the command fdisk.

  1. SWAP 10MB
  2. FAT32 25MB
  3. FAT32 15MB
  4. Linux 20MB
  5. FAT32 20MB

I'm facing a problem: I know I can have only 4 primary partitions so I have to create an extended partition after the 3rd partition.

It's correct to create an extended partition to hold the last 2 (Linux and FAT32) with size 40M? Because I tried it and it gave me error out of size memory ("VALUE OUT OF RANGE"). I suppose i need more than 40M but i can't understand how much.

  • I'm working on a virtual machine, i used this values just to understand the method, i think it's the same using MB or GB. The same applies to the partition, i can put all FAT32 if it's better. – Alessio Jun 10 at 21:27
  • I took it from the list of partition identifiers, in the fdisk prompt. At number 83 - "Linux native partition". Number 82 for Linux swap – Alessio Jun 11 at 14:17
  • With a swap file (normally the size of your physical RAM) you don't need a swap partition, so 1 partition can serve as your Linux partition+swap. Therefore you don't need an extended partition even if you use MBR/BIOS partition tables; GPT partition tables do not have the four partition limit at all. Note: "Various filesystem types like xiafs, ext2, ext3, reiserfs, etc. all use ID 83" per win.tue.nl/~aeb/partitions/partition_types-1.html Therefore, partition 4 could be ext2, ext3, ext4, ZFS, btrfs, any number of partition formats... there's no one 'Linux' partition format. – K7AAY Jun 11 at 16:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.