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.

1085 questions
146
votes
12 answers

How do I find the UUID of a filesystem

I'm running Ubuntu, and want to find out the UUID of a particular filesystem (not partition). I know I can use e2label /dev/sda1 to find out the filesystem label, but there doesn't seem to be a similar way to find the UUID.
Brad Gilbert
  • 2,473
  • 2
  • 21
  • 19
98
votes
10 answers

How to extend an ext4 partition and filesystem?

I have a 400GB disk with a 320GB ext4 partition. I would like to grow the ext4 partition to use the left space (80GB of free space). +--------------------------------+--------+ | ext4 | Free …
mimipc
  • 1,767
  • 2
  • 17
  • 27
97
votes
12 answers

How bad is it really to install Linux on one big partition?

We will be running CentOS 7 on our new server. We have 6 x 300GB drives in raid6 internal to the server. (Storage is largely external in the form of a 40TB raid box.) The internal volume comes to about 1.3TB if formatted as a single volume. Our…
bdemarest
  • 1,081
  • 1
  • 8
  • 9
95
votes
12 answers

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 498M 160K 498M 1% /dev none …
Chris
  • 951
  • 1
  • 7
  • 3
83
votes
15 answers

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 other partitioning tools, so I'm thinking this is a…
Teddy
  • 5,134
  • 1
  • 22
  • 27
60
votes
9 answers

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, which I can give a device path (e.g. /dev/sda) and…
Cerin
  • 3,497
  • 17
  • 57
  • 72
59
votes
13 answers

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 partition. I am a little confused. Is /boot partition…
Tyler Liu
  • 693
  • 1
  • 6
  • 7
48
votes
10 answers

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 mount point? The only one I can see is that it makes…
savoche
  • 553
  • 1
  • 4
  • 7
46
votes
12 answers

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 that partitioning greatly increases the likelihood…
42
votes
5 answers

How to shrink /home and add more space on CentOS7

CentOS 7 file system is XFS, And resize2fs doesn't work. I need to shrink /home to 400G and add 100G space to /. What should I do? # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 50G 341M 100%…
GoingMyWay
  • 545
  • 2
  • 6
  • 10
31
votes
4 answers

Can we mount multiple disks as one directory?

Is there a 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 as /store3 /dev/sdb2 2Tb mounted as /store4 I…
Arman
  • 555
  • 2
  • 8
  • 18
30
votes
5 answers

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 really care about partitioning and I configured a…
Buzut
  • 765
  • 3
  • 9
  • 23
27
votes
3 answers

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 5,0G 4,5G 289M 95% / tmpfs …
Jérémie
  • 373
  • 1
  • 3
  • 5
25
votes
4 answers

Should I create ZFS zpools with whole disks or partitions?

I am making zpools on FreeBSD machine. While creating zpools I observe these two cases: If I take raw disks and create zpool then I am able to form zpools and they are working perfectly. If I format disks using gpart in freebsd-zfs format and then…
shivams
  • 439
  • 1
  • 7
  • 15
25
votes
2 answers

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 convention, a security concern, or is there a…
tacos_tacos_tacos
  • 3,220
  • 16
  • 58
  • 97
1
2 3
72 73