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
votes
1answer
93 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
351 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
117 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
116 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
92 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
63 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
58 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
107 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
67 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
54 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
116 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
149 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
374 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
113 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
75 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
192 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
109 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
111 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
83 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
55 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
1k 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
452 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
554 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
189 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 ...
0
votes
0answers
119 views

Parted: invalid option — '1' when trying to resize partition to end of disk

I'm trying to resize the root partition of a device to go to the end of the disk, like so: parted /dev/mmcblk0 resizepart 3 -1s This should grow the third partition to the very end of the device no ...
1
vote
1answer
50 views

How to reduce partition size containing files

I'd like to reduce the size of my "main partition" for making dual boot possible. The thing is: most files are stored on that partition. Can I reduce the partition to a size that still all files on ...
2
votes
3answers
205 views

KVM guest OS from partition

I have a dual-boot configuration with Linux and Windows. Now, I would like to keep dual-boot setup and also be able to run Windows inside of KVM on Linux. The following configuration works fine. I ...
-1
votes
1answer
137 views

Fedora: Low disk on Filesystem root

I'm running a Fedora Workstation VM on Oracle VirtualBox. After using the VM for about a month now, I get a "Low disk on filesystem root" popup when I login. The Disk Usage Analyzer shows this: I ran ...
1
vote
1answer
232 views

Want MBR install of Mint 19.1

There's a video driver problem with GPT, the Apple A1286 Mid-2010 MacBook Pro machines, and NVIDIA GT330M drivers, and running Nouveau has its own problems, so I want to install Cinnamon Mint 19.1 ...
1
vote
0answers
97 views

How to shrink a lvm partition?

I'm trying to shrink an lvm partition, I have already shrunk the home volume, but I still can't shrink the partition in gparted. I am getting the following error: Archiving volume group fedora ...
0
votes
1answer
102 views

Does parted have the same functionality as gparted for shrinking an ext4 partition?

I've been Googling about, and it seems the answer is 'no' from anecdotal reports for gparted. However does this apply to parted as well? I'm not talking about risk factors here involved by inputting ...
0
votes
1answer
1k views

Dual boot windows 10 and Ubuntu 18.04.1 on separate hard drives

I have Asus N552VW with the firmwarre mode set to Legacy and the following disks: * 128GB SSD: my windows 10 is installed on it * 2 TB HDD partitioned exactly into two partitions Knowing that, in the ...
1
vote
3answers
1k views

How do I access Windows files from Linux Mint (and vice-versa if possible)? I have dual boot

I have dual boot with Windows 10 and Linux Mint 19.1
2
votes
1answer
40 views

Is there a way to figure out what physical port a drive is being inserted into through linux?

Without knowing the order of which drives are being inserted and which ports they are being inserted (by human eye), is there a way to tell where they are being inserted using linux commands? I need ...
3
votes
1answer
257 views

Partitioning and formatting a 4k-emulated (512e) HDD

I just plugged into USB A 3.0 / C 3.1 my new external HDD to Debian Buster system. The disk was sold as LaCie 2.5" Porsche Design P'9227 2TB USB-C. Here is the output of fdisk -l /dev/sdc: Disk /...
0
votes
0answers
126 views

Problem with partitions while installing Manjaro from Live USB

I created a live USB using Rufus (with DD) using this version from the offical page: manjaro-xfce-18.0.2-stable-x86_64.iso I use a Lenovo Yoga 720. I disabled secure boot and fast boot in the bios. ...
-2
votes
2answers
423 views

Why can't Windows read Linux filesystems? [closed]

When playing with filesystems and partition, I realized that when I created a ext file system on my USB drive and plug it to Windows, I am forced to format it. On the other end, when building a FAT ...
0
votes
1answer
19 views

Partitioning an external HD appropriately [duplicate]

I plan on booting Kali on an external hard drive. My question is partitioning. If you create the 2 partitions for Swap and Root, do i need to create a 3rd partition for storage. From my understanding, ...
1
vote
2answers
45 views

How to migrate a whole partition? [closed]

I have two computers (old and new) connecting by a cable, now I try to move/copy/clone a partition to the new computer, without copying files one by one. Then the new can access the files copied from ...
0
votes
1answer
46 views

I lvextend-ed the /, but there is still only 50Gbytes

I have pved, /dev/sda and /dev/sdb, and I vgextended the /dev/sdb to the default VolGroup, and lvextended the /. now the lsblk shows this: [root@store01 ~]# lsblk NAME MAJ:MIN ...
0
votes
1answer
28 views

How to clear partitioned disk for QEMU

I have a 100Gb partition for QEMU purposes. However, I was installing Windows 10, but the installation failed and corrupted. Is there a way to completely wipe that partition so I can start over?
0
votes
0answers
42 views

Why can't I see NTFS partitions on a specific drive?

I have a dual boot win10/Fedora29, with 3 internal drives: win10 system (NTFS) fedora system (ext4) data drive (NTFS) I can't see the partitions on the data drive and I can't mount it. I can ...
1
vote
1answer
55 views

Whole disk is a partition: can't shrink, can't create new one

When I set up arch linux, I created a partition with fdisk, and ran mkfs.ext4 on /dev/sda. Now, I want to partition /dev/sda to have 2 partitions, instead of just one. The problem is, that when I try ...
1
vote
1answer
45 views

What is the deal with this usb drive with a second block device?

I have a giveaway usb stick and when I plug it into my computer and run lsblk it shows two block devices, i.e. sdb and sdc. sdb of them contains almost all the free space ( ~15G) and the sdc one is ...
0
votes
1answer
230 views

Arch: root partition not found at boot

For an unknown reason, my system stopped booting. Now, it fails to find my root partition after 10 sec and drops me in an emergency shell where my keyboard is not detected What I did so far was to ...