Questions tagged [partitioning]
Disk partitioning is the act of dividing a hard disk drive into multiple logical storage units referred to as 'partitions'
13,770
questions
372
votes
10
answers
1.3m
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 ...
320
votes
6
answers
1.9m
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 ...
291
votes
5
answers
540k
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?
226
votes
6
answers
1.5m
views
Detect and mount devices
I upgraded Ubuntu today and everything works smooth except that Ubuntu doesn't detect any other storage devices. My / and /home partitions work fine, but my other partitions are just not detected. I ...
168
votes
18
answers
202k
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 or apt-get upgrade. On upgrade I get the following error:
You might want to run 'apt-get -f install' to correct these.
The following packages have ...
152
votes
6
answers
145k
views
Unable to delete USB Drive partitions (Block size error)
I have been unable to format/delete the partitions on my Sandisk Cruzer Force 32 GB USB Drive. I get the following error when deleting any of the partitions on it.
`Error deleting partition /dev/sdd2:...
149
votes
4
answers
566k
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.
...
134
votes
5
answers
329k
views
How to enable exFAT in Ubuntu 14.04
I just installed Ubuntu 14.04 and I can't mount my exFAT HDD.
I get the following error:
Unable to access “SeagateHDD”
Error mounting /dev/sdb1 at /media/me/SeagateHDD: Command-line `mount -t "exfat"...
123
votes
4
answers
158k
views
Ubuntu Server 18.04 LVM out of space with improper default partitioning
I installed Ubuntu Server 18.04 with the LVM option and left the default partition setup. Now my main drive only has 4GB in a 1TB hard drive. How can I fix this without starting from scratch?
Results ...
123
votes
12
answers
640k
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 ...
117
votes
8
answers
464k
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 ...
114
votes
2
answers
302k
views
How do I mount a folder from another partition?
Is there a command to mount a folder from one partition to my main partition?
Example of what I'd like to do, which obviously doesn't work:
mount /media/tc1/folder /home/dvad/home
If not by using a ...
104
votes
11
answers
116k
views
"physical block size is 2048 bytes, but Linux says it is 512" when formatting USB - How to create a bootable USB without this error
I was using:
dd if=/path/to/my/ubuntuiso/ubuntu.iso of=/dev/sdb1 bs=4M && sync
In order to create bootable Ubuntu USB drives on older Ubuntu versions. It was working perfectly. ...
100
votes
4
answers
159k
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 ...
97
votes
5
answers
180k
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, ...
97
votes
3
answers
665k
views
How to extend my root (/) partition?
Till today I was using ubuntu 13.04 in my windows7/ubuntu dual boot. Just now I have upgraded to ubuntu 14.04. My software updater showed an updates available message. I proceeded with Install Now . ...
93
votes
13
answers
443k
views
How can I reinstall GRUB to the EFI partition?
I want to reinstall GRUB 2 and I found these instructions:
How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD or USB.
In my case, the boot loader is installed in the EFI partition. If I ...
85
votes
5
answers
183k
views
How do I find out what filesystem my partitions are using?
Is there a way to find out what file system my partitions are using?
81
votes
11
answers
177k
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 ...
80
votes
3
answers
564k
views
How do I resize partitions using command line without using a GUI on a server?
I only have access to the server via a terminal and I can't use graphical tools such as GParted!
I want to create a new partition from a part of the root (about 768mb) for swap.
# df -h
Filesystem ...
80
votes
2
answers
659k
views
Terminal method of formatting storage drive
I want to know how to format a storage drive from the terminal. Helpful things to provide in the answer would be often used options for commands and base knowledge that one can use to extrapolate ...
79
votes
1
answer
70k
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 ...
78
votes
1
answer
93k
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 ...
73
votes
11
answers
59k
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 ...
68
votes
2
answers
217k
views
Ubuntu installation partitioning: Logical or primary?
I am in the process of reinstalling Ubuntu. When I got to this step:
I was prompted to choose a logical or a primary partition.
I've never seen this dialog box before -- before it just told me to ...
66
votes
8
answers
610k
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 -
...
65
votes
10
answers
415k
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 ...
64
votes
4
answers
182k
views
How to mount partition permanently?
I am using Ubuntu Minimal + LXDE. I am wondering how can I auto-mount a partition (internal) on boot automatically. Currently I do something like
mount /dev/sda3 /media/works
But I want it to be ...
64
votes
9
answers
324k
views
How to fix "Partition does not start on physical sector boundary" warning?
I have one HDD on my laptop, with two partitions (one ext3 with Ubuntu 12.04 installed and one swap).
fdisk is giving me the following warning:
Partition 1 does not start on physical sector boundary
...
63
votes
3
answers
97k
views
How do I make a RAM disk?
I want to make a partition that is made of ram ...
Example
In windows 7 you can make a partition that is made of ram
I have created 1 GB of partition in ram . using Primo RamDisk
Is there any ...
63
votes
7
answers
72k
views
How to make LV use all disk space in PV?
During the installation of Ubuntu Server 20.04.1 LTS I chose to use the entire disk as partition (default partitioning that's recommended for beginners, since I don't need any other partitions anyway.
...
61
votes
4
answers
113k
views
How do I check whether I am using LVM?
I installed Ubuntu by choosing the option "Something else" at the step called "Allocate drive space" of the installer. Then I created my own partition table.
Now that Ubuntu is installed, can I check ...
61
votes
2
answers
78k
views
How to encrypt external devices?
I've been a Windows power user/administrator and professional tech for years, I just made the decision to go Linux, and wow, what a difference.
Is there any decently easy way to encrypt external ...
59
votes
3
answers
167k
views
How do I recover my accidentally lost Windows partitions after installing Ubuntu?
I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions
(C:) Vista
(D:) Entertainment
(E:) Work
(F:) Sources
and I wanted to start using Ubuntu instead. So I tried it ...
58
votes
2
answers
320k
views
How to merge partitions?
I have two partitions, one of them has a file system and the other is unallocated.
How to merge two partitions?
52
votes
6
answers
205k
views
How to List Unmounted partition of a harddisk and Mount them?
How to list the disk partition when they are unmounted?
And how to mount them through terminal?
52
votes
6
answers
108k
views
Do we still need swap partitions on desktops?
I have read this question, but it was asked in the context of servers not desktops or notebooks.
If a good amount of RAM is installed on a notebook, say 8 GB, do we still need a swap space?
51
votes
2
answers
207k
views
How do I create and tune an ext4 partition from the command-line?
PARTITIONING (e.g. fdisk)
What are some useful commands used for partitioning an additional hard drive from the command-line? Since most published guides steer towards GParted and other graphical ...
51
votes
6
answers
52k
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 ...
51
votes
4
answers
207k
views
Fixing corrupt backup GPT table?
After successfully installing a dual boot environment, adding Ubuntu 13.10 to a preinstalled Windows 8 configuration I decided to increase the unallocated SSD disk space after reading about the ...
50
votes
7
answers
95k
views
Live USB on a 2-partition usb-drive
I was wondering if I could have 2 partitions on a USB-drive that would allow me to boot on my key as a regular USB-installation-disk (partition1), and another partition for regular storage under ...
49
votes
6
answers
194k
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 ...
49
votes
5
answers
72k
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 to ...
48
votes
3
answers
157k
views
GPT vs MBR. Why not MBR?
I am a Linux user. I don't have Windows on my laptop. Also the hard drive size is less than 2 TB. Then why should I use GPT tables? Can't I go with old fasioned MBR?
I will be having two root ...
48
votes
4
answers
93k
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 ...
47
votes
4
answers
22k
views
accidentally deleted EFI partition, system is still running!
I am running Ubuntu 20.04, I accidentally deleted the EFI partition (Damn GParted!)
The system is still running. Can I create a new partition in the now UNUSED area, set the EFI flag and boot flag, ...
46
votes
5
answers
176k
views
Can't format / delete locked partition from GParted?
I can't format my hard disk for Ubuntu installation. It has Fedora installed in it. I wonder how to unlock the locked partition to delete and format it, since I am stuck at installing Ubuntu. I am now ...
45
votes
9
answers
145k
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?
45
votes
5
answers
148k
views
How to rename partitions?
I'm new at Ubuntu; I installed Ubuntu 12.10 and the partitions appear like 30 GB volume and like 78EF-2C5E in task bar. I tried to rename it but rename and remove buttons are deactivated so I tried by ...
45
votes
2
answers
57k
views
How can I modify the size of swap with LVM partitions?
I'm trying to add/modify a swap partition on my LVM-formatted hard disk by using GParted from a LiveCD. I only see one big partition taking up the whole disk.
Is there a hidden swap?
Does an ...