Questions tagged [partition]

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.

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

Create an image of the partition (only the used space)

I have a partition sdb1 of size 3.3 GB. From 3.3 GB only 1.9 GB is used and 1.2 GB is an empty space. I want to create an image of this partition. But I want the image to only have the used space i.e. ...
2
votes
1answer
131 views

Handle booting failure for u boot ( Debian )

I have an embedded device with 512 Mb of ram and 4Gb internal storage. ( Consider Raspberry Pi or Beaglebone ) I have an external SD card available with 3 Partitions. mmcblk0 is the disk and ...
0
votes
1answer
377 views

How can I resize my fedora lvm partition to be larger with the root partition in the way?

I have changed to Fedora Linux and shrunk my windows partition. I have unallocated space which I want Fedora to take up. I have looked other answers to questions like this and cannot find instructions ...
-1
votes
1answer
28 views

Formated drive is not fully empty

I used Gparted to delete the partitions on a HDD as for some reason had used data on it however, after restarting my system it says my unallocated 4TB drive is only 3.64TB.
0
votes
1answer
6k views

Resize partition with fdisk without data loss

I need to increase the partition using the empty space located before the partition starts without data loss. As far as I know to resize the partition and to leave data intact one should start the new ...
2
votes
0answers
88 views

Replace CentOS with Ubuntu on a remote server (SSH access only) [closed]

I am trying to replace CentOS with Ubuntu Server on a remote machine where the only access is via network (SSH-only at present, VNC may be set up if needed). I have fully backed up all data on the ...
0
votes
0answers
20 views

Linux remove free space of partition [duplicate]

Is there any way to remove free space of a partition ? I want to build embedded os and i created disk image with dd command and patition this disk with fdisk . my problem is , disk size is too ...
0
votes
0answers
30 views

Kali Doesn't show HDD in automated install [duplicate]

I am trying to install Kali Linux from a USB drive to my hard drive alongside Windows 10. My issue is that when the "Partition Disk" step comes along in the Kali installation, /dev/sda does not appear....
1
vote
0answers
404 views

Rescueing Microsoft reserved partition

A few year ago I built myself a NAS. It has a 320GB HDD for ubuntu OS and a 2TB HDD for files. I mounted de 2TB disk and shared it with samba over my network. Now I have build a HTPC like system and ...
1
vote
0answers
74 views

How can I customise root partition (/) volume size in VM ( Centos7) creation using Packer?

I'm creating a vmware machine("type": "vmware-iso",) using packer. By default it creates /(root) partition with size appx 40 GB(not sure why? default ?). Now I am struggling to find out a way through ...
0
votes
0answers
93 views

Can I move any partition freely when using UEFI?

In BIOS, booting is two or three stages, both of which will end up calling the final-stage bootloader code in the boot block of a partition. Is that the reason why I need to reinstall GRUB2 when ...
-7
votes
1answer
61 views

What is a region inside a partition, not used by any filesystem, called?

gparted calls the region on a disk not belonging to any partition "unallocated", and region in a filesystem not occupied by any file or metadata, "unused". How do we call a region inside a partition ...
-3
votes
1answer
73 views

What are the limitations on where we can move a partition in gparted? [duplicate]

Please leave the two posts open, until you can write a good answer to cover both. The layout of my current disk is: In gparted, when I select a partition, and click "Partition->resize/move", is it ...
0
votes
0answers
189 views

Will I be able to move my root partition without failing to boot?

The layout of my current disk is: I am following the advice from https://unix.stackexchange.com/a/501410/674 to rearrange the partitions on the disk. Are the following steps ok? shrink sda3 (/) to ...
0
votes
1answer
33 views

Do the (relative) positions of the partitions matter?

The layout of my current disk (ST1000LM014) is: Do the (relative) positions of the partitions matter? what are the pros and cons of the following orderings: swap, home, root swap, root, home root, ...
0
votes
0answers
58 views

Cannot manage to restore Dual Boot after reinstalling ubuntu

I have a Dell Latitude 3590 with Windows 10 installed as factory setting. I previously installed ubuntu 18.04.2-desktop with an iso image on a usb drive with dual boot allowing me to choose between ...
0
votes
0answers
42 views

How can I reduce the LVM space and assigned that reduced space to existing partition?

