Disk partitioning is the act of dividing a hard disk drive into multiple logical storage units referred to as 'partitions'

learn more… | top users | synonyms (1)

65
votes
4answers
54k views

What is LVM and what is it used for?

As a Linux/Ubuntu newbie, what is LVM and what is it used for? In terms of a web server installation, what benefits does it provide? Would you recommend using it?
59
votes
8answers
197k views

How can I resize an ext root partition at runtime?

How can I increase the size of the root partition of a system at runtime? I have a partition that is not allocated after the root partition (which is also ext4), how can I add that unallocated space ...
56
votes
11answers
34k views

What's your recommendation on drive partitioning schemes for a desktop and home server? [closed]

What partitioning scheme do you recommend for a desktop? I've always created three or four primary partitions -- root, swap, home, and sometimes a separate boot partition. Ubuntu's default install ...
29
votes
9answers
8k views

What is the meaning of the default directories in the Linux filesystem hierachy?

Having installed various Linux distros for tinkering, I'm puzzled by the installers offering partition layouts - for an easy way out I just use the whole available disk space. Some of the partitions ...
29
votes
6answers
31k views

My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room

My first issue was when i tried to apt-get update/upgrade. On upgrade I get the following error: You might want to run 'apt-get -f install' to correct these. The following packages have unmet ...
29
votes
5answers
25k views

Installing Ubuntu with Windows, which is left and right when allocating space?

I'm installing Ubuntu (or Xubuntu/Lubuntu/Kubuntu) alongside Windows 7/XP. I got to the screen that says, "Allocate drive space by dragging the slider below." On the following screen, I'm not sure ...
28
votes
4answers
35k views

How can I quickly copy a GPT partition scheme from one hard drive to another?

On a non GPT partition table I can do sfdisk -d /dev/sda | sfdisk /dev/sdb. But sfdisk doesn't support GPT partition tables. What can I use instead? I'm looking for a one or two command solution, ...
28
votes
3answers
16k views

How to move Ubuntu to an SSD

My current situation is: One hard disk Dual boot Ubuntu 11.04 and Windows 7. Partitions: 100MB Windows System thingy 144GB Main Windows 160GB Ubuntu 4GB Swap 12GB System Restore stuff Now I want ...
23
votes
5answers
82k views

How to resize partitions?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers. ...
23
votes
5answers
62k views

How to use manual partitioning during installation?

I'd like to see the full How-To on how to use manual partitioning during Ubuntu installation. The existing guides (at least those I found here) cover only automatic part and leave untouched the manual ...
23
votes
3answers
78k views

How can I resize an LVM partition? (i.e: physical volume)

I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is ...
22
votes
1answer
17k views

What are “/run/lock” and “/run/shm” used for?

I just want to know where and how /run/lock and /run/shm can help our PC . $ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 56G 13G 41G 24% / udev ...
22
votes
1answer
20k views

What's the difference between ddrescue, gddrescue, and dd_rescue?

The dd command is commonly used to make image backups of a drive or partition. However, it performs poorly if the source drive is unreliable or failing. I read that ddrescue/dd_rescue is a good tool ...
20
votes
9answers
45k views

How do I repartition with GParted? [duplicate]

I wanted to create more space for Ubuntu on my hard disk in favor of my Windows partition. I booted the livecd and resized the NTFS partition to 100 GB. Then I wanted to resize my Ubuntu (ext4) ...
19
votes
3answers
29k views

Trouble creating 3TB ext4 partition due to msdos-partition-table-imposed error

I just bought a 3TB WD green drive, but when I try to partition in in gparted I get an error like: ====================== libparted : 2.3 ====================== partition length of 5860530176 sectors ...
19
votes
6answers
44k views

How large should I make root, home, and swap partitions?

I have a laptop with win7 installed. I have now made a 60gb partition which I want to install ubuntu into. The question I have, before I do the installation, is how large each of the root, swap, and ...
18
votes
3answers
7k views

What are the pros and cons of having a separate home partition?

This is not a question about how to create a home partition, just as a caveat. :) What are the pros and cons to having a separate home partition? How do I know if having one is right for me? Will it ...
17
votes
8answers
8k views

Is it possible to install Ubuntu without formatting any partitions?

