Questions tagged [fdisk]

fdisk (for "fixed disk") is a command-line utility that provides disk partitioning functions.

Filter by
Sorted by
Tagged with
0
votes
3answers
25 views

CentOS 8 Increase disk partition and /var file system while system is running

I have /var file system part of /dev/sdc1 disk. I need to increase this disk size from 25GB to 60GB. I have increase the disk size. Now I am looking for the correct steps to increase the sdc1 ...
-1
votes
0answers
15 views

Linux + extend VM disk and procedure to use the extra size after DISK extended

We have VM linux server with disk of 100G ( LVM ) We want to extend the OS disk from The Vcenter from 100G to 500G , and using the extra size for new partition with 400G So the plan is like this ...
2
votes
2answers
48 views

Weird partition mess on KDE. Read-only file system

I'm trying to partition a usb stick to NTFS. Before, I've wrongly flashed a windows iso using dd dd if=./AME_2004_\(2020-09-16\).iso of=/dev/sdc status=progress and since then I've been having ...
0
votes
0answers
24 views

fdisk cannot resize partition device is busy

I am trying to repartition an existing disk while adding additional disk space. The OS is CentOS 7 release 7.6.1810. The kernel version is 3.10.0-957.12.2.el7.x86_64. fdisk -l currently shows Disk /...
0
votes
1answer
12 views

Make partition primary from existing partition

This is my disk partition: $ sudo fdisk /dev/sda Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. ...
0
votes
1answer
83 views

Device does not contain a recognized partition table

I want to grow an ext4 volume on a host, but I noticed that there is no valid partition table to delete and remake: fdisk -u /dev/vdb /dev/vdb: device contains a valid 'ext4' signature; it is strongly ...
0
votes
1answer
46 views

why does fdisk add one additional sector when creating partitions?

