Questions tagged [fdisk]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
36 views

Why does resizing my raid to “max” cause a GPT error and is this dangerous?

I have replaced all my 2TB disks in my raid(6) with 4TB mdadm --grow /dev/md0 --size=max and fdisk reports the following error: The backup GPT table is corrupt, but the primary appears OK, so that ...
0
votes
1answer
20 views

the output of the fdisk on centos

I'm looking for a meaning of the output of the fdisk command on centos , because it is a little different from other system , because other systems uses sectors ,but here the size can be determined by ...
-1
votes
0answers
45 views

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) error while I'm trying to emulate the raspberry 2 on my jetson nano

I'm trying to emulate the Raspberry Pi 2 on my Jetson nano following this tutorial : https://medium.com/@dali.may28/emulate-raspberry-pi-2-on-your-pc-91a4af826cba He says : "Use your favorite ...
0
votes
1answer
50 views

Fdisk creates 1K extended partition instead of the mentioned size

Trying to install arch on my dell using fdisk and MBR (DOS "o") I created 3 partitions: sda1 root sda2 swap sda3 extended But lsblk says sda3 is 1KiB even though I specifically selected &...
0
votes
0answers
35 views

I trying to partition my disk and i always get less space then i partitioned

So i have [root@archlinux ~]# fdisk -l Disk /dev/sde: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors Device Start End Sectors Size Type /dev/sde1 2048 534527 532480 ...
11
votes
1answer
1k views

Why does fdisk prefer 512 byte sector size even when the physical sector size of the block device is 4096?

I have a disk with 4096 byte sectors: # cat /sys/class/block/sda/queue/physical_block_size 4096 # For some reason, fdisk prefers to show the information about the disk using 512 byte sectors: Disk /...
3
votes
1answer
22 views

GPT disk looks different in external docking bay and internal swap bay

I have a hard disk that I use for backups via a USB 2.0 docking station. The disk has a GPT and one single ext4 partition. Everything is fine via the docking station, but if I attach the disk to an ...
0
votes
1answer
32 views

How do I determine which filesystem is in use on my “Microsoft basic data” partition? [duplicate]

I'm looking at WD Mybook disk, connected via USB as disk sde. Now, fdisk -l /dev/sde tells me that the single partition on the drive is: Device Start End Sectors Size Type /dev/sde1 ...
0
votes
1answer
33 views

I have a second hard drive installed in my hardware which I can't access from Debian (not mounted)

I just installed Debian but I had some problem during the installation. I first installed my OS on HDD cause I wanted a dualboot with Windows (which WAS located on the SSD) but I couldn't complete it ...
-1
votes
1answer
32 views

USB-Stick not recognizable by fdisk -l [closed]

I have a USB-Stick, that does not get properly recognized. In lsusb I get the following entry: Bus 001 Device 015: ID ffff:1201 However in fdisk -l I don't see the stick as a option. It is also not ...
0
votes
0answers
25 views

How to merge additional disk (volume) into existing one (Hetzner Server)

So on my Hetzner server, where I'm running nodes, I'm running out of space, so I used their additional volume feature to add more space, but they do it so a separate disk is created (sdb). My question ...
0
votes
0answers
584 views

Running mkfs.ext4 on partition keeps saying found a dos partition table when I added a gpt partition table

I have a 1TB external USB drive plugged into my Raspberry Pi 4 running Ubuntu Server LTS. I was attempting to partition, format and mount the drive. My plan is to ultimately use it to store PostgreSql ...
-1
votes
2answers
36 views

linux + is it possible to identify specific new disk in order to join the new disk to VG

we want to build new bash script that will join one of the new disks to volume group ( VG ) lets say we have linux machine and we add 10 new disks the target is to do manual "label" on one ...
0
votes
1answer
31 views

Question about Disk Partitioning

I'm new to Linux environment and trying to get some clarification on the Disk partitioning. I've installed new RHEL 8 vmware workstation initially with 20GB Disk and later expanded with additional ...
0
votes
1answer
25 views

fdisk -l doesn't show start sector

I must mount the .img file. So I try to follow this link https://www.linuxquestions.org/questions/linux-general-1/how-to-mount-img-file-882386/. But there is a problem. $ sudo fdisk -l ./...
0
votes
0answers
72 views

fdisk doesnt not show other partitions on Linux OpenWRT

I'm developing on an embedded Linux OS (FriendlyWRT derived from https://openwrt.org/) and we require a near full-proof recovery strategy, in case OTA updates dont work or corrupt the device, so we ...
1
vote
0answers
28 views

fdisk says that some head is greater than 16

On a virtual machine, I run fdisk and I get: fdisk /dev/vda Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write ...
1
vote
0answers
39 views

How to Backup a disk with corrupted GPT?

My hard disk is failing. Booting into Live Ubuntu, fdisk -l says "GPT table is corrupt, Backup appears okay, using it". I need to take a backup of the files on the disk ASAP. It doesn't show ...
1
vote
1answer
48 views

Recover partition table from running system and encrypted disk

I've made a small mistake, I've removed my boot partition by mistake. Using testdisk I was able to recover the boot partition without problem but I either misused it or did not understand and only ...
1
vote
1answer
56 views

How to extend my main Linux partition?

I am using PopOS 20.10 and Windows 10 dual boot on laptop and I want to upgrade capacity of partition sda6. /dev/sda6 is a single Linux partition and /dev/sda8 partition (recently created), both are ...
0
votes
0answers
44 views

How to resize a logical partition right after resize2fs

I am trying to extend the size of "partition 2" of a raw image (image.out). I can only use command line so gparted and other gui cannot be used. The following are the partitions: $ fdisk -l ...
2
votes
1answer
53 views

Why does df -h show less disk space than board actually has?

# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 4.3G 1.9G 2.2G 47% / devtmpfs 980M 0 980M 0% /dev tmpfs 981M 0 981M 0% /dev/shm tmpfs ...
0
votes
1answer
60 views

How to wipe chrome os from my dual booted chromebook

Ok, so I have a Acer c720 that runs GalliumOS, of which I can use blender on, and Chrome OS, which I really don't use that much, as I have chromium on GalliumOS. I want to work on more projects with ...
0
votes
3answers
221 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 ...
2
votes
2answers
80 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
114 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
21 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
3k 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
97 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
42 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
57 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
143 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
13 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
107 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 ...
2
votes
1answer
672 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
273 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
36 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
191 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
260 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
48 views

Multiple Free Space Disk Partition

I can't merge these free spaces somehow.
1
vote
0answers
33 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
135 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
28 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
206 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
109 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
40 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
181 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
223 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 ...
1
vote
1answer
792 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 ...

1
2 3 4 5
9