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
0
votes
1answer
23 views

Need help identifying deleteable partitions

I currently have my laptop set up with dual boot windows and linux mint. I'm planning to remove windows completely, so I need to know which partitions I can delete safely to clean up my harddrive, ...
1
vote
0answers
34 views

Calculate disk Byte size exclusively from /sys/block/

If we want to get the byte size of a block device or one of its partitions without calling any binary, and in a way that will always work, is it correct to do: /sys/block/sda/sda1/size or /sys/block/...
5
votes
4answers
2k views

If I have an SSD and a hard disk in a system, can the SSD act as cache for the hard disk?

Say I have some partitions; one on a SATA drive and one on an SSD. I want to create a "virtual" hybrid disk. Is this possible?
1
vote
0answers
29 views

How to fix the alignment of a partition (MBR/DOS) when the conventional tools refuse to work?

NB: some of the output below is from a Windows 10, but the question is nevertheless about how to rectify the issues preventing Linux from mounting said partition. Q: How to fix the alignment of a ...
0
votes
0answers
28 views

Writing to a readonly partition

I have the following situation with which I need some help. I have a Linux-based OS running on a RaspberryPi Compute Module. The system was shutdown abruptly, which led to an issue where now the boot ...
0
votes
0answers
31 views

Cannot create New folder and Paste files on a drive - Ubuntu

My Files drive is not able to modify
0
votes
1answer
29 views

My Windows partition got overlapped with Linux LVM

So this happends when I want to setup dual-boot ParrotOS and Windows. When I want to install Parrot, I accidentally select 'use all disk and setup LVM' (not encripted) and I noticed that and click ...
0
votes
0answers
24 views

Unable to boot into osx after resizing partition and installing ubuntu

After installing ubuntu on my macbook it now shows up when pressing alt at startup and i can boot it. The problem is, that the Macintosh HD OSx installation does'nt show up as a boot option anymore. ...
0
votes
0answers
6 views

How to install Alpine Linux on disk on a VPS?

I successfully mounted an ISO image of Alpine Linux on my Hetzner VPS. I conveniently run setup-interface to get internet access, and setup-sshd to configure my ssh access. All running smoothly ! ...
0
votes
1answer
27 views

Partitioning a hard drive, Linux / windows dual boot

The image describes the current HD on my laptop. Its a dual booting system with Linux Mint - primary OS, and a backup Windows 7 (rarely used, but required.) While creating the ext4 partition I made a ...
2
votes
1answer
29 views

Arch ISO not recognizing SSD, does see HDD

I'm installing Arch Linux and when I was about to partition my drives, I noticed something odd. In my laptop, I have two disks: a 1TB HDD and a 512 GB SSD. I would prefer to use the SSD as my boot ...
0
votes
0answers
19 views

Checking the last mount status (read-only or read/write) of a partition

In an embedded system, we are using 2 partitions (P1 and P2) for the redundant storage of data. By default, both partitions are mounted read-only. When data need to be written, P1 is to be remounted ...
0
votes
1answer
35 views

Can a Linux partition unnoticeably create files in another partition and, if, how can I prevent it?

Is it possible that my Linux partition creates files in another partition with me not noticing it? If yes, how to prevent it? Background: Manjaro partition encrypted, bootloader on Manjaro, swap ...
0
votes
1answer
28 views

How do I remove an OS from a partition?

I just bought an SSD drive and installed Linux Mint in it. My question is: how do I remove the OS in the old drive safely without deleting my home directory from the old drive? My first thought were: ...
5
votes
1answer
29k 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 ...
1
vote
1answer
25 views

Change filesystem type from “Linux” to “Linux root (x86-64)”

I just partitioned a new GUID drive, and accidentally chose "Linux filesystem" (0FC63DAF-8483-4772-8E79-3D69D8477DE4) instead "Linux root (x86-64)" (4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709) for my root ...
20
votes
3answers
59k views

partitioning using 2 hard disks (SSD and non-SSD) in linux [closed]

I have the following free spaces on 2 disks: SSD - 240G (sda) non-SSD - 240G (sdb) I understand that I should use SSD to install packages and non-SSD just for storing data. What's the best ...
2
votes
1answer
926 views

Is it required to make a separate /boot partition for for multiple linux os installation?