I'm playing around with fdisk and I tried to create a partition on an empty USB drive. Here's how that went: Command (m for help): n Partition number (1-128, default 1): 1 First sector (34-61187102, ...
-1
votes
1answer
35 views

How can I extend /dev/sda6 – is it possible?

I need to extend /dev/sda6 on other occasions and used the following guide (https://www.miarec.com/doc/administration-guide/doc1012), adding a new disk to the VM, but apparently it is not compatible ...
0
votes
0answers
30 views

Centos 8 split root volume to LVM

I am using CentOs 8 and deployed on cloud infrastructure. It is attached to root disk at /dev/xvda having size 250GB. Device Boot Start End Sectors Size Id Type /dev/xvda1 2048 ...
0
votes
0answers
40 views

NEW-2020: mount: wrong fs type, bad option, bad superblock

At my wits end over here... I have a USB drive which is failing to mount or respond to any commands really. I can't mount, can't erase, can't delete the existing partition, nothing seems to work. NOTE ...
0
votes
0answers
11 views

cfdisk extend single root ext4 non LVM paritition will there be any data loss

I have single root EXT4 partition created and have extended the unallocated space of 150GB to root partition through CFDISK. I see that lsblk shows appropriate space, however concern that will there ...
0
votes
1answer
62 views

How to save file into the home partition in Arch

I have recently noticed that Arch saves files in the root partition, although I create a home partition too. I use fdisk to partition the disk and these are the exact commands I type in it: After ...
1
vote
1answer
107 views

How to create a Windows-compatible partition with a GPT partition table?

I need to create a partition that is compatible with Windows 10 (preferably using NTFS) on a disk using a GPT partition table. Which partition type should I pick? On non-GPT (DOS I think), using fdisk,...
1
vote
1answer
58 views

How can lsblk and fdisk show different sizes for the same partition?

I am running a virtualbox VM and I can see that the size of /dev/sda2 is being shown differently in the two outputs. Also, in the output of fdisk, /dev/sda2 and /dev/sda5 seem to be overlapping ~$ ...
0
votes
0answers
29 views

Undo a disk format while disk is still attached

I've been struggling with a disk that's a logical volume. Disk would not work with me and I decided to partion and format the disk.. Then realized that I have de-attached and attached the disk without ...
0
votes
1answer
58 views

Add New Disks Using LVM to an Existing Linux System

We want to Add New Disk Using LVM to an Existing Linux System ( according to - How to Add New Disks Using LVM to an Existing Linux System ) We have the following rhel 7.2 server details pvs PV ...
0
votes
1answer
95 views

lsblk shows disk partitions but fdisk fails

I recently tried to power up my laptop and received a "Reboot and Select Proper Boot Device" error. This seems to indicate that the firmware is not able to find the boot partition. So, I ...
1
vote
1answer
18 views

Multiple Free Space Disk Partition

I can't merge these free spaces somehow.
1
vote
0answers
26 views

Move Ubuntu install to new drive from safe mode

Currently my linux system will not boot because the partition it is on has no space left at all. I get an error when I was able to log in that said: " Warning unable to write to /tmp ". Now, ...
0
votes
1answer
30 views

How to format and use the extended partition

The output of df -h as below: Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 796M 1.7M 794M 1% /run /dev/sda7 85G 6.2G 74G ...
0
votes
1answer
22 views

fdisk output explanation

I am a beginner in Linux. I created a Hard-Disk size 1GB through VM and am using CentOS 6.4 I scanned and discovered it using echo command. When I do fdisk -l /dev/sdi , I get the following output ...
0
votes
0answers
59 views

fdisk fsync io error

I have a 32 GB sony pen drive. I am getting error while writing/formatting it as: Disk /dev/sdb: 28.93 GiB, 31037849600 bytes, 60620800 sectors Disk model: Storage Media Units: sectors of 1 * 512 = ...
0
votes
0answers
54 views

How to create directory in Linux Partition

i have installed proxmox 6 on my 500 GB SSD Drive on summary screen of my node its showing HD space(root) 8.67% (8.15 GiB of 93.99 GiB) SWAP usage 0.00% (0 B of 8.00 GiB which mean there is still ...
1
vote
1answer
36 views

How to increase LVM partition

I'm using RHEL7 and here is my partition: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 100G 0 disk ├─sda1 8:1 0 1G ...
2
votes
1answer
129 views

fdisk dowsn't recognize SanDisk USB 3 Ultra Flair

I went through what I found about this subject in the most of the threads, unfortunately without success. I have the following situation. fdisk or parted doesn't recognize this sanDisk USB flash: ...
0
votes
2answers
62 views

Corrupted USB drive with bad sectors

I got a USB drive which is probably corrupted by some virus in windows. So, I tried formatting it by plugging it into an linux system. I used fdisk and gparted to try and delete all partitions and ...
0
votes
0answers
21 views

fdisk -l vs df -h partition confusion

I understand that the command fdisk -l should show the different partitions on a disk, and df -h shows the mounted file systems. In my case when I run fdisk -l , I get this : Device Boot Start ...
0
votes
1answer
228 views

How to create partitions on qcow2 image without reserving disk size

I want to install archlinux in UEFI mode so, I created image from virt-manager with size of 20GB. Then after booting into VM, I created 2 partition with fdisk named /dev/vda1 and /dev/vda2 with 512MB ...
0
votes
2answers
84 views

How to move/copy OS to new drive without live boot media?

I have only been seriously using Linux for a couple of months; I cannot find a simple solution to copy an OS over to another drive, despite there being hundreds of articles on the topic. First I ...
1
vote
0answers
27 views

OS partitions suddenly unmounted themselves

Previos similar problem Since I installed PopOS! 20.04 there was a problem, after 10 minutes using the OS it just close all my working windows, stop the Gnome interactions (I mean it doesn't change ...
0
votes
1answer
57 views

Recover VM from fdisk ovewrite primary partition as extended

I am having a CentOS7 VM. During fdisk /dev/sda delete to resize partition, we deleted the primary partition and during recreation extended was chosen instead of primary. Changes were saved and ...
0
votes
1answer
49 views

RPI root partition lost PARTUUID and can't boot

So I cloned a RPI sd card so I could run the same system at home and at work. The sd cards were slightly different sizes so after I ran dd I had to run resize2fs and fsck. If I boot the Pi with this I ...
0
votes
0answers
26 views

Is there a way to safely change the order of devices?

i used to extend contiguous device space,But today i can't extend my /root space Here is the fdisk-l's output command : Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: ...
0
votes
0answers
19 views

File recovery from corrupted NTFS drive

I have an SSD drive that was used with Windows 10 and suddenly stopped working. To recover the data, I made an image of the drive in Linux by: ddrescue /dev/sda ssd_rescue.img ssd_rescue.log No ...
1
vote
0answers
56 views

USB drive not recognized

I am trying to access important files on a HAMA Classic USB 3.0 Flash Drive, to no avail. It worked fine yesterday but now it doesn't seem to be properly recognized. The drive is there in lsusb (...
0
votes
0answers
9 views

Create an ova from extising install

(Archlinux) I'm trying to create an ova from my existing install, and following the wiki step by step, however i'm stuck when it comes to transfer the system, indeed, the partition of /dev/loop5, ...
0
votes
1answer
29 views

Resizing main partition on existing installation, fdisk detects the free space but does not allow me to expand

I am running the following command to expand my partition following the tips from this article article Partition 7 (75Gb, starting at sector 1794791424) is my main one and 8 (100Gb, starting at ...
0
votes
0answers
185 views

Proxmox Debian VM - Partition 2 does not start on physical sector boundary

I am currently getting the following output when running fdisk -l Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors Disk model: KINGSTON SA2000M8500G Units: ...
0
votes
4answers
162 views

Can't see correct size of disk with “df”

My computer contains an SSD of 250GB and a HDD of 1 TB. When I run fdisk -l I get the following output for said HDD: Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors Disk model: ...
0
votes
1answer
372 views

fdisk partitions don't show with lsblk

I've partitioned an external drive with fdisk and this are the results: But when I run lsblk the partitions I created are not showing. What's the fault here?
0
votes
2answers
8k views

bash: fdisk: command not found

I have installed Debian 10 remotely on a server from a live netinstal iso USB over KVM, but then I encounter this strange problem: # fdisk -l bash: fdisk: command not found However if I use /sbin/...
0
votes
1answer
107 views

Extend first partition to available space after third partition

I have 3 partitions (linux, extended, swap) I need to extend my live partition (linux) to the space available after these partition. More info: #fdisk /dev/vda Welcome to fdisk (util-linux 2.29.2). ...
0
votes
0answers
29 views

Backing up a device and restoring it including its partitions

Currently I'm going through each partition doing: mount -o rw /dev/mmcblk1pX /mnt/pX cd /mnt/pX # backing up: tar -czvf /tmp/partitionX.tar.gz . ... # something went wrong, restoring: tar -xzvf /...
0
votes
1answer
72 views

Converting existing disk to lvm, so I can increase the storage?

I have a disk. I want to convert it to LVM, so I can add another disk to it -- to increase storage. It is not a system disk or anything, it is formatted using xfs and just stores data. Here is the ...
3
votes
2answers
967 views

Error mounting /dev/sda2

I have been running Pop!_OS for a while now, and decided to install Kubuntu. I booted into the Kubuntu USB drive to try it first, and decided to prepare the partition for installation with KDE ...
0
votes
0answers
46 views

Trying to fully wipe hard drive, can't get rid of /dev/mapper/cl-(swap, home & root)

I tried to install CentOS via a USB stick onto my machine's hard-drive and the installation failed part way. That was a few days ago. I don't recall what the error message said exactly. I have logged ...
0
votes
0answers
483 views

Parted and fdisk will not write changes concerning creating a partition table

I am trying to use this HDD (which is quite old) as a storage device. However, I have ran into some issues. It had two partitions which I removed with fdisk first. Now whenever I try to create a new ...
1
vote
1answer
240 views

Accidentally ran mkfs command on already available disk

I had a volume of 350Gb attached to my Linode server. It was running out of space so I resized it to 400GB from the dashboard and restarted my server. Then I used the df -h command to check if the ...
0
votes
0answers
21 views

partitioning old NTFS hdd

I am using Ubuntu 18.4 and i have a 4 disk NAS. I found an old hdd that i thought i'd install for a bit of extra space. When i run fdisk -l the disk is listed as follows Disk /dev/sdd: 931.5 GiB, ...
0
votes
0answers
50 views

ex USB hard disk now shows as character device, I need it to be block device

I had an external (USB) hard disk as part of my RAID5 array, now I want to put that drive inside the computer, after I added extra SATA ports internally. I removed the (USB) drive from the RAID array,...

1
2 3 4 5
8