Disk partitioning is the act of dividing a hard disk drive into multiple logical storage units referred to as partitions, to treat one physical disk drive as if it were multiple disks.

learn more… | top users | synonyms (1)

3
votes
2answers
47 views

How do I get the UUID of a partition and define a Bash variable as being equal to it?

I would like to define a Bash variable PART_ID as being equal to the UUID of the /dev/sdb1 partition. The closest I have gotten to the desired answer is the output of: ls -ld /dev/disk/by-uuid/* | ...
3
votes
1answer
14k views

Understanding partition table with sda1 sda2 sda5

I just inherited a system and I am trying to understand it's partition table for the hard drive. (I'm new to this) machine:~# fdisk -l /dev/sda Disk /dev/sda: 250.0 GB, 250000000000 bytes 255 heads, ...
0
votes
0answers
11 views

How do I increase a partition size of a virtual disk?

I created a file using dd if=/dev/zero of=virt_disk bs=1024M count=50. I then formatted this is a vfat file system. Now I want to extend this. I added 5 more MiB of space as dd if=/dev/zero bs=1024M ...
-1
votes
1answer
19 views

how to install ubuntu on part of the disk? [closed]

I have new laptop with 500 giga hardisk size. I want to install 3 kind of Linux distribution. The first linux will be ubuntu. Now, i want that the installation of the ubuntu will take over only 100 ...
0
votes
1answer
17 views

Dual boot, I've not created the grub file on the 2nd OS

I have Ubuntu 14 and Windows 10 installed on the different partitions and working well. I've created one more partition and installed Arch into it. Actually, I made only the 1st part of installation ...
1
vote
1answer
32 views

Swap /dev/mapper/* devices

I have been given a box that has /dev/mapper/root mounted as / and mapped to /dev/dm-0. It has /dev/mapper/home mounted as /home and mapped to /dev/dm-2. The dm-0 device is 5G and the dm-2 device is ...
0
votes
0answers
25 views

Partition for Linux Mint

I tried using GParted using a tutorial but i kind of made a mistake i guess in the middle. I put 40GBs from /dev/sda5 to unallocated as i read in the tutorial. I got an error message saying that i ...
0
votes
1answer
32 views

How to mark a partition as unmountable?

I partitioned a MMC card into multiple partitions (in GPT format), and the very first partition is just padding space so that all other partitions are aligned to a optimal boundary. Problem is, on ...
0
votes
1answer
67 views

usb linux format

I have a Usb drive and that is connected to a laptop running Linux (Mint). As soon as I install some software in it (USB memory) seems like it recognizes it as a windows partition and doesn't install ...
5
votes
6answers
12k views

Mounting a hibernated Windows 8 NTFS partition on Linux Mint

I used Ubuntu for long even along Windows and SOMETIMES I got this problem for mounting the corresponding NTFS partition at the beginning, however with a pair of command lines to the console I got it ...
1
vote
1answer
20 views

Ubuntu 14.04 LTS: Auto-mount partition

Here's the situation: I have a nice 399 GB NTFS partition with a lot of files on it I access regularly but still need to access in Windows. My question: What is the best way to automount this ...
2
votes
2answers
95 views

Cannot install PC BSD

Currently I am using Ubuntu. I wanted to try PC BSD so downloaded 10.2. On trying to install it on a separate primary partition(so that I can dual-boot) I am getting the following error. Do anyone ...
2
votes
1answer
111 views

Extend XFS parititon ( xfs_growfs )

Here are the partitions of my server : NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 54.6T 0 disk ├─sda1 8:1 0 1004.5K 0 part ├─sda2 8:2 0 19.5G 0 part / ├─sda3 ...
1
vote
2answers
62 views

Partition disk into two equal partitions in a shell script

I am trying to partition my disk into two equal partitions. So far I was doing everything manually using fdisk command and then modifying fstab file with UUID for both the partitions and I have around ...
1
vote
0answers
33 views

CentOS install - select existing partition as /

I'm installing CentOS on a system that has pre-defined partitions (XFS, created by Ubuntu 14.04 Live CD). I can select the little 500MB partition and give it a mount point of /boot no problem. When ...
2
votes
1answer
10k views

Creating EFI bootable GPT partition with gdisk on previous MBR, GPT Damaged

So this is a sister question to my previous one about partitioning for a UEFI boot loader. Parititioning for a UEFI boot loader, can LVM be used? Disclaimer: I don't give a flip about the data on ...
70
votes
1answer
4k views

Why are there so many different ways to measure disk usage?

When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many ...
1
vote
2answers
27 views

Using a separate partition for installed software

I know this question was asked on google a few times here and there but everywhere so far people just tell how it works on Linux and I've learned that already, so you don't have to tell me how ...
0
votes
1answer
43 views

/ directory at 100% capacity. Not sure where I went wrong in my partitioning or how to proceed

I'm running a dual boot Windows/Mint partition. Everything is going fine until things suddenly get REALLY screwy and slow. I get a popup that "Filesystem root only has 297.8 MB disk space remaining." ...
1
vote
2answers
33 views

Can I use dd to move my system to another partition?

Currently, my whole system is located at the end of my hdd. I'd like to move that data to the beginning and still have booting and other details working. dd seems to do exactly what I want (to copy ...
0
votes
0answers
64 views

How to use df -h for only for path I am currently using for copy files and put the output to variable?

I am looking for a way to check the disk space only for partition which I am using to backup some folders and files to. As an example: I am in folder /var/usr/local/foo and I need to copy this ...
11
votes
2answers
11k views

How to mount multiple directories on the same partition?

I am installing an SSD and would like to put / on the SSD and /home, /var, and /tmp on the HDD. My current distro is Kubuntu but I would not mind trying another distro if this procedure can be ...
49
votes
4answers
63k views

How to copy the partition layout of a whole disk using standard tools

I want to take a backup of the whole partition layout of a hard drive, including logical drives, so that I can restore that layout to another disk. I do not want to copy the contents of the ...
2
votes
0answers
53 views

Cancelled hung GParted operation; didn't 'Force Cancel'; How do I get out without losing data?

In GParted, I was moving a partition over 200mb to the left. However, when it got to 76.13gb of about 330gb done, it stopped (it was stuck at 76.13gb all night). So, I hit cancel (without properly ...
0
votes
1answer
27 views

Expanding a hard drive partition to fill the drive without wiping the partition?

I have a hard drive that came out of an old Windows PC, which I'm using as a second hard drive. Because it was already formatted as ntfs, I didn't want to reformat it and lose all the data on it, so I ...
0
votes
1answer
319 views

How do I remove the chrx partition on a chromebook running crouton?

I hope this is the right place for this. If not, let me know where would be more appropriate. I have chosen to ask it here because I am assuming/hoping that the flexibility of linux will allow me to ...
1
vote
1answer
41 views

Interpreting results of commands

I am having a hard time interpreting the results of the below commands. The more I read about them the more I'm convinced that what I am seeing is somehow not what it's supposed to be. The results ...
1
vote
1answer
45 views

How to move image disk of a filesystem to a partition [closed]

I have a linux.img file with Arch Linux installed on it. I use the linux.img file to boot Archlinux on virtual machine. I got a new PC and will like to move the linux.img to new PC and boot it from a ...
3
votes
1answer
49 views

Does /boot need to be mounted on a separate primary partition?

I dual boot Windows 7 with Linux Mint. However, Windows 7's partition layout takes up all the primary partitions, leaving me with the option of one more primary partition or many more logical ...
0
votes
1answer
22 views

How to change from dual-boot to only ubuntu

I have both Windows and Ubuntu 14.04 on my computer, and I'm having some trouble. The Windows partition doesn't actually work at all, and the Ubuntu partition is getting buggy. I'm f.ex. having ...
0
votes
1answer
29 views

How to combine several partitions into one virtual drive?

I have 3 partitions sda4 10 Gb ; sda5 15 Gb and sda6 20 Gb . How to create and mount a virtual hard drive to join several filesystems together under debian8?
6
votes
2answers
747 views

Is it possible to enlarge the / partition without rebooting?

I can enlarge the root (/) partition with fdisk without rebooting (deleting an recreating it with the same 1st sector, but greater last sector). However, I cannot make the kernel to re-read the ...
1
vote
1answer
2k views

Arch Linux cfdisk asking for disk label type

I am trying to partition my hard drive I just wiped with dban so that I can install arch linux but when i run cfdisk /dev/sda It says: Select table type gpt dos sgi sun I don't know which to ...
3
votes
0answers
140 views

Replicate a complex partition structure with LUKS and LVM volumes

I have two external hard discs on an OpenSUSE 13.1 system. On one I have created a partition structure: An encrypted LVM partition (LUKS) Several volumes (10) on this LVM partition, some formatted ...
4
votes
1answer
587 views

Linux can't see any of my partitions — The backup GPT table is not at the end of the disk

I'm trying to install Linux on my HP Pavilion 14 inch ultrabook, but without any success. At first I tried installing Ubuntu on it; everything went fine, I got into the Live DVD (yes I'm oldschool ...
1
vote
1answer
80 views

how to create another physical volume/partition with existing unused lvm space without data loss?

I have a 1T USB disk with Fedora 20 installed. It shows as sdd in the first image below. I only used about 50GB. There are 3 logic volumes under the sdd2 and also there are about 620GB of free space ...
2
votes
1answer
72 views

how to allocate more storage for home directory?

After checking the file systems, I noticed there is a usage of 60% for /home. and /home only has a very limited of 23GB storage space. On the normal windows I used to own I had more than 800GB of free ...
0
votes
1answer
41 views

Delete swap partition and merge it with home partition

When I installed Arch linux I created a 24G swap partition. Now I want to delete it and merge it with home partition. How to do it? Device Start End Sectors Size Type /dev/sda1 ...
1
vote
0answers
39 views

Expand partition in Gparted backwards vs. move backwards + expand

Which is quicker and safer?: To enlarge a Gparted partition backwards or: To move the original (smaller) partition backwards, and then enlarge it? Example demonstration Enlarge /dev/sda3 to ...
0
votes
0answers
27 views

Reformatting a secondary hard drive while keeping some files

I'm almost certain that I'm in a deadlock here. Just recently, my Synology NAS died. So I decided to configure an Ubuntu server instead on an old computer I had laying around. Ubuntu is now installed ...
1
vote
1answer
125 views

Linux file system corruption due to improper shutdown (fs ext4)?

I have been managing many Linux servers, It is very easy to play with Linux servers than any other OS. But Sometime I encounter a problem with Linux OS is that, The file system corruption. This ...
1
vote
2answers
85 views

change FAT16 partition UUID

I have created a FAT16 formatted partition on my USB stick using mkdosfs /dev/sdb1 when I plug in my stick, it appears in /dev/ as: /dev/disk/by-uuid/ABCD-1234 How can I change the UUID of the ...
14
votes
1answer
16k views

Updating disk free size without rebooting the host

I use RHEL4 with LVM2 on it. At times even after removing large files more that a GB the partition size is not getting updated when is see using df command. -bash-3.00$ df -h Filesystem ...
2
votes
2answers
98 views

USB flash drive formatted as “Linux Live CD” keeps the CD-ROM name after re-partitioning

I have an USB flash drive that I formerly used as installation medium for Linux Fedora. The stick still has the "Fedora Live USB" installation files on it. When I insert it into my olde laptoppe, it ...
0
votes
1answer
31 views

How do can I tell what encryption is being used with signed in luks?

What command tells you what encryption is being used by a luks partition (all the relevant information initialization vector generation scheme, mode of operation and block cipher primitive).
0
votes
1answer
40 views

GDiskDump or DD to show partition names? [duplicate]

I have partition names like Data-HD, Yhteinen and W10. I do have lots of other partitions, but I want a little more assurance I am copying a right partition to a correct destination. I am quite ...
2
votes
1answer
72 views

How to modify partition in FreeBSD 10 with gpart

I am using FreeBSD. My HDD has this set of partitions: root@core:/media # gpart show => 63 390721905 ada0 MBR (186G) 63 1985 - free - (993K) 2048 ...
2
votes
1answer
63 views

USB flash-drive with hard-coded partition

I have a Kingston DataTraveler 2.0 16GB USB flash-drive: The weird part with this USB flash-drive is that despite the fact that I have zero-filled the flash-drive: # dd if=/dev/zero of=/dev/sdc ...
39
votes
11answers
73k views

List partition labels from the command line

Is there a command that will list all partitions along with their labels? sudo fdisk -l and sudo parted -l don't show labels by default. EDIT: (as per comment below) I'm talking about ext2 labels - ...
5
votes
1answer
38 views

How is the size of the block containing the “MBR” determined

I have used fdisk to move Ubuntu Mate partitions from a 1M boundary to start on a 4M boundary on a SD card. The "boot" partition now starts at block 8192. This is how the Raspbian distributions are ...