Questions tagged [partitioning]

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

Filter by
Sorted by
Tagged with
368 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 ...
BonboBingo's user avatar
  • 3,782
319 votes
6 answers
1.8m 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 ...
Danatela's user avatar
  • 13.2k
287 votes
5 answers
524k 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?
Matthew Blackford's user avatar
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 ...
Calixte's user avatar
  • 3,443
167 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 ...
Strifey's user avatar
  • 1,770
152 votes
6 answers
143k 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:...
Nectar's user avatar
  • 1,969
146 votes
4 answers
553k 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. ...
Johannes's user avatar
  • 1,479
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"...
Iuliu's user avatar
  • 1,473
122 votes
12 answers
628k 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 ...
Nemo's user avatar
  • 9,460
117 votes
4 answers
150k 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 ...
CyborgDroid's user avatar
  • 1,283
115 votes
8 answers
457k 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 ...
Idan Yadgar's user avatar
  • 1,251
113 votes
2 answers
295k 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 ...
user100541's user avatar
  • 1,233
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. ...
Severus Tux's user avatar
  • 9,856
97 votes
4 answers
153k 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 ...
Ryan McClure's user avatar
  • 6,021
97 votes
3 answers
658k 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 . ...
Ramvignesh's user avatar
  • 1,812
96 votes
5 answers
178k 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, ...
Kris Harper's user avatar
  • 13.5k
93 votes
13 answers
426k 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 ...
Generoso's user avatar
  • 1,289
85 votes
5 answers
176k 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?
Mimzy's user avatar
  • 951
81 votes
11 answers
173k 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 ...
Kaz Wolfe's user avatar
  • 34.1k
79 votes
2 answers
644k 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 ...
GoProCameraByGoPro's user avatar
78 votes
3 answers
548k 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 ...
hamidfzm's user avatar
  • 961
78 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 ...
Raja G's user avatar
  • 102k
78 votes
1 answer
91k 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 ...
Mechanical snail's user avatar
72 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 ...
tinker's user avatar
  • 969
68 votes
2 answers
215k 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 ...
Emerson Hsieh's user avatar
66 votes
8 answers
608k 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 - ...
arun nair's user avatar
  • 779
65 votes
10 answers
408k 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 ...
starcorn's user avatar
  • 1,011
63 votes
3 answers
95k 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 ...
One Zero's user avatar
  • 27.1k
63 votes
4 answers
175k 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 ...
Jiew Meng's user avatar
  • 10.3k
63 votes
9 answers
319k 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 ...
jasmines's user avatar
  • 11k
61 votes
2 answers
77k 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 ...
user307939's user avatar
60 votes
4 answers
109k 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 ...
Agmenor's user avatar
  • 16.2k
59 votes
7 answers
67k 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. ...
user avatar
59 votes
3 answers
166k 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 ...
Totally newbie's user avatar
57 votes
2 answers
313k 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?
Ibrahim's user avatar
  • 673
52 votes
6 answers
198k 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?
sigdelsanjog's user avatar
  • 7,110
52 votes
6 answers
107k 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?
pram's user avatar
  • 940
51 votes
2 answers
206k 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 ...
gth's user avatar
  • 1,433
51 votes
6 answers
51k 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 ...
Registered User's user avatar
50 votes
7 answers
94k 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 ...
MrVaykadji's user avatar
  • 5,875
49 votes
6 answers
190k 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 ...
Charles Kane's user avatar
49 votes
4 answers
200k 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 ...
tomoqv's user avatar
  • 819
49 votes
5 answers
71k 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 ...
Bart van Heukelom's user avatar
48 votes
3 answers
155k 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 ...
daltonfury42's user avatar
  • 5,499
48 votes
4 answers
92k 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 ...
wim's user avatar
  • 12.7k
47 votes
4 answers
19k 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, ...
Dennis D's user avatar
  • 819
45 votes
9 answers
142k 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?
JessBurnett's user avatar
45 votes
5 answers
146k 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 ...
mohamed's user avatar
  • 451
45 votes
5 answers
173k 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 ...
owl's user avatar
  • 4,951
44 votes
2 answers
54k 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 ...
fredh's user avatar
  • 441

1
2 3 4 5
274