Skip to main content

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
0 answers
20 views

Resize Disk Image with Protective MBR and GPT table

I've got a disk image that I need shortened slightly (long story - but it deals with variances in flash drive sizes). The partitions are already short enough, but the drive size is not. Basically, I ...
johnnyb's user avatar
  • 101
2 votes
1 answer
86 views

fstab, mountpoint - what did I miss?

I can't figure out what I'm missing or done wrong. lsblk dose not show the mount points(?) NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 1.8T 0 disk └─sda1 8:1 ...
Arelius's user avatar
  • 73
0 votes
0 answers
44 views

RHEL 7.2 + is it possible to resize partition sda2 when parted not support resizepart

we have old RHEL machines with version 7.2 ( RHEL 7.2 ) this machines has old parted version that not support resizepart so for example we can't use this syntax in order to resize sda partiton parted /...
yael's user avatar
  • 13.4k
0 votes
0 answers
31 views

Questions about disk allocation

After I uninstalled /dev/nvmeon1p1 from /boot and executed the command dd if=/dev/zero of=/dev/nvme0n1p1, I used the mount command to mount /dev/nvme0n1p1 to /mnt, can I ask if this /mnt can be ...
Darcy Walter's user avatar
0 votes
1 answer
86 views

Subpartition inside partiton not showed in lsblk or /dev/

I installed archlinux inside my /dev/sdb4 and used the guided partition scheme. After install i can't mount /dev/sdb4 (ext4). The error was VFS: Can't find ext4 filesystem. lsblk shows me: sdb 8:...
cat Man's user avatar
  • 78
0 votes
0 answers
61 views

I have multiple Home folders over several hard drives. I need to understand what I did wrong?

I am running ParrotOS on an old MacPro. I have 3 SSD's and 1 HDD. I was trying to move my Home folder to the HDD. Doesn't that seem like the right thing to do? When I run fdisk -l I only see three of ...
Warloxian's user avatar
0 votes
0 answers
94 views

unable to access usb in debian 12 through Home folder

when I plug the usb in and try this code : sudo fdisk -l I see my USB device in results but can't open it through HomeFolder, I see nothing. How to fix it in Debian 12 ? (thanks for help)
user598575's user avatar
5 votes
2 answers
378 views

How can I list partitions in storage order?

After telling general information (capacity, sector size and the like) fdisk shows 8 columns: sdXY, Boot, begin, end, # of sectors, size, flags, type. The partitions get sorted by Y in their sdXY ...
Adalbert Hanßen's user avatar
1 vote
2 answers
112 views

fdisk -l on an usb drive gives a very weird response

Today I nuked an old usb3 flash 8GB drive on a linux machine with: dd if=/dev/random of=/dev/sdb then I put it into a windows pc, it asked me to format it, I did an extended format with default ...
user3450548's user avatar
  • 2,994
0 votes
0 answers
123 views

Mounting an old JBOD array with two disks DOS formatted

I have a couple of 500GB disks with data inside that I would like to get back. The two disks were mounted inside a Lacie disk, part of a JBOD array and formatted FAT32. I don't have the external disk ...
Joe Mauri's user avatar
0 votes
1 answer
131 views

Scripting fdisk with filesystem signature issues

I'm trying to automatize fdisk with my Bash scripts. In my script, I have the following code block: echo "Creating root filesystem partition..." ( echo n echo 3 echo echo ...
discouragedone's user avatar
0 votes
1 answer
69 views

fdisk partition type shown as empy when type is an UUID

I have two systems with same versions (Debian 11.7, util-linux 2.36.1-8+deb11u1). Why one system shows partition types as UUIDS and the second doesn't and also doesn't recognize that types showing &...
Noman_1's user avatar
  • 101
0 votes
1 answer
442 views

Linux Issue : Mount point automatically changes from primary to secondary or secondary to primary on reboot in linux, debian 11/12

