Questions tagged [partitioning]

When you create two or more logical volumes (drives) from one physical hard disk (or other storage device), you're working with partitions.

Hard drives have traditionally had much more storage space than removable media (this is generally still true today). The earliest PCs had 5 and 10 megabyte hard drives available, this was in contrast to the common 360k 5.25 inch floppy discs at the time. Because of this, some have found it useful to logically divide portions of a high-capacity storage medium into smaller partitions. All modern operating systems are capable of presenting each partition as a separate volume or "drive" to the user and applications.

Windows, for example, will give each partition its own drive letter, making it "logically" appear as though you have multiple hard drives (the Windows technical term for what the drive letters refer to is a volume - and one volume can live in a partition). Linux and other UNIX-like systems will give each partition its own block device in /dev, i.e. /dev/sda1, /dev/sda2, etc.

On PC's, partition tables have been traditionally recorded using a small table in LBA (block/sector) 0 (the very beginning) of the device called the Master Boot Record, or MBR . The MBR has only room for 4 partition entries - so a scheme to allow more partitions was devised that allow any of those entries to be an extended partition, which points to more partitions (the original type is called primary.)

Some operating systems have limitations on which type (and sometimes even size or offset) of partition they can boot from - most DOS versions, for example, can only boot from a primary partition within the first 2G of the disk. Modern operating systems such as newer Windows or Linux versions aren't too picky.

One limitation of the MBR is that it can't point to a space on the disk greater than 2TB. Because of this, a new method of recording partitions was developed called the GUID Partition Table . It works a bit differently than MBR and there is no "primary"/"extended" scheme. GPT supports 128 partitions. (GPT is part of Intel's UEFI spec, a BIOS replacement.)

Older (pre-Intel) Macintosh computers used a scheme called the Apple Partition Map.

7492 questions
182
votes
18 answers

What utility can move my Windows boot partition over to another hard drive?

Can anyone recommend a cheap/free utility that can do this without very much effort? My preference is that it would be really easy. Boot into Windows Pick drive to move Pick target drive It copies everything over, and reboots to the correct…
162
votes
4 answers

How to delete a partition on a USB drive?

I have a USB drive that I accidentally partitioned when trying to put Ubuntu on it. It's a 16 GB Kingston flash drive but it is now split to two partitions, 7.30 GB each. How do I combine the two partitions into one? I have tried Disk Management in…
159
votes
4 answers

How to delete the Recovery Partition in Windows 10?

I need to convert the disk containing my operating system to a dynamic disk (from a basic disk). Unfortunately there is no room on the disk to convert the drive from basic to dynamic. Microsoft documents the problem, and notes the solution is to…
Ian Boyd
  • 23,066
130
votes
13 answers

How can I shrink a Windows 10 partition?

I use a big single partition on a 1TB platter drive with Windows 10. I would like to shrink the partition down so that I can mirror the drive to a smaller but faster 256GB SSD. I bought the drive without planning much. (Oops.) I saw that I'm only…
kdbanman
  • 2,054
125
votes
8 answers

How to shrink Windows 7 boot partition with unmovable files

I have just bought an HP laptop with Windows 7 (64 bit). It has a 500 GB HDD with three partitions: a small hidden system partition, a 12 GiB HP recovery partition, and a 450 GiB C: boot partition. I would like to split this large C: partition into…
Alex Che
  • 2,760
117
votes
2 answers

Diskpart - Can't delete a partition without the force protected parameter set

Following on from my previous question (Can't remove recovery partition) I have been trying to use Diskpart - with the following results: Is my disk locked in a permanent way or is this something I can easily address without additional tools?
Mr. Boy
  • 5,554
102
votes
12 answers

How to create and format a partition using a Bash script?

Is there any way to create and format a partition using a Bash script? I think it can be done with fdisk but I don't know how to feed commands from the Bash script into the fdisk shell and then exit the fdisk shell. I'd like to create a partition…
GlassGhost
  • 1,279
97
votes
6 answers

Disadvantages of partitioning an SSD?

A wise guy who goes by the name of NickN maintains a lenghty forum post on his views about building a powerful computer (directed towards playing Microsoft's Flight Simulator X, a very demanding piece of software). He sums up points about SSD drives…
MarioDS
  • 1,622
92
votes
2 answers

Creating ext4 partition from console

I have a volume /dev/sda1 (1.2 TB) containing an NTFS partition using 0.6 TB space. I want to make an ext4 partition in the remaining 0.6 TB space. I have not tried anything yet because I don't want to risk losing data if I hit a wrong command. (I…
Daniel W.
  • 2,048
77
votes
2 answers

Why does Linux list NVMe drives as /dev/nvme0 instead of /dev/sda?

Recently I installed an NVMe drive in my Linux computer and I noticed that it's listed as /dev/nvme0 and its partition is /dev/nvme0p1. I'm aware that it's a different interface than SATA drives, but what's the reason why it's listed this way? It…
user1030296
74
votes
14 answers

Is there a reason to keep Windows' primary partition / drive C: small?

In my jobs almost two decades ago, IT experts would keep the size of Windows' main partition (C drive) extremely small compared to the other partitions. They would argued this runs PC at optimum speed without slowing down. But the downside of it is,…
TheTechGuy
  • 2,054
73
votes
7 answers

grub2-install: "this GPT partition label contains no BIOS Boot Partition"

There seems to be quite a bit of discussion about this but I can't find a simple answer. When I try to install grub2 I get this error: # grub2-install /dev/sda Installing for i386-pc platform. grub2-install: warning: this GPT partition label…
Robert S
  • 907
72
votes
4 answers

How to expand the Windows partition when the Recovery one is in the way?

My partitions on my primary disk look like this: I would like to expand C: with the Unallocated space but the 946 MB Recovery partition is in the way. Is there a way to swap the Recovery partition with the Unallocated space (= move it to the end…
WoJ
  • 3,875
71
votes
3 answers

16 GB USB flash drive capacity down to 938 MB

After writing the FreeNAS IMG to a 16 GB USB flash drive, I can now only use 938 MB. I used the Win32 Disk Imager tool to write the IMG to the device. Then later, when I inserted the the USB drive into my Windows 7 computer it said that it had to be…
Samir
  • 21,235
71
votes
6 answers

Why does the partition start on sector 2048 instead of 63?

I had two drives partitioned the same and running two RAID partitions on each. One died and I replaced it under warranty for the same model. While trying to partition it, the first partition can only start on sector 2048, instead of 63 that was…
gcb
  • 5,442
  • 13
  • 62
  • 86
1
2 3
99 100