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 ...
22
votes
5answers
8k 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 ...
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 ...
10
votes
10answers
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: ...
4
votes
2answers
267 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. ...
3
votes
2answers
1k 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 ...
1
vote
2answers
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 ...
46
votes
10answers
44k 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 ...
0
votes
1answer
415 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 ...
79
votes
11answers
16k 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 ...
15
votes
8answers
34k 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 ...
9
votes
2answers
16k 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 ...
3
votes
4answers
29k views

How can I un-mark a partition as active?

Overview: I use a backup storage enclosure with 6 backup drives incrementally backup up and taken off-site. One day I noticed that the backup process was failing. I logged onto the server that is ...
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
4k 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 ...
6
votes
2answers
14k 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 ...
1
vote
1answer
159 views

Can LVM and Traditional Partitions Coexist?

Can you set up a machine in which different drives are formatted as either LVM volumes or as traditional partitions and mix and match the two? For e.g. have the LVM volume mounted as / and /home and ...
1
vote
2answers
855 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?
2
votes
2answers
395 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 ...
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% / ...
0
votes
2answers
595 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% ...
0
votes
2answers
499 views

Partition keeps filling up, don't know why

My partition /dev/sda1 keeps filling up. Besides the "/" directory, I cannot tell what directories are even on this partition in order to search for files to delete. I was able to get it down to 97% ...
0
votes
4answers
66 views

back-up database in Linux partition from windows partition!

Hello I am in a very embarrassing situation, I was trying to upgrade to ubuntu 10.04 from ubuntu 9.10 yesterday and while updating I forgot to put my laptop on charger and the battery ran out. Since ...
14
votes
4answers
25k 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)? ...
17
votes
7answers
39k 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 ...
6
votes
5answers
43k 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
16k 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 * ...
10
votes
1answer
3k 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
2answers
5k 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
4k 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. ...
12
votes
4answers
36k 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, ...
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 ...
5
votes
3answers
46k 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: ...
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
6k 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 ...
4
votes
2answers
4k 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 ...
3
votes
1answer
253 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
7k 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
9k 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
5answers
3k views

Partitioning advice for dual boot with Windows XP and two separate Linux installations

Main goals is to have/being: Windows XP Main Linux installation "Some other" Linux installation which I am currently experimenting with. All three OS installations completely separate (at least to ...
3
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 ...
2
votes
2answers
230 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

Debian root partition resizing

I just noticed that the root partition of my not-so-long-ago configured server is only 5gb thats not much seeing as i allready use 4gb and still need to install a lot of things... i was foolish ...
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
535 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 ...