I am using debian linux , and in this operating system , I am using 2 disk 1 -> Primary disk (/dev/sda1) 2 -> Secondary disk (/dev/sdb1) First disk is mounted on "/" and the 2nd disk ...
shubham gupta's user avatar
0 votes
1 answer
651 views

How to format RAID hard drive

I need to format(empty hdd) a RAID 0 HDD which is as follow: sdb 8:16 0 3.7T 0 disk └─md126 9:126 0 3.7T 0 raid0 └─md126p3 259:2 0 3.7T 0 part ├─rootvg01-swap 253:0 0 4G 0 lvm ├─rootvg01-...
Thu Ra's user avatar
  • 103
0 votes
1 answer
62 views

Unable to mount Full "md3" System Partition on CentOS Server, preventing Boot

I'm facing an issue with my server running CentOS. The system partition "md3" (raid1) is full due to a backup script error that failed to delete old data. As a result, my CentOS system has ...
node's user avatar
  • 1
0 votes
2 answers
681 views

fdisk shows partitions type Linux and dos on the same partitions

I have created a partition on my disk like this: root@vps-90446fc7:~# fdisk /dev/sdb Welcome to fdisk (util-linux 2.37.2). Changes will remain in memory only, until you decide to write them. Be ...
fguillen's user avatar
  • 103
2 votes
2 answers
558 views

Are UUIDs and PTUUIDs important for MBR disks? If so, how do I create them on my own?

I'm studying partitioning under Linux, starting with sfdisk. If I copy a partition table from one drive to another, it'll copy the device UUID and the PTUUIDs for each partition, but if I'm creating a ...
Tango's user avatar
  • 363
0 votes
1 answer
117 views

Cancelled ext4 shrink and now I can't seem to format the drive? parted, fdisk etc won't run with the drive

I was shrinking an ext4 partition, however it was taking too long so I thought I'd just start from scratch (making a new partition and wiping the data). However after I cancelled the resize (which was ...
Chris Stryczynski's user avatar
0 votes
0 answers
73 views

Problems after migrating drives to HBA-connected disk shelf

I had 4 drives (2x3TB, 1x4TB, 1x18TB) in USB SATA docks connected to my proliant server. I finally got my HBA to recognize my IBM disk array, and managed to get the drives recognized in Ubuntu server ...
Devin Gardner's user avatar
0 votes
1 answer
58 views

Regain full disk space after copying a small image file to a large USB device

I'm copying an image file (size: 2GB) to an USB disk on /dev/sda (size: 2TB) using dd: sudo dd if=2023-05-03-raspios-bullseye-arm64-lite.img of=/dev/sda bs=4M status=progress conv=fdatasync After dd, ...
Wolkenarchitekt's user avatar
-1 votes
1 answer
270 views

USB disk partitions disappeared, cannot mount

The USB partitions were deleted, only sdb remained. sdb1 does not exist. How do I partition the USB again? Now it shows up in the lsblk output, but I can't mount it. [xx@x ~]$ lsblk NAME MAJ:MIN RM ...
alaylihacker's user avatar
1 vote
1 answer
632 views

resize partition overlapping parted

parted -s -a opt /dev/sda "print free" Modèle: VMware Virtual disk (scsi) Disque /dev/sda : 268GB Taille des secteurs (logiques/physiques): 512B/512B Table de partitions : gpt Disk Flags: ...
Peutre's user avatar
  • 77
0 votes
0 answers
144 views

No free sectors available shown by fdisk in centos 7 minimal

This is the output of fdisk /dev/sdb [root@localhost ~]# fdisk /dev/sdb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before ...
achhainsan's user avatar
4 votes
2 answers
944 views

Recovering accidentally deleted partition on a solid-state drive using "fdisk"

As far as I know, a solid-state drive (SSD) stores data in different locations that the operating system cannot control. If I accidentally delete a partition, and then enter the exact start and end ...
auzyveyauzyvey's user avatar
0 votes
0 answers
401 views

New USB stick freezes processes that come in contact with it (dd, fdisk, gparted, etc)