Can I install Ubuntu without formatting any partitions on my hard drive? I am already running Windows 7 and I want to install Ubuntu as well without formatting any of the partitions I have already ...
17
votes
8answers
180k views

“No root file system defined” error while installing ubuntu

I am new to linux/ ubuntu and just downloaded the v11 of ubuntu to learn linux. I faced this "No root file system is defined" error while trying to install it. This is how I was proceeding - ...
17
votes
5answers
980 views

What are the advantages and disadvantages of mounting various directories on separate partitions?

While installing Ubuntu with the "something else" option, I found out that there are many folders that can be mounted on separate partitions, as you can see in the image below. So what are the ...
17
votes
7answers
11k views

How do I get rid of “U3 System” on my USB drive?

I have a USB drive (SanDisk SDCZ40-016G) that mounts in a way I've never seen before. When inserted, two items appear in Places -> Computer: "SanDisk Ultra Backup: 16GB" contains my data, and "CD ...
17
votes
0answers
13k views

How do I resize my current ubuntu partition? [duplicate]

I've got Ubuntu 10.10 installed to use my whole hard-disk, but would like to use the 130GB of free space I've got to create a new partition and do some development on Unity and Natty. Can I use ...
16
votes
7answers
27k views

My disk already has 4 primary partitions, how can I install Ubuntu?

I would like to install Ubuntu alongside Windows 7 on a HP G62 Notebook. Although I have installed Ubuntu in a dual-boot many times before, I found out that this model has already four partitions. ...
16
votes
8answers
78k views

Fix corrupt NTFS partition without Windows

