Re: partitions and fdisk

From: Stefan Patric (tootek2_at_yahoo.com)
Date: 08/31/03


Date: Sat, 30 Aug 2003 15:44:55 -0700

Alex Kendrick on Saturday 30 August 2003 13:53 wrote:

> I'm trying to create a new partition on my (one) hard disk. At the
> moment there are 3, boot, swap, and linux and all my data itself. My
> partition program is fdisk but I can't get it to create a new
> partition. To anyone familiar with the program, when i use the 'n'
> command it just replies that there are no spare sectors avaliable.
> Which is right, they are all used up. I can't find the command on
> fdisk to free up some sectors and then use these as my new
> partition, even when in exit mode.

fdisk told you why you can't create another new partition: "no spare
sectors available"; that is, there is no unpartitioned space
available, the disk is fully partitioned, etc.

fdisk can only "free up" sectors by deleting existing partitions,
which I don't think you want to do. What you need is a utility to
"shrink" an existing partition without destroying its contents to
provide space for more partitions. Parted, partition editor, will do
that, among other things. Some distros include it. For the others,
you'll have to download it. (Sorry, I can't post a link to where you
can download it. Start with a Yahoo search.)

In addition, you'll have to consider the type of partitions that you
now have. If they are all Primary types, you can only make ONE more
Primary partition, the maximum permitted -- 4 Primary partitions. Or
you can make an Extended partition of that last available Primary,
and then put as many Logical partitions on it that you like.

-- 
Stefan Patric
tootek2@yahoo.com


Relevant Pages

  • Re: The Linux FAT issue on SD Cards.. maintainer support please
    ... > find the cylinder information as 448 where as my driver ioctl returns ... > made by fdisk command. ... If the partition starts at sector 57 and is 28743 sectors long, ...
    (Linux-Kernel)
  • Re: large RAID volume partition strategy
    ... because my case 2 I could make three 2Tb fdisk slices ... which bsdlabel can then partition? ... least for bsdlabel, I think fdisk is stuck in 512-byte sectors) to 4 TB, ...
    (freebsd-stable)
  • Re: messed up partition table reinstalling windows 98
    ... I booted up her system using the 98 floppy, ran fdisk and deleted the ... Partition 1 as an Extended DOS partition 353 MB ... The Extended DOS Partition contains Logical DOS Drives ...
    (Ubuntu)
  • Re: Partition =?ISO-8859-1?Q?vergr=F6=DFern?=
    ... dem fdisk sehr wohl mit einer Partition und nicht mit einem ... Aufruf mit eine Partition. ... Der von einigen richtigerweise gemachte Einwand, fdisk könne nur auf der ganzen Platte arbeiten, scheinst Du ignorieren zu wollen. ...
    (de.comp.os.unix.linux.misc)
  • Re: fdisk: ERROR: failed to adjust; setting sysid to 0
    ... using fdisk to setup ... Should I ignore the warning re: "partition does not ... Figures below won't work with BIOS for partitions ... requirement that partition boundarys end on and begin ...
    (freebsd-questions)