I bought a new USB stick to upgrade my os (debian) on my laptop. I used gnome-multi-writer to write the .iso file into the device. The writing process never showed a message of success or error so I ...
Laraconda's user avatar
  • 101
2 votes
0 answers
166 views

Recover data from deleted (still intact) raid 5

So through a shell script gone sideways I accidentally deleted my mdadm raid5 (3 HDDs) and the partitions from the disks (so disks still connected according to lsblk as {sdb|sdc|sdd}). I have not ...
50x's user avatar
  • 21
1 vote
1 answer
392 views

Why does free space differ when shown by fdisk and df?

Basically title. I'm running MX Linux from a 32GB live USB. When I run fdisk -l, I see the following: [...] Disk /dev/sda: 29.88 GiB, 32080200192 bytes, 62656641 sectors Disk model: Flash Drive ...
Vavřinec Kubíček's user avatar
1 vote
1 answer
2k views

fdisk command is not listing the required commands like 'a'

I am new to the Linux environment and using the Pop!_OS Distro. I was using fdisk to create partitions on an SD card, sudo fdisk /dev/sda But when I pressed 'a' to set the bootable flag on the 1st ...
Joe Race's user avatar
0 votes
1 answer
973 views

Move disk space from /dev/sda3 to /dev/sda4

This is my current setup: Disk /dev/sda: 546.8 GiB, 587127480320 bytes, 1146733360 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/...
Bananas17's user avatar
0 votes
1 answer
528 views

Increasing Volume Group Size without new Disk

On my server (RHEL8) running on vCenter, I have a Volume Group that consists of 1 Disk. I want to increase the Volume Group size without adding a secondary virtual Disk in vCenter. Old Disk size: 50 ...
Armin's user avatar
  • 3
0 votes
0 answers
183 views

Disk Usage Analyzer Shows 100% After Expanding VMWare Hard Disk

I expanded my Hard Disk on my VMWare for this machine to 80GB, installed GParted and expanded the partition. But Disk Analyzer is still showing 100% usage. When I run fdisk -l the output is: Disk /...
Michael Shoe's user avatar
0 votes
2 answers
54 views

Re-allocate space on Centos7 RAID-1 volume from one mount to another

We have a set of Centos7 machines that were configured with 100GB /tmp and 400GB /scratch partitions. The tools we're using are consuming more /tmp space than anticipated so we need to re-allocate ...
srh's user avatar
  • 93
0 votes
1 answer
69 views

fdisk vs. vgdisplay - increase size of VG

After getting error messages that I was running out of disk space, I looked at the disks and found that the output from fdisk (127.101 GiB) did not coincide with the output from vgdisplay (57.43 GiB). ...
undigit's user avatar
  • 51
0 votes
1 answer
632 views

How to mount a sparsed disk image

I have an image of the mSATA SSD disk of a PC. The disk contains the operating system and has a capacity of 512GB. I do not have that free storage, so I have cloned the disk into an image with dd ...
Fco Javier Balón's user avatar
1 vote
1 answer
2k views

Increase size of a volume group

I have a 16GB msata but my rootfs is only 4GB. I need to increase the size of a volume group /dev/mapper/vg-var/ for my embedded system to full capacity. $ lsblk NAME MAJ:MIN RM SIZE RO ...
void_brain's user avatar
0 votes
1 answer
31 views

revert logical partitions to original disk

I have a disk that somehow split into what appear to be logical partitions, but I am unsure. How to revert to the original disk? Here is the list of drives shown by fdisk -l: /dev/mmcblk0 /dev/...
colossalchicken's user avatar
1 vote
1 answer
293 views

Use free space to make a new filesystem

How would I go about using 50G of the free space from vg_root to make a new filesystem and then use that for /home nifle@rhel8box3 ~ $ sudo lsblk [sudo] password for nifle: NAME MAJ:MIN ...
Nifle's user avatar
  • 549
1 vote
0 answers
139 views

