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
1answer
48 views

Why is the block size of a partition smaller than that of the underlying disk?

My understanding is that the block (in the phrase "block size") is like an IO buffer, or minimum IO size for a device. Since partitions are built on top of physical devices, how can they have blocks ...
1
vote
0answers
13 views

Different partition after upgrade of OPENWRT

I have just updated the firmware of my olinuxino rt5350f to the last release of chaos calmer 15.05.1 (website, image). After having finished the installation via tftp I noticed that the free space is ...
0
votes
0answers
102 views

Stuck on grub rescue with no /boot directory?

Deleted a partition during Windows 7 installation. Now all I get is error: no such partition. Entering rescue mode.. grub rescue> I tried to look for /boot directory: grub rescue > ls (...
0
votes
0answers
28 views

sfdisk does not create block files for corresponding partition

I have partitioned my disk using sfdisk. And the (7)partitions got created successfully. sfdisk -l also lists all the (7) partitions which I configured. But the strange thing is, the corresponding ...
1
vote
2answers
2k views

Problems mounting GPT partitioned external HDD

My neighbor brought over a 3TB external hard drive saying that after loaning it out to a Windows user, her Mac is asking her "to initialize something" whenever she plugs it in to her computer. I'm ...
0
votes
1answer
74 views

How to move empty disc space between partitions

I want to move an empty disc space from one partition to another. Is this possible? In the below image, I have free space under /local (/dev/sda3). I want to allocate this space to / which is on /dev/...
1
vote
1answer
4k views

LVM unknown device: how to recover?

I have a server with two hard drives that I thought I had correctly installed with LVM, until I discovered that the second hard-drive did not actually seem to be used. I investigated the problem and ...
0
votes
0answers
35 views

Is there a way to get partition information of a disk with sysfs?

my first question here - so please, don't be too hard with me... As the title says: I am wondering if there is a way to get partition information of a disk with sysfs. I know about some different ...
2
votes
1answer
41 views

How to properly plan relative sizes of partitions?

At work our systems must have the following directories each on a dedicated partition: /boot /home /audits /opt /tmp /var /home / There is no company policy or guidelines on the sizes they must be; ...
0
votes
0answers
19 views

multi boot win 7 ubuntu 15.10 kali

this is my first time using grub and I am hitting a problem. I can't seem to install ubuntu in the manner I "think" I should AND added to that I get unusable space. Here's what I am doing could ...
4
votes
1answer
138 views

Is this a so-called “Hybrid” Mac Partition table, and how can I mount this in Linux?

I would like to better understand what is on this hard disk, and how I can mount it into Linux (specifically Debian GNU/Linux, Stable): It was created on a Powerbook g4 "alu book" with the default ...
0
votes
0answers
23 views

swap goes the second drive, how can I return it to normal from command line?

The following is my plan for partition of CentOS 6.7. I have two disks with A for system and files, B totally for backup. But, after installation, I log in using ssh root. Here is what I see: (...
8
votes
5answers
8k views

How to clone a NTFS partition (WinXP) from a damaged disk to a new one?

I'm an Italian Windows programmer. I know almost nothing of Linux, so please be patient if the question is dumb and pardon my bad english. I need to clone a NTFS partition from a damaged, near to die ...
0
votes
2answers
68 views

Move FreeBSD installation to smaller HDD [duplicate]

Good day! I have FreeBSD installation with next partitions: Now FreeBSD is installed in 500GB hard drive. I want to move it to 250GB hard drive. What is safest and correct way to do it? I'm afraid ...
4
votes
2answers
13k views

Partition table not recognized by Linux kernel

I experience relatively often that the partition table of a USB stick or SD card is suddenly no longer recognized by the kernel while (g)parted and fdisk still see it, as do other systems. I can even ...
0
votes
1answer
25 views

I have 3 primary partitions already, can i shrink one of them and install kali-linux?

I have 3 primary partitions and 2 logical partitions already in my windows 8.1 PC. But now i want to shrink a 20gb space from c drive and install kali-linux 2.0 in it.. i tried to install kali linux ...
1
vote
1answer
50 views

How to reduce root Volume Group size in LVM?

I found a similar question here, but there's one different point on my server: --- Volume group --- VG Name vg System ID Format lvm2 Metadata Areas 1 ...
-1
votes
1answer
82 views

Retrieve data from “erased” home partition while installing win7

I had a computer with a windows 7 and I installed lubuntu 14.04 on another partition (I think I shrinked the windows NTFS partition first). I installed lubuntu this way: -> NTFS boot -> NTFS ...
20
votes
4answers
42k views

Moving /var, /home to separate partition

I am attempting to move some folders (such as /var and /home) to a separate partition after reading this guide: 3.2.1 Choose an intelligent partition scheme I was able to move one folder ...
4
votes
4answers
5k views

How do I find the offset of an ext4 filesystem?

I have a failing hard drive that is unable to write or read the first sectors of the disk. It just gives I/O errors and that is all there is. There are other areas on the disk that seem (mostly) fine. ...
1
vote
2answers
35 views

Linux mounts cloned partition instead of original

I'm trying to set up a laptop running Kali rolling to act as if it was running 'DeepFreeze". My goal is to be able to do the following: Set up sda1 clone it to sda3 with Clonezilla as a "clean ...
2
votes
1answer
82 views

Move free space from end of the drive to first partition with gparted

I am in a frustrating situation - no matter how I try, gparted won't let me assign the empty space to the first partition: The middle partition is blocking me from expanding /dev/sda1. I need to ...
13
votes
5answers
47k views

How to salvage an unreadable usb flash drive

I have a 16GB USB flash drive that somehow got corrupted to the point in which even fdisk -l can't find it (I get a one-line error message saying: "Unable to open /dev/sdc") However, it is being ...
3
votes
1answer
20 views

sfdisk lists an unknown device /dev/xvda4

When I run sfdisk -l on my Ubuntu 14.04 machine, it returns the following: Disk /dev/xvda: 36473 cylinders, 255 heads, 63 sectors/track Units = cylinders of 8225280 bytes, blocks of 1024 bytes, ...
3
votes
2answers
751 views

How can I set a label on a dm-crypt+LUKS container?

I just received a new USB flash drive, and set up 2 encrypted partitions on it. I used dm-crypt (LUKS mode) through cryptsetup. With an additional non-encrypted partition, the drive has the following ...
0
votes
1answer
19 views

Azure Ubuntu Partition management

I'm working on an Azure Ubuntu VM root@dalil:/# df -h Filesystem Size Used Avail Use% Mounted on udev 1.7G 8.0K 1.7G 1% /dev tmpfs 345M 392K 344M 1% /run /dev/sda1 ...
1
vote
1answer
31 views

why can I not see the unallocated space in gparted

so I have triple booted windows, kali, and ubuntu. I am trying to resize ubuntu /home directory which sits on the HDD. So I created a new unallocated space in windows of 200gb size, and I want to add ...
3
votes
1answer
13k views

Creating an ext4 partition fails with “invalid blocks count”

Environment: - Virtual machine on VMWare ESX 4.0 - OS: fully up to date RHEL 5.8 After adding a new (virtual) disk I want to create an ext4 partition on LVM on this disk. Steps taken so far: $ sudo ...
0
votes
0answers
67 views

Partition alignment when imaging with dd

I'm running Debian 7 (Wheezy) on my notebook and want to update to Jessie. When installing, I took care of the partition alignment on the ssd. My next steps would be to clone the existing SSD to a ...
1
vote
0answers
28 views

Rewrite partition table

I made a mistake and I removed multiple partitions from my partition table. I want to rewrite my partition table. I tested "TestDisk" but when I wanted to set the type, I always got "Structure Bad" ...
3
votes
1answer
66 views

How can I see the size of a partition's unallocated size on the command line after shrinking a partition with resize2fs?

I want to shrink my /dev/sda2 partition from 463.37GB to 400GB to make room for a new partition. So I did e2fsck -f /dev/sda2 followed by resize2fs /dev/sda2 400G. As per man resize2fs, the ...
3
votes
2answers
60 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
15k 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
14 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
21 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
18 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
35 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
36 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
69 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
28 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
98 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
164 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 8:...
1
vote
2answers
76 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
38 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 ...
3
votes
1answer
11k 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 it....
72
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
28 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." ...