Is it required to make a separate /boot partition for for multiple linux os installation ?
1
vote
0answers
23 views

How to merge two unallocated partitions which 1st is on left site and 2nd is on right side [duplicate]

This is how it looks. I wonder if it's possible to merge the 2 unallocated partitions without data loss
3
votes
2answers
2k views

Does Debian use GB or GiB for it's partition manager during installation?

I'd like to create a 5GB (1000) as one partition during the install of Debian. However, I'm not sure if if the partition manager uses Gib or GB. The version of Debian to be installed is 8.4 using the ...
0
votes
2answers
33 views

How to increase the size of extended partition with free unallocated disk space to the right of it using fdisk/parted utilities?

# parted /dev/vda print free Model: Virtio Block Device (virtblk) Disk /dev/vda: 137GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File ...
3
votes
2answers
2k views

Failed to use partClone program to save or restore an image

I want to clone a Windows partition of a dual booted laptop which doesn't boot anymore as described in the following link. I don't know why but I can't clone a partition with Clonezilla. I only have ...
1
vote
1answer
3k views

while installing centos error is that 'sda must have gpt label'

While trying to install CentOS 6.4 IN DUAL BOOT with win 7 there was this error "sda must have gpt label". I don't know how to fix it and I also don't want to repartition my hard drive.
0
votes
0answers
9 views

Failed to connect to lvmetad after shrinking linux partition with cfdisk

WARNING: Failed to connect to lvmetad. Falling back to device scanning. Device /dev/sda2 has size of 1113587712 sectors which is smaller than corresponding PV size of 1952473088 sectors. Was device ...
2
votes
1answer
37 views

Does only /boot have to be on a bootable partition?

Normally I know that /boot on (modern?) Linux is simply part of the main / partition, however I'd like to have /boot on a small partition by itself, is this possible? I.e. I want a small partition ...
0
votes
1answer
51 views

Unable to mount a gpt partitioned external USB drive in Ubuntu 19.04

I'm trying to mount an external Toshiba USB drive in Ubuntu 19.04. No entry appears in the file manager gui when the drive is plugged in. fdisk shows... ewan@tiny:~$ sudo fdisk -l ... Disk /dev/sdb: ...
3
votes
3answers
5k views

Using d-i partman recipe strings?

I want to automatically partition all of my workstations in the same way: First partition is a bootable 1GB ext4 /boot partition Second partition is a 2GB swap partition Third partition is an ext4 / ...
541
votes
37answers
575k views

Tracking down where disk space has gone on Linux?

When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time ...
5
votes
6answers
4k views

GNU parted resizepart in script

I would like to used the yes command so that GNU parted does not wait for user input : root@195-xxx-xxx-xxx:/proc# parted /dev/sda unit B resizepart 2 1166016512B Warning: Shrinking a partition can ...
4
votes
2answers
3k views

How to shrink a partition below the minimum size reported by resize2fs?

I want to shrink a 250GB ext4 partition down to 200GB with resize2fs. The df tool says the partition is about 40% filled up. So, I guess I can, at least, shrink the partition to that level. Yet, ...
15
votes
5answers
40k views

Increase root partition by reducing /home

Hi I need to increase root partition space by reducing /home, in a Centos 6.6,my situation is this: /dev/mapper/VolGroup-lv_root 50G 46G 1,6G 97% / tmpfs 1,9G ...
6
votes
2answers
26k views

“inode_size (128) * inodes_count (0) too big for a filesystem with 0 blocks” while creating a file system

My partition table looks like this: Device Boot Start End Blocks Id System /dev/sda1 * 2048 32505855 16251904 83 Linux /dev/sda2 32505856 33554431 ...
0
votes
1answer
18 views

How to determine sizes using sgdisk partitioning in bash script

I'm using sgdisk in a bash script similar to this: sgdisk --clear /dev/vda --set-alignment=1 --new 1:34:2047 --typecode 1:EF02 -c 1:"grub" -g /dev/vda sgdisk --new 2:2048:16779263 --typecode 2:8300 -...
0
votes
3answers
49 views

How to use newly partitioned disk?

I've done a disk partition with fdisk /dev/sda with following options: P - primary But when inspecting disk with df -h command I do not see the disk space available to use. But I can see it with ...
1
vote
2answers
45 views