MY NTFS Partition has gotten corrupt somehow (it's a relic from the days when I had Windows installed). I'm putting the debug output of fdisk and blkid here. At the same time, any OS is unable to ...
15
votes
7answers
18k views

Should I choose exFat or NTFS for a “shared” partition in a dual-boot system?

I have a new laptop which I am setting up as dual boot Windows/Linux. I would like to access files from both Ubuntu and Windows 7. Should I create a separate NTFS partition?
15
votes
4answers
28k views

Change owner of internal hard drive partition from root to user

I have a number of drives internal and external. Some are partitioned. Most mount automatically at boot (all did at one point). One partition is owned by root and therefore does not mount ...
15
votes
2answers
11k views

How do I check whether partitions on my SSD are properly aligned?

I just installed ubuntu on my new intel SSD. Now I am not sure, whether paritions are properly aligned in respect to my specific SSD. Here's my fdisk output. $ fdisk -l Platte /dev/sda: ...
15
votes
3answers
37k views

Partition does not start on physical sector boundary?

I've one HD on my laptop, with two partitions (one ext3 with Ubuntu 12.04 installed and one swap). fdisk is giving me a Partition 1 does not start on physical sector boundary warning. What is the ...
15
votes
5answers
5k views

Why can't I install Ubuntu or Wubi on a Windows Dynamic Disk?

I've been trying to install 12.04 for a while now, I'm running on Windows 7 and I already made the partition (it's dynamic). I've tried booting from a disc and also the Windows installer. I haven't ...
15
votes
1answer
2k views

Can't boot into Windows 7 EFI GPT after recovery operation

My question, or rather issue, is in the extent of this previous case in which I wanted to grow my Linux (ext4) partition. The partition /dev/sda6 was in the way of doing this and since it contained ...
14
votes
4answers
1k views

Home on a different partition

How do I define a separate partition for Home? How does it affect systems with multiple users? EDIT Okay, thanks for all the answers, I understand the thing about Home on adifferent partition, so ...
14
votes
3answers
7k views

Is a /boot partition necessary anymore?

A fair while ago (~ 2004) I was told to always create a separate partition for the boot directory. And since then I always have. But after reading a few questions about partitioning questions, I'm ...
14
votes
3answers
5k views

How can I move my /home directory to another partition if it's already part of the / partition?

I have a wonderful running Maverick Meerkat install going on right now. I want to move my /home to another partition as per many suggestions. How can I go about doing this without reinstalling the ...
13
votes
9answers
15k views

How to hide a(n) (NTFS) partition from ubuntu

I need to hide an NTFS partition from listing in the nautilus. How can I achieve that? Is there any tool to do that? And how can I hide files in ubuntu (except . operator)
13
votes
3answers
2k views

Why is there 4.86(maybe 15.1) GB of USED-space on a newly partitioned and formatted 298 GB drive (as ext4 by Gparted)

Well the question says most of it... Gparted reports the used space as 4.86 GB Nautilus reports used space as 15.1 GB...(via Properties of /media/U_0298_data) Why is this space used? and who is ...
13
votes
4answers
8k views

How big should I make my swap partition?

I'm (re)installing Ubuntu on my Toshiba NB100 netbook (Intel Atom, 120GB HD, 2GB RAM). Already have a partition I call "Stuff" with all my media and docs. Will be deleting the one I had Win7 on ...
13
votes
4answers
39k views

How do I align my partition table properly?

I am in the process of building my first RAID5 array. I've used mdadm to create the following set up: root@bondigas:~# mdadm --detail /dev/md1 /dev/md1: Version : 00.90 Creation Time : Wed ...
12
votes
7answers
10k views

Can I remove Windows Vista from my notebook and only install Ubuntu?

I would like to remove Windows Vista from my notebook which is currently running a dual boot Windows Vista + Ubuntu and use Ubuntu as the only OS. The notebook is unstable when running Windows Vista, ...
12
votes
4answers
827 views

How would I speed up a full disk dd?

I am doing a dd on two identical drives with this command: dd if=/dev/sda of=/dev/sdb bs=4096 Both hard drives are the exact same model number, and both have 1TB of storage space. /dev/sda uses a ...
12
votes
1answer
13k views

How to expand the ext4 primary partition size in a VMware Player virtual disk?

I have a VMware Player virtual machine setup, running Ubuntu 10.04 as the a guest OS. The VM was created on a 20GB virtual drive, with a single partition for working space. Finally I got to the point ...
12
votes
1answer
4k views

Should I align partitions on an SSD, if so how do I do it at install time?

I just bought a new SSD (OCZ Vertex 2) and plan to do a clean install of Maverick on it (/home is on a separate HDD). I read that it is wise to align SSD partitions. What advantages does it truly ...
12
votes
2answers
3k views

btrfs partition won't mount after upgrading 64bit Ubuntu 11.10 laptop

I have tried many ideas from the net, but none of them work. This looks correct and in good order **sudo btrfs filesystem show /dev/sda2** failed to read /dev/sr0 Label: none uuid: ...
11
votes
3answers
2k views

Is the swap partition encrypted?

Selecting the encryption option at install time to encrypt the home partition. Does this enable encryption of the swap partition or is the swap partition unencrypted. If the swap partition is ...
11
votes
2answers
2k views

Why does the first partition start at sector 34 when I choose “Guided - Use entire disk” during install?

After choosing "Guided - Use entire disk" during installation of Ubunsut Server 12.04 I find that the first partition starts on sector 34. Why that specific sector and not the first one? (parted) ...
11
votes
5answers
289 views

How to make duplicate of whole HDD?

I have an Ubuntu 12.04 production server with a 500 GB (nearly 15 gb used) HDD. I want to duplicate whole HDD including, its partition structure, to another HDD with 400 GB size so that changing the ...
11
votes
2answers
23k views

GRUB: “invalid arch independent ELF magic” after install on SSD [duplicate]

I've got a brand new laptop with a 128GB SSD drive. I read that aligning the partitions to match the Erase Block Size of the SSD is important. I followed William Scott's guide SSD Tweaks in Linux and ...
11
votes
3answers
11k views

Should I use btrfs or Ext4 for my SSD?

Should I use btrfs (with discard, compress=lzo and space_cache options) or Ext4 (with discard option) for the SSD for my Ubuntu 11.10 (Oneiric) amd64 desktop root partition of my office machine? ...
10
votes
2answers
10k views

What GPARTED alternatives are available?

What is a good partitioning tool for Ubuntu 10.X as an alternative to GPARTED? I haven't been able to find one that is easy to use. A commercial product is OK if necessary for ease of use.
10
votes
3answers
7k views

Mount Ubuntu's partition on Windows 7

Is it possible to mount Ubuntu 10.10's partition on Windows 7?
10
votes
2answers
15k views

How to combine an SSD boot drive with a HDD data drive? [closed]

I have a SSD with 64 GB and a 6 GB/s 1 Terabyte harddrive. I want to use the SSD only as a boot device and maybe for swap storage. On the 1 Terabyte harddrive I want ot have the main file system. As ...