Questions tagged [partition]

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

Filter by
Sorted by
Tagged with
152 votes
13 answers
319k views

How do I find the UUID of a file system?

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 file system label, but there doesn't seem to be a ...
Brad Gilbert's user avatar
  • 2,533
128 votes
10 answers
504k views

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 ...
mimipc's user avatar
  • 2,067
109 votes
13 answers
282k 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 ...
Chris's user avatar
  • 1,091
97 votes
12 answers
35k views

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 ...
bdemarest's user avatar
  • 1,081
94 votes
18 answers
176k 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 ...
Teddy's user avatar
  • 5,304
67 votes
9 answers
272k 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, ...
Cerin's user avatar
  • 3,650
62 votes
13 answers
267k 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 ...
Tyler Liu's user avatar
  • 723
48 votes
10 answers
17k 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 ...
savoche's user avatar
  • 553
46 votes
12 answers
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 ...
Zimmy-DUB-Zongy-Zong-DUBBY's user avatar
45 votes
5 answers
110k views

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 /...
GoingMyWay's user avatar
34 votes
4 answers
101k views

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 ...
Arman's user avatar
  • 595
31 votes
6 answers
17k 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 ...
Buzut's user avatar
  • 825
30 votes
4 answers
35k views

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 ...
shivams's user avatar
  • 509
29 votes
3 answers
48k 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 ...
Jérémie's user avatar
  • 393
25 votes
2 answers
7k 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 ...
tacos_tacos_tacos's user avatar
24 votes
4 answers
15k 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 ...
Jongosi's user avatar
  • 364
24 votes
8 answers
278k 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 ...
Yves Martin's user avatar
24 votes
4 answers
16k 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. ...
SyRenity's user avatar
  • 3,189
23 votes
2 answers
13k views

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 ...
yakatz's user avatar
  • 1,243
23 votes
1 answer
53k views

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 ...
Question Overflow's user avatar
22 votes
11 answers
108k 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 "...
user avatar
20 votes
5 answers
108k views

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 ...
c33s's user avatar
  • 1,535
20 votes
4 answers
52k views

"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 ...
Andreas Jung's user avatar
19 votes
2 answers
6k 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 set up ...
Karol J. Piczak's user avatar
18 votes
10 answers
66k views

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 ...
Mike Akers's user avatar
17 votes
3 answers
84k views

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's user avatar
  • 259
17 votes
3 answers
97k views

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 ...
Hongwei Liu's user avatar
16 votes
8 answers
2k views

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, ...
cmcginty's user avatar
  • 1,303
16 votes
2 answers
4k 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: http://www....
Kyle Brandt's user avatar
  • 84.4k
15 votes
8 answers
6k 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 ...
paulgreg's user avatar
  • 4,164
14 votes
4 answers
37k 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)? ...
Shane's user avatar
  • 1,899
14 votes
2 answers
12k 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 ...
andyortlieb's user avatar
  • 1,102
14 votes
4 answers
2k views

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 ...
X-Istence's user avatar
  • 762
13 votes
11 answers
14k 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 ...
cd1's user avatar
  • 1,494
13 votes
2 answers
92k views

How to mount new logical volume (adding to fstab and mtab)?

I created a new LV for the first time using this command: lvcreate -L 20G -n iew-vm-lv /dev/ubuntu-vg #create the new LV When I try running mount /dev/ubuntu-vg/iew-vm-lv, I get the following error:...
Nate's user avatar
  • 469
13 votes
1 answer
14k 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 ...
Dima's user avatar
  • 485
12 votes
2 answers
16k views

Shrink partition to exactly fit the underlying filesystem size

Recently i shrinked an ext4 filesystem size to 500GB df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 493G 64G 404G 14% / now i want to shrink the partition size to fit ...
Vikelidis Kostas's user avatar
12 votes
9 answers
74k 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 ...
waszkiewicz's user avatar
  • 1,002
12 votes
2 answers
25k views

How to remove old kernels on CentOS 6 (to free up boot partition)? [duplicate]

How does one determine which kernels to remove in order to free up some space on /boot partition. Here is a scenario (some background info). 1. Parititon info (in case it helps) # df -h Filesystem ...
Shef's user avatar
  • 284
12 votes
2 answers
106k views

Mount Point Does Not Exist, Despite Creating It

I'm trying to install Arch on a Virtualbox VM. I'm following along this guide, and this video. Not sure if relevant, but the VDI file is on an external hard drive. I've created 3 partitions as per ...
xyhhx's user avatar
  • 913
11 votes
9 answers
25k views

What's the best file-system for storing virtual machine images?

I'm planning how to partition my hard drive. I want to have 2 partitions - one for Ubuntu, the main operating system, and the other for virtual machine images, as I want to run virtual machines of ...
jonathanconway's user avatar
11 votes
5 answers
45k views

Resizing partition fdisk fails with invalid argument

I recently resized a VPS from a 50GB SSD to a 300GB SSD through my hoster's control panel. I now am trying to resize my main partition with fdisk to be able to use all the new space. However, fdisk ...
Bart Pelle's user avatar
11 votes
3 answers
4k 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?
jldugger's user avatar
  • 14.5k
11 votes
1 answer
572 views

Open source applications for resizing drive partitions [closed]

I am looking for open source applications that will allow resizing hard drive partitions. I have used partition magic in the past but am looking for open source free applications that can handle this ...
Geoff Dalgas's user avatar
  • 2,516
11 votes
1 answer
14k views

What is the difference between the Linux and Linux LVM partition type?

Fdisk shows multiple partition types. What is the difference between choosing 83) Linux and 8e) Linux LVM? Choosing 83) Linux also works fine for using LVM, even creating a physical volume on /dev/...
ujjain's user avatar
  • 4,033
11 votes
1 answer
12k 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 ...
warren's user avatar
  • 18.8k
11 votes
8 answers
30k 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: ...
waterlooalex's user avatar
11 votes
5 answers
7k 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 ...
coderego's user avatar
  • 175
10 votes
2 answers
52k views

CentOS Insufficient space in download directory /var/cache/yum/base/packages

I was trying to yum install libpcap when I got Error Downloading Packages: 14:libpcap-0.9.4-15.el5.i386: Insufficient space in download directory /var/cache/yum/base/packages * free 0 * ...
Joao Heleno's user avatar
10 votes
2 answers
60k views

Resize partition to maximum using parted in non-interactive mode

Since using fdisk in this case is fairly complicated due to the fact that the non-interactive usage is probably not possible or at leasr very complicated (using printf), i want to use parted ...
Eugen Mayer's user avatar

1
2 3 4 5
23