A partition is a means of logically dividing a computing resource (most frequently disk storage)

learn more… | top users | synonyms (1)

41
votes
8answers
46k views

How do I find the UUID of a partition

I'm running Ubuntu, and want to find out the UUID of a particular partition. I know I can use e2label /dev/sda1 to find out the partition label, but there doesn't seem to be a similar way to find the ...
38
votes
12answers
2k views

Sell partitioning to me

I have often wondered why there is such a passion for partitioning drives, especially on Unixy OSes (/usr, /var, et al). This does not seem to be a common theme with Windows installations. It seems ...
35
votes
10answers
2k views

Linux on VMware - why use partitioning?

When installing Linux VMs in a virtualized environment (ESXi in my case), are there any compelling reasons to partition the disks (when using ext4) rather than just adding separate disks for each ...
33
votes
7answers
27k views

Reread partition table without rebooting?

Sometimes, when resizing or otherwise mucking about with partitions on a disk, cfdisk will say: Wrote partition table, but re-read table failed. Reboot to update table. (This also happens with ...
20
votes
7answers
62k views

What is the recommended size for a Linux /boot partition?

What is the recommended size for a Linux /boot partition? And is it safe to not have a /boot partition? I see some servers don't have a /boot partition while some servers have a 128 MB /boot ...
19
votes
5answers
3k views

Unix Server Partitioning & Filesystem Layout

There's a lot of contradictory information about Unix server partitioning out on the internet, so I need some advice on how to proceed. So far, on the servers I in our test environment I didn't ...
18
votes
3answers
2k views

Why are there only four primary partitions on an MBR disk?

I'm reading the docs over at CentOS.org. In section 25.1.2. Partitions: Turning One Drive Into Many, there is the following statement: The partition table is divided into four sections or four ...
17
votes
1answer
1k views

In Linux, why isn't superuser root's folder under /home?

You can create a user that has privileges like root, and it's home directory will fall under /home/username. Why does root get its own folder at the top level of the file system? Is this just ...
15
votes
8answers
4k views

How many and which partitions should I create for a linux server?

Partitions are very important on Linux server because it give you a lot of flexibility, for example when upgrading to a bigger hard drive. But, how many partitions should I create when building a ...
15
votes
2answers
2k views

Verify A Partition is Aligned in Linux With RAID and LVM

Does anyone know the steps to verify that a XFS filesystem on top of LVM and md RAID is properly aligned on an array of 4096 Byte aka "Advanced Format" sectored disks? Some references are: ...
14
votes
4answers
7k views

ln -s vs mount --bind

Is there any practical difference between using ln -s or mount --bind? I want to move some folders to another partition, without changing their daemon setting, and wonder what approach I should take. ...
14
votes
4answers
1k views

Historical Question: Why does slice C or slice 2 cover the entire disk

Something that I was discussing with a couple of friends and we were unable to figure it out. In FreeBSD and OpenSolaris/Solaris when you partition a drive a partition is created that covers the whole ...
12
votes
4answers
17k views

Recommended disk/partition setup for a SQL Server

I'm looking for some advice regarding the best way to set up my disks/partitions for SQL Server. Here are some of my major concerns: How should the SQL files be seperated (data files, logs, temp)? ...
11
votes
8answers
21k views

How can I find out what hard disks are attached to a Linux box?

Here's an easy question for you guys: How do I find out what hard drives are attached to a linux box? I'm hoping for a single command that can give me a nice list of all ata/scsi/etc drives. I've ...
11
votes
5answers
2k views

Mounting a partition from a raw DD image file of a physical disk

I have a DD image taken from the raw HDD image (/dev/sdb). This image file contains an XFS filesystem that I need to mount. It is much too large to restore to disks (2.6TB img file) so I would like to ...
10
votes
10answers
43k views

How can I increase the size of a Windows 2003 NTFS partition?

I have a very important server running Windows Server 2003 and my System partition is becoming too small, it's slowing down the machine. I have already tried all the cleaning stuff and transferring ...
10
votes
1answer
1k views

Is there any way to fix a corrupted LDM database?

TL;DR: Are there any tools/approaches to diagnosing and fixing LDM (Logical Disk Manager) metadata structures without recreating from scratch? Full description: I have two SSD drives ...
9
votes
10answers
6k views

How big should the swap partition be?

for some years, I've read that it's a good idea to create a swap partition having the double space of my RAM. does it still apply today? or this isn't needed anymore? I have a server with 8 GiB of ...
9
votes
8answers
35k views

“fdisk -l” like list of partitions and their types for LVM logical volumes?

You know how "fdisk -l" lists drive partition tables and shows the partition id/types for each partition? Is there a similar way to get the partition id for LVM logical volumes? EDIT: I'm aware of ...
9
votes
8answers
18k views

Ubuntu: Resize the root LVM(2?) partition

I have an Ubuntu virtual machine running in VirtualBox 2.2.4, and I created it on an 8gb virtual disk which is too small. So, I am trying to increase the size of the disk. So far, I have done this: ...
8
votes
7answers
18k views

df says disk is full, but it is not

On a virtualized server running Ubuntu 10.04, df reports the following: # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 7.4G 7.0G 0 100% / none ...
8
votes
6answers
3k views

Are there good reasons to partition disks on Windows?

There seems to be a lot of confusion around having multiple partitions for Windows. Some of the theories I have heard are It's faster to move to a new partition start than searching for a file start ...
8
votes
3answers
6k views

Xen image file vs partition/LVM volume performance

I read quite a lot of advice to switch from file-image VM storage, to partition/LVM volume based. The claim is that partition/LVM are much faster then image files. The downside in my opinion, is ...
7
votes
6answers
1k views

So what do we use instead of PartitionMagic now that Symantec's killed it? [closed]

Apparently, since the last time I had to do a lot of playing with partitions and images, Symantec acquired, neglected, and killed off PartitionMagic. (Yeah, it's been a while.) What, then, are we ...
7
votes
4answers
3k views

If I resize a Linux partition using GParted will my data be safe?

I would like to shrink the size of a partition containing an Ubuntu distribution and files. Is it safe to assume that I will not lose or corrupt any of the files as long as I don't make the partition ...
7
votes
1answer
739 views

Non-interactively create one partition with all available disk size

This is disgusting to me, but it works: echo -e "n\np\n1\n\n\nt\nc\na\n1\nw" | fdisk /dev/sdb I would like to know a more prudent or elegant way to accomplish this. The entire boot record and ...
7
votes
1answer
1k views

Raid 1/10: Kernel panic- not syncing: attempted to kill init

I have setup Raid 1 & Raid 10 in Virtual Box for learning purpose. The following Partitions for 4 Hard Drives: I make a 100mb partition (/boot) on four drives and make that a raid 1 partition. ...
6
votes
11answers
3k views

Why have multiple partitions on a windows server?

With my IT outfit, we have templates to deploy servers with a dinky C drive/partition (10GB) and a larger D drive/partition. Why do this? Windows (at least until recently and at that minimally) has no ...
6
votes
2answers
3k views

Ext4 partition bigger than 2TB?

Is there a way to make partition bigger than 2 TB on ext4 file system ?? Im trying to do that on debian but get message Partition size can not exceed 2TB ...
6
votes
4answers
818 views

primary partition limit on Linux

I'm going to buy a server to host an Oracle database. The server will be running Red Hat Enterprise Linux 5. The server will have 6 hard drives. I know there is a limit of 4 primary partitions in ...
6
votes
4answers
12k views

Deleting All Partitions From the Command Line

How do you delete all partitions on a device from the command line on Linux (specifically Ubuntu)? I tried looking at fdisk, but it presents an interactive prompt. I'm looking for a single command, ...
6
votes
3answers
10k views

Can we mount multiple disks as one directory?

Are there way to mount the different disks as one directory? Assuming I have some disks with ext4 partitions: /dev/sda1 1Tb mounted as /store1 /dev/sda2 2Tb mounted as /store2 /dev/sdb1 2Tb mounted ...
6
votes
2answers
9k views

How to move /var to another existing partition?

I have a / partition which contains /var and is too small. I have another existing partition with enough space. Here is my df: File system Size. Occ. Avai. %Ful. Monté sur /dev/sda1 ...
6
votes
1answer
149 views

Forgot to create partition before running pvmove

I ran pvmove to migrate extents from an old LVM disk to a new one but I forgot to create the partition structure on the new disk first: pvmove /dev/sdb1 /dev/sdc Everything seems to be fine, but I'm ...
6
votes
1answer
2k views

combine partitions to one disk image

I have 3 images. Each image was done by cloning (by dd) a partition (these partitions formatted using ext3 file system). One partition is boot-able with GRUB1 (CentOS) How can I combine them to one ...
6
votes
2answers
2k views

Where does Ubuntu store partition UUIDs on disk?

Exactly what part of the disk is a UUID stored on? MBR? Somewhere within the partition? Is it a calculated value, or randomly generated and recorded?
6
votes
1answer
1k views

Are ZFS pools or LVM volume groups more reliable for utilizing many partitions?

When deciding whether to use LVM volume groups or ZFS pools in configuring new file servers, what needs to be considered? Is there a "better" choice in the realm of multi-purpose file servers? Unlike ...
6
votes
3answers
3k views

e2fsck on large filesystem fails with Error : Memory Allocation Failed

I'm trying to use e2fsck on a large raid array that is 2TB large and uses GPT for partitioning (because of size). There is only 1GB of ram installed on the system and I do not have the ability to add ...
5
votes
2answers
16k views

How do you repair a damaged or corrupt partition? [on hold]

I have a user with an external hard drive that is no longer recognised: the drive letter does not appear in My Computer. The drive is a Western Digital My Book Essential Edition (WD2500C032) With ...
5
votes
8answers
1k views

Hard drive partitioning software for Windows

I'm looking for a good disk partitioning/management software suite. I've been using Acronis Disk Director but I've had a few data corruption issues which I think might be related to it (especially ...
5
votes
2answers
12k views

Expand disk space on Ubuntu 10.04 (VMWare Guest)

I need to resize the disk space of an ubuntu guest in VMWare Workstation. After using the expand disk utility in vmware workstation, I need to do some linux magic to resize the parition. I have ...
5
votes
5answers
18k views

How to extend a Linux PV partition online after virtual disk growth

VMware allows to extend the size of a virtual disk online - when the VM is running. The next expected steps for Linux system are: extend the partition: delete and create a larger one with fdisk ...
5
votes
5answers
2k views

PostgreSQL High Performance Setup

I am setting up a server with the following specs: * Qty 4 Processors (AMD Opterons with 12 cores each) * 32 GB Memory * Qty 8 HDD (15K SAS Dual Port) * CentOS 5.5 * JBoss * PostgreSQL It is likely ...
5
votes
2answers
1k views

Mirroring partition table?

I would like to mirror one drive's partition table, that is, have exactly the same partition on both sda and sdb. I have heard that one of the fdisk utilities can export a partition table into a file, ...
5
votes
3answers
5k views

New Windows 2008 Disk Partitioning Offset question - should I worry about it?

We're about to hardware upgrade our exisiting Sql 2008 Server. So, I'm checking out some best practices with regards to hardware, like .. RAID levels for the HD and making sure the TempDB is on a ...
5
votes
1answer
2k views

Mount XFS partition with < 4k block size

I have an XFS partition with a 64k blocksize. But I can only mount it in Ubuntu 10.10 when the blocksize is the default of 4k. How can I mount a partition with the larger blocksize? This works: ...
5
votes
2answers
10k views

How can I set the disk partition alignment using linux tools?

After reading Disk Partition Alignment Best Practices for SQL Server, I just want to give those advices a try, but on my linux test server. What are the required parameters in order to set the ...
5
votes
2answers
136 views

Accessing the partitions on an LVM volume

Suppose you have an LVM volume /dev/vg0/mylv. You have presented this as a virtual disk to a virtualised or emulated guest system. During installation the guest system sees it as /dev/sda and ...
5
votes
5answers
28k views

How can I resize a LVM partition in Red Hat without lose of data?

My partition detail is like this /dev/mapper/VolGroup00-LogVol00 57G 8.8G 46G 17% / /dev/mapper/VolGroup00-LogVol05 259G 7.0G 239G 3% /home ...
5
votes
1answer
2k views

Filesystem and partitioning for SSDs on Linux

What are the best practices for using an SSD on a Linux workstation? Specifically, I'm interested in: What mounts I should put on the SSD and what I should keep on my HDD What filesystem I should ...