Had this condition, I really need a space in /dev/vda1, how can I reduce the size of my LVM in /dev/mapper/vg-data-lv_data by 10G and assign those 10G of space to my /dev/vda1 partition ? If it's ...
0
votes
2answers
915 views

What does disk label mean?

What does the concept of disk label mean? Does it mean the same as partition table type (MBR, GPT, loop, etc)? (as I suspected from the following output of parted, and in my previous post) Or does ...
-2
votes
1answer
130 views

How shall I create a single partition on a disk for making it an external hard drive with a ntfs filesytem?

In manpage of parted: Command: mkpart [part-type fs-type name] start end Creates a new partition, without creating a new file system on that partition. This is useful for creating partitions ...
0
votes
1answer
384 views

What do the partition table types and flags mean in the output of parted?

In the output of sudo parted -l: Model: WD My Passport 0748 (scsi) Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size ...
-3
votes
1answer
52 views

In GPT, can a partition be partitioned further into partitions?

I heard that GPT makes MBR's distinction between primary partition, logical partition, and extended partition disappear. In GPT, can a partition be partitioned further into partitions, in the same ...
1
vote
2answers
42 views

Partition recovered

Partitions MBR has been destroyed accidentally by a friend, Then most partitions are unviewable which is too bad, can all the partitions be recovered? I have a text file including the original ...
-1
votes
2answers
46 views

Data recovery after dd on a sda partition

I had installed opensuse in UEFI mode in my computer but having a legacy Windows so it did not appear in boot menu. Following a weird tutorial on the internet I dd the Windows partition of my sda. I ...
-2
votes
3answers
62 views

Is a disk without being partitioned a partition by itself?

From We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition? You can't make the whole disk a PV if there is at least one partition on it (because pvcreate won't let ...
-3
votes
2answers
708 views

We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition?

Manpage of pvcreate says pvcreate initializes a PV so that it is recognized as belonging to LVM, and allows the PV to be used in a VG. A PV can be a disk partition, whole disk, meta device, or ...
1
vote
1answer
168 views

Significance of /sys/block/sd*/sd*/size

Disk size /sys/block/sda/size is always correct but the partition size /sys/block/sda/sda2/size is not correct if the partition type is extended, boot, etc, due to this I rely on reading MBR to get ...
0
votes
1answer
47 views

Can't log in desktop environment after moving `/` and `/home` into different LVs and enlarge swap

I enlarged LV swap from 1G to 4G. I also moved / and /home in a single PV to two different LVs, by shrinking LV root and create LV home on the freed space, and then following https://askubuntu....
-2
votes
2answers
535 views

How can I make `fsck` actually check the healthiness of my disk, partitions, filesystems, and LVs?

I want to check the healthiness of my disk, partitions, filesystems, and LVs. So I run fsck. I heard to use fsck on a filesystem, I need to boot into a live Lubuntu from a bootable flash drive and ...
1
vote
0answers
523 views

Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes

My laptop has Lubuntu 18.04 installed, and I boot into a live Lubuntu via a bootable flash drive, and then examine the partitions and filesystems. Is the following warning some serious problem to ...
-1
votes
1answer
175 views

mdadm RAID 1 partitions on sda1 and sdb1

Quick background: I have a RAID 1 array, created using mdadm. Both drives are hard-drives. The RAID array is called md127. There are 3 partitions in this RAID array: 20G for /var, 20G for /opt and 891....
0
votes
3answers
683 views

How to check if partition is Extended/Primary in Linux

Below is the info I get using (g)parted or fdisk command. Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 196265983 196263936 93.6G 83 Linux /dev/sda2 ...
0
votes
0answers
73 views

How shall I split a partition containing `/` and `/home` into two logical volumes? [duplicate]

I have a laptop running Lubuntu 18.04, with a single hard drive as a bootable disk, and two partitions on it: EFI System Partition and a bigger partition contains everything else (e.g. / an /home). $...
-2
votes
1answer
202 views

How can I split a monolithic partition into two, one for `/` and one for `/home`? [duplicate]

Right now, I have everything in a partition (except EFI system partition). How can I split the partition into two, one for / and one for /home? How would you use parted to do that step by step? How ...
0
votes
0answers
172 views

