Questions tagged [partition]

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

Partitions are a way to logically divide a computing resource. Most frequently this is applied to MBR Disk storage. For instance a hard drive or other storage media so that each partition is logically independent of one another. This can be done for a variety of reasons including security, separating multiple operating systems, utilizing multiple file systems, or other benefits realized by the logical separation.

1109 questions
24
votes
4 answers

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. I prefer ln -s as it requires minimum setup (no…
SyRenity
  • 3,179
  • 11
  • 57
  • 79
24
votes
4 answers

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 primary partitions. A primary partition is a partition…
Jongosi
  • 364
  • 1
  • 2
  • 11
23
votes
1 answer

Unable to resolve data corruption warning with fsck

In order to create a contiguous space for my file system to grow, I created a new EFI System partition at sda1 so that I can migrate it from the current partition at sda5. The move itself has been successful except for a warning which says: kernel:…
Question Overflow
  • 2,103
  • 7
  • 30
  • 45
22
votes
2 answers

Newly created XFS filesystem shows 78 GB used

We have a 12 TB RAID 6 array which is supposed to be set up as a single partition with an XFS file system. On creating the new file system, it says it has 78 GB in use, but there are no files on the drive. [root@i00a ~]# df -h Filesystem Size …
yakatz
  • 1,213
  • 4
  • 12
  • 35
22
votes
8 answers

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 extend the PV size with pvresize use free extents for…
Yves Martin
  • 879
  • 3
  • 8
  • 21
22
votes
11 answers

"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 "lvs", which is mostly what I'm looking for (it…
arcanex
19
votes
5 answers

How to reset a Harddisk (delete Mbr & delete Partitions) from the Command Line with a script without rebooting?

To start from a clean state I need to reset the hard disk to an empty state from command line. It is not about running a wipe utility, the data don't have to be overwritten. This question is quite similar to Deleting All Partitions From the Command…
c33s
  • 1,515
  • 3
  • 21
  • 39
19
votes
2 answers

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 set up with GPT + LDM (dynamic disk) in a state that seems…
Karol J. Piczak
  • 2,358
  • 1
  • 20
  • 22
19
votes
4 answers

"rm: can not remove xxx: No Space left on device" on BTRFS

Running OpenSuse 12.2. Suddenly the root parition seems to be full (99%) but I can no longer remove files manually. "rm: can not remove xxx: No Space left on device" although 450mb are still free according to df. The filesystem is BTRFS. I tried…
Andreas Jung
  • 1
  • 1
  • 1
  • 3
18
votes
10 answers

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

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 catted /proc/partitions in the past to do this, but I wonder if that still works if there's…
Mike Akers
  • 458
  • 2
  • 6
  • 10
16
votes
3 answers

how to increase the size for /dev/mapper/centos-root?

My current settings are as below, where the /dev/mapper/centos-root partition is almost full. Looks like this partition is on disk /dev/mapper/centos-root. but there is another disk /dev/vda , which still has enough free space Are these two disks…
Hongwei Liu
  • 301
  • 1
  • 2
  • 4
16
votes
8 answers

Optimal UNIX File System Partition + Setup Strategy

When partitioning a new system disk(s) for UNIX, what is your prefered strategy for both desktop and/or servers? Please include disk partition layout, file system format(s) and options, mount points, RAID level(s), LVM groups and volumes,…
cmcginty
  • 1,303
  • 15
  • 24
16
votes
2 answers

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…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
15
votes
3 answers

How can I mount a partition on every reboot?

I have a partition mounted with mount -t ext3 /dev/sda3 /foo. Each time I reboot, I need to remount. How can I keep this mounted after every reboot?
coffee
  • 239
  • 2
  • 4
  • 6
15
votes
8 answers

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 Linux box ? Which size should I set for each…
paulgreg
  • 4,154
  • 6
  • 33
  • 32
1
2
3
73 74