Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
178 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 ...
0
votes
0answers
50 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
57 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
53 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
57 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
104 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
27 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
27 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
34 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
168 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
57 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
143 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
49 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
39 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
38 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
57 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
378 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
70 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
43 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
199 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
290 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
64 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
177 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
68 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
89 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
73 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
86 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
50 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
58 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
33 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
57 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
95 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
33 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
60 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
45 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
95 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
108 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
281 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
105 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
67 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
132 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
68 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/...
0
votes
2answers
82 views

How to find the names of partitions of a given block device?

Given a block device (e.g, /dev/sda), how to determine the names of its partitions (if any) in a script (i.e. without user interaction)?
2
votes
2answers
66 views

Given a block device, how to detect if names of partitions must contain “p”?

I want to automatically partition a block device with sfdisk. This might be an SD card, a hard disk, SATA or NVME device. Initially I thought that sfdisk requires these names and thus I was looking ...
0
votes
1answer
45 views

Protect linux partition from windows

I want to duel boot windows and Ubuntu, however i don't want anything on windows to be able to access my Linux partition. Is there anyway to do this without encryption? As i don't want to slowdown ...
0
votes
2answers
689 views

How to move disk space from /dev/sda to /dev/sda1?

I have a Virtual machine using centos 7 with 200GB disk.For some reason my layout is: df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 100GB 95GB 5GB ...
1
vote
1answer
325 views

Convert primary partition to logical partition in linux

I have created new partition through Gparted in linux mint and now have used up all 4 primary partitions. Gparted directly created primary partition, the logical option was disabled. So I cannot ...
-2
votes
1answer
27 views

Mount space on Ubuntu [closed]

I have a sda7, which is where the OS was installed. It has the file system of ext4 with 8GB free of 25GB (with a key also). Aside from that I also has a sda4 of type ntfs which was my old data ...
0
votes
1answer
357 views

How to use zerofree on a whole disk?

My VirtualBox filesystem looks like: # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 29799396 5467616 22795012 20% / devtmpfs 1929980 0 1929980 0% /...
0
votes
1answer
115 views

Installing fedora using the automatic option

I have allocated 25gb of free space on my disk and I was wondering if I was to select the automatic setting when installing fedora will it use the free space which is already on the disk. I'm trying ...