Can I use dm-crypt and dm-verity at the same time? Or is it “one-or-the-other”?

I don't know too much professional theory of the two tools. I thought I would use dm-crypt to encrypt the whole partition, and then use dm-verity to verify the integrity of each block. Does that make ...
1
vote
2answers
96 views

Repartitioning disk

I am running OpenSUSE Tumbleweed. I don't recall what choice I made during the installation process months ago, but I am running out of disk space and need to find a solution. Can I just move my ...
0
votes
0answers
58 views

Can a device be re-partitioned over the air

I know that OTA updating for Linux can be a complicated topic and that there are ready-made solutions out there. I'm talking in terms of using an embedded computer running Linux such as a Rasberry Pi ...
1
vote
0answers
72 views

What program(s) is stored in a small partition on my hard drive with flags `bios_grub`?

My old laptop uses BIOS. It came with Windows installed, and later I installed Ubuntu by overwriting Windows. What program(s) is stored in a small partition on my hard drive with flags bios_grub, ...
0
votes
0answers
34 views

Are partition and filesystem specified and identified in the same ways?

How is a filesystem identified or specified? Some commands such as resize2fs expect a filesystem as an argument. The mount directory of a file system doesn't work. Does name such as /dev/sda3 ...
0
votes
1answer
61 views

What is a generic name for the sector which stores the partition table of a disk?

If a disk uses GPT partitioning method, is its first sector still called MBR? What is a generic name for the sector which stores the partition table of a disk? Thanks.
-5
votes
1answer
128 views

Can an extended partition originally be either a primary partition or a logical partition? [closed]

I heard that a partition used to house logical partitions is called an extended partition. Can an extended partition originally be either a primary partition or a logical partition? Or must an ...
1
vote
1answer
34 views

Aren't block and sector different concepts?

Understanding the Linux Kernel says The first block in each Ext2 partition is never managed by the Ext2 filesystem, because it is reserved for the partition boot sector. As far as I heard, a ...
-3
votes
2answers
106 views

Does this refer to a file system?

Understaning the Linux Kernel says Modern Operating Systems says In the second figure, does each arrow pointed from "Disk partition" refer to a file system? According to the first figure, each such ...
-1
votes
1answer
85 views

How does `resize2fs` change the size of a file system?

According to https://unix.stackexchange.com/a/501454/674, parted's resizepart does not care about the filesystem at all. It just changes the partition table to specify a new location where the ...
-1
votes
1answer
149 views

How is the size of a filesystem defined?

man resize2fs says The resize2fs program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. ... The size parameter ...
2
votes
2answers
227 views

Fedora 29 — 500gb Hard Drive only storing 52.6gb

I have two hard drives on my laptop. One has 1tb with windows 10 and the other is 500gb (which I took from an old laptop) with fedora 29. When I went into the disk usage analyzer (DUA) on Fedora 29 I ...
0
votes
1answer
487 views

Do `parted resizepart` and `resize2fs` not modify or remove existing files on a partition?

Does parted's resizepart command by default not modify or remove existing files on a partition? Furthermore, does it never modify or remove existing files on a partition (even by some option)? ...
0
votes
3answers
128 views

How shall I improve the current partitioning of my hard drive for Linux filsystems? [closed]

I have had these questions for a long while, so I hope this post won't be closed. gparted shows the current partitions on my hard drive: When I partitioned my hard drive two years ago, I didn't ...
0
votes
1answer
80 views

How to restore partitions after renumbering?

I have read the posts and decided to follow it to do it, Change the number of the partition from sda1 to sda2, made by Joao S Veiga. I thought it would be light-risk because renumbering partitions ...
-1
votes
1answer
341 views

Why do gparted and df -h report different size, used, and avail sizes of a partition? [closed]

$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 260G 16G 231G 7% / /dev/sda4 550G 323G 200G 62% /home gparted shows: Why are the size and used and avail sizes ...
0
votes
1answer
165 views

Access regular partitions inside an LVM logical volume

I have the following setup: /dev/sdX - disk (GPT table) /dev/sdX1 - regular partition /dev/sdX1/crypt - LUKS encrypted partition /dev/sdX1/crypt/lvm_vg - lvm volume group /dev/sdX1/crypt/lvm_vg/...