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

learn more… | top users | synonyms

42
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 ...
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 ...
23
votes
5answers
9k 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 ...
10
votes
11answers
8k 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 ...
10
votes
8answers
20k 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: ...
3
votes
2answers
2k views

Move /var to new set of disks

I currently only have remote access to this CentOS box, I need to move /var form the primary RAID to a new set of disks that was installed with more space, My current thoughts on how to accomplish ...
82
votes
11answers
18k 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 ...
51
votes
10answers
52k 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 ...
5
votes
2answers
11k 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 ...
15
votes
8answers
38k 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 ...
3
votes
4answers
9k views

ZFS - how to partition SSD for ZIL or L2ARC use?

I'm working with a Sun x4540 unit with two pools and newly-installed ZIL (OCZ Vertex 2 Pro) and L2ARC (Intel X25-M) devices. Since I need to keep these two pools in the near-term, I'd like to know how ...
9
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
3answers
5k 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 ...
4
votes
2answers
270 views

Repartitioning two disks without a loss of data

I am interning at a software company and I have hit somewhat of a brick wall. Here is the deal: The Problem: We have some boxes around here that were incorrectly partitioned for 2 x 500 GB drives. ...
2
votes
2answers
469 views

mkfs on raw software raid device or partition

I am making a huge RAID10 device (8 TB) for storage on CentOS. I have created the 4 partitions on my 4 physical hard disks and have created the raid device /dev/md2 out of those 4 partitions. Now it'...
1
vote
3answers
1k views

Increase Linux Partition dynamically?

Here is what I have on my Linux Box [root@linxuph53 logs]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_linuxph53-lv_root 38G 11G 26G 29% / ...
1
vote
3answers
3k views

Cant find my harddrives in ubuntu installation?

I was trying to setup a Microserver with two 1TB harddrives as a software RAID. Somehow it didnt work and now ubuntu 14.04 is not starting. My problem is that I dont see the drives anymore when I go ...
0
votes
1answer
438 views

extend size of partition

I am asking for help on how to properly extend the size of partition Here is my situation. Running fdisk -l, give this result root@ ~]# fdisk -l Disk /dev/sda: 2000.3 GB, 2000398934016 bytes 255 ...
0
votes
2answers
724 views

Created 100GB ec2 instance, but only shows 10GB?

I just created a new EC2 instance of 100gb with only 1 storage disk. However, my df -h output shows the following : [root@ip-10-252-37-164 ~]# df -h Filesystem Size Used Avail Use% ...
14
votes
4answers
26k 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)? ...
22
votes
7answers
49k 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 ...
11
votes
2answers
18k 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
5answers
53k 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 ...
3
votes
2answers
19k 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 * ...
14
votes
4answers
46k 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, ...
10
votes
1answer
4k 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 ...
8
votes
3answers
6k views

How can I create a swap partition on Amazon EC2 with ephemeral storage?

This is the output of df -k: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 10317860 7059008 2734732 73% / none 847584 0 ...
3
votes
6answers
5k views

Create image of Windows partition on Linux

I'd like to create an image of my Windows partition (so a can restore it later) and I was wondering if anyone could recommend any utilities that are capable of this? Either command line or GUI (pref. ...
6
votes
3answers
52k views

centos 100% disk full - How to remove log files, history, etc?

mysqld won't start because disk space is full: 101221 14:06:50 [ERROR] /usr/libexec/mysqld: Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28) 101221 14:06:50 [ERROR] Can't start server: ...
5
votes
1answer
3k 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 ...
4
votes
2answers
5k views

repair partition table

I've just overwritten my partition table of my system's hard disk. i made a cfdisk on the wrong device (/dev/sda instead of /dev/sdd), deleted all partitions, made one new primary spanning over the ...
1
vote
1answer
5k views

How can you re-allocate space from one Volume Group to another Volume Group in Linux?

How can you re-allocate space from one Volume Group to another Volume Group in Linux? Both volume groups exist on the same physical drive and are split evenly, let say 50G each. I'd like to shrink one ...
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 ...
5
votes
2answers
2k views

Is the fdisk partition type important when using lvm