Why does parted need a filesystem type when creating a partition, and how does its action differ from a utility like mkfs.ext4?

I am partitioning a disk with the intent to have an ext4 filesystem on the partition. I am following a tutorial, which indicates that there are two separate steps where the ext4 filesystem needs to ...
0
votes
0answers
24 views

fdisk mkswap No such file or directory

Im trying to create new swap partition but I have error when I try mkswap /dev/vda1p1 /dev/vda1p1: No such file or directory Please check -bash-4.2# lsblk NAME MAJ:MIN RM SIZE RO TYPE ...
0
votes
1answer
32 views

mdadm RAID1 array - is it required to partition?

I've been using an mdadm RAID1 array with 2 2TB disks for a few years without issues. Recently I needed to upgrade it to 4TB so I bought 2 new disks of 4TB and plan to replace one, wait for the ...
1
vote
1answer
1k views

grub-install on hybrid mbr disk

I followed the very detailed guide for making hybrid MBR record (GPT/MBR) taken from here Now, gdisk says I have hybrid mbr. But I can only boot in UEFI and cannot do that in BIOS (I use external ...
0
votes
0answers
31 views

Copy data from one partition to previous partition

I currently have my Ubuntu mounted on /dev/sdb7 and would like to move all the data to a previous partition. The unallocated space is my partition, which I haven't created yet. Is there any way?
1
vote
1answer
1k views

VirtualBox - Dynamic virtual disk won't expand

I'm working on a 64-bit CentOS 7 VM on my Windows 10 host, and I have a dynamically-allocated VHD that is giving me problems. At first, the VHD's maximum size was set to 16GB, functionally about 14.4 ...
1
vote
3answers
55 views

Anything special to consider when cloning an HD to an SSD?

I would like to move from an HD to an SSD. Is there anything special to consider here? For example: Different recommended fstab settings mkfs or partition tools behaving differently when operating on ...
2
votes
1answer
2k views

Resize2fs keeps asking me to run e2fsck -f [closed]

I set-up a server with LVM, and I just recently extended one of my logical volumes from 25TB to 35. root@server:/home/user# df -h /dev/mapper/vg--data-lv--data Filesystem Size ...
92
votes
13answers
177k 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 - ...
0
votes
1answer
29 views

Expanding Debian system partition

I have a VM (with little space) running Debian 9 and a drive of 100 GB. I want to configure it as a LAMP web server. I followed a tutorial to mount that drive on /data, this is my partition table: $ ...
2
votes
2answers
43 views

How can I fix my swap partion?

So a couple of months ago I installed, on my computer, dual boot so I could have windows and ubuntu at the same time. I had some struggles because my PC is designed with UEFI support (Model: ASUS ...
0
votes
1answer
37 views

Dual boot (2x Linux), safe to delete the first one?

I have installed two Linux distributions, HDD partitioned in 2 parts. First Ubuntu, second Debian, if that matters. After working with both, I have decided to keep Debian, and get rid of Ubuntu (...
1
vote
0answers
17 views

Relocate Linux System Copying Linux Partitions Only

I have the next HDD MSDOS configuration in sda: jeanfar@jeanfar-pc:~$ sudo fdisk -l /dev/sda Disk /dev/sda: 232,9 GiB, 250059350016 bytes, 488397168 sectors Disk model: ST250LM004 HN-M2 Units: ...
0
votes
0answers
27 views

GRUB2: unknown filesystem for all partitions

I have 5 partitions on my SSD. 1 - ? 2 - Windows 3 - ? 4 - EFI System 5 - Ubuntu I was out of space on 5th partition so i decided to boot from LiveCD and expand it. I took some space from 1st ...
3
votes
1answer
1k views

Best parameters for ext4 filesystem to handle virtualbox disk images

I have ext4 partition, which holds disk image files VirtualBox works with. They all are fixed-size images (i.e. files never change their size). They are defragmented as much as possible (with e4defrag)...
1
vote
0answers
21 views

bind home and other folders to casper-rw

I use an USB key with a casper-rw partition but Ubuntu only binds /var/log-crash to casper-rw, the rest of linux files are non-persistant. But i want to have nearly all consistent, like an normal ...