Problems after creating mdadm RAID-1: disk identifier 0x00000000 and same serial number on both disks

I need your help with a problem that I’ve been trying to solve for days now.  I recently purchased a Western Digital (WD) My Book Duo, and after setting it to make it work as two independent disks I ...
Shevek's user avatar
  • 31
6 votes
1 answer
845 views

fdisk reports partitions are misaligned even when they don't appear to be

I have a new 4 TB Western Digital SN850X NVMe SSD drive that I am trying to partition as a boot drive for Ubuntu 20.04. No matter what I do, fdisk reports that the partitions are misaligned, even ...
David's user avatar
  • 63
0 votes
0 answers
917 views

SD card shows up in dmesg, lsusb, and lswh, but not in lsblk or fdisk

Recently, my Android device has been unable to detect my SD card so I connected it to my PC (running Kubuntu) to figure out what's wrong. These are the results: dmesg correctly detects the card reader ...
Firewolf1024's user avatar
0 votes
1 answer
2k views

keep getting bad usage while trying to perform a partitioning and Formatting a Disk Drive in Linux

Disklabel type: gpt Disk identifier: 6C5A63BF-EF32-9244-8273-250775DB79D6 Device Start End Sectors Size Type /dev/sdb1 8704000 18874476 10170477 4.9G Linux filesystem /dev/sdb2 20480 ...
Brandy Robnett's user avatar
0 votes
2 answers
870 views

How do I find out what is the hard disk for OS in Linux

in our bash scripts , we have many places in the code that need to capture only the disk that related to OS ( operation linux/RHEL system ) we are using Linux versions as 7.2/7.5/7.6/7.9 , and on most ...
yael's user avatar
  • 13.4k
0 votes
1 answer
885 views

Looking for a way to correct Hard Drive geometry. # of cylinders is not correct

I have 2 hard drives that have become corrupted as in the # of cylinders is no longer correct. Not sure how this is happening, but have same hard drive model that I have verified the correct # of ...
Ronnie_g's user avatar
2 votes
1 answer
1k views

bash + how to automate creation of disk partitions in Linux

here is example from our rhel server machine lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 20G 0 disk /data/sdb sdc 8:32 0 20G 0 ...
yael's user avatar
  • 13.4k
1 vote
1 answer
88 views

Trouble understanding file partitions

I am trying to run fdisk on /dev/sda and create a new partition on /dev/sda3. I am not understanding what to do if no free sectors are available. I looked online and found different solutions and I am ...
Rogelio Cordova's user avatar
0 votes
1 answer
341 views

How to boot from new partition after do dd

I have 10 partition. My root (/) partition located on /dev/sda9 and my home (/home) partition located on /dev/sda2. I want to move my root partition (/dev/sda9) to /dev/sda5. So I copy my root ...
SannUlya's user avatar
0 votes
1 answer
240 views

Reclaim space on volume for bootable partition

I have a volume on Centos 8 that has 10G to spare: $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme1n1 259:0 0 80G 0 disk └─nvme1n1p1 259:1 0 80G 0 part /db nvme0n1 259:2 ...
Lucky's user avatar
  • 129
0 votes
1 answer
2k views

Debian - Create new partition with fdisk and set size ( Last sector )

please could someone help me with my problem of create new disk partition in Debian ? I'am using Proxmox where I have created a few virtual machines. On one of virtual machines where have installed ...
Filip Skřivánek's user avatar
0 votes
1 answer
804 views

How do I utilize entire OpenWRT SD Card for the installation?

I am trying to increase the size of my openwrt installation to take advantage of the entire SD card for more packages, but I am unsure where to start. I have tried following some other online guides ...
Jacob Miller's user avatar
1 vote
1 answer
666 views

Help with (corrupted?) flash drive

When I plugged in my “old” flash drive to my Windows desktop, it seemed that Windows 10 was unable to read the data on that USB stick. I checked W10's disk management and the drive's filesystem is “...
juoum's user avatar
  • 11

1
2 3 4 5
10