I have inherited a few LVM volumes and I noticed that fdisk reports the disks that make up the volume group as partition type 83 (Linux) and not 8e (Linux LVM). Is this a problem and how important ...
5
votes
2answers
7k views

LVM logical volume partition corrupted after lvreduce

I encounter the problem when I try to shrink one logical volume. I took the actions as following steps shows: # unmount /home # lvreduce --size -100G /dev/vg_dev/lv_home # lvdisplay /dev/vg_dev/...
3
votes
1answer
260 views

Set device offset in Linux due to failed hardware RAID?

I have a failed hardware RAID card. This card had two drives in a RAID-1 mirror. Plugging one of the drives into the motherboard shows no partition table. Using a program like testdisk, I can see ...
1
vote
2answers
8k views

Cannot deactivate LV due to partition device

I need to be able to deactivate an LV but cannot after partprobing it and finding gaining access to its partitions in /dev/mapper. It seems I need some way of 'un-partprobing' the disk, but I have no ...
4
votes
3answers
10k views

Resize /var partition on a remote system (Linux Debian Lenny)

At a server that I only have access via ssh and vnc to (which means no booting from a "live" CD/DVD is possible), I would like to shrink the partition assigned to /var (in order to free some space for ...
4
votes
3answers
1k views

Using a VHD as a data storage location?

I asked previously if there are good reasons to partition disks on Windows, and one of the big ones was for splitting data and OS. So that should you reinstall, you do not need to worry about the data ...
2
votes
2answers
361 views

Directly Formatting a Device on a Linux System

I've just 'inherited' a system that consists of a bunch of Linux servers (running Ubuntu, but probably not important) that uses iSCSI devices. These show up as /dev/sdb, /dev/sdc etc. when you log ...
2
votes
3answers
4k views

How do I restore a partimage image to a smaller drive?

Without thinking, I made a partimage image of a ~1TB ext3 partition, which only actually contained about 2GB of data, so gzipped down to that size. I then wiped it and used it for something else. I'd ...
1
vote
2answers
1k views

Remounting MySQL under a new mount point

/var/lib/mysql is mounted on partition / which is now full. Is there a way to mount this under /home/mysql for more disk space?
1
vote
1answer
1k views

Active Directory Partition Error

Right now my active directory is failing a dcdiag test. I can find no info online about this error. When I run dcdiag /test:crossrefvalidation, I get the output: .... Doing primary tests ...
0
votes
3answers
538 views

Command-line partition reboot selection

I want to schedule a reboot to a temporary partition from the command line on a X86 Linux box without manual intervention. Is it possible that this can be done. As I see it I have only one option ...
5
votes
2answers
2k views

Repurposed disk - Linux blkid command returns incorrect information

I'm working with an SSD drive removed from a VMware ESXi installation. I'm trying to reuse the disk in an existing Linux installation (CentOS 6.2). The drive sits behind an HP Smart Array P410 RAID ...
4
votes
1answer
2k views

Mount a partition to two mount points

I have a partition called sda4. And I want to store the mysql data and xml files on that partition because the partition which mysql and domain are installed has little space. So I'm planning to ...
4
votes
3answers
30k views

How would I add a second physical hard drive to proxmox

I installed proxmox on a single 250GB hard drive and I would like to add a second identical hard drive to put more VM's on. I already tried once, and didn't get very far. I added it and formatted it ...
3
votes
2answers
5k views

HP DL320e Gen8, 3TB drives, Windows Server 2012 R2 - HDD full capacity alocation difficulties during installation

One interesting task to do but not so easy as i thought. The server is HP DL320e gen8, The main difficulty is with partitioning the RAID1 (2x3TB HDDs) during the installation on 2 partitions (System =...
3
votes
1answer
2k views

Exchange 2010 on VMware - can I expand a partition with databases on it?

I have an Exchange server at a remote office that has a database partition that has grown considerably. It is running on VMWare vsphere 4.1. Normally on most VMs I would shut down the VM, and ...
3
votes
3answers
969 views

Windows Server 2003 - move C: partition to a new SAS disk

A server I am working on has two 73GB SAS disks (configured as RAID 1). There are two partitions on the 73GB drive and the C: partition is only 15GB or so. This drive is near 100% capacity and I've ...