Questions tagged [fdisk]

fdisk is a utility present in many operating systems that perform partitioning on hard drives. There are versions of fdisk for Linux, DOS, Windows, FreeDOS and OS / 2. It handles DOS FAT partitions only.

Filter by
Sorted by
Tagged with
1
vote
0answers
18 views

LVM: Problems in adding disk to an existing Logical volume

I have a disk under a Logical Volume. $ lvdisplay --- Logical volume --- LV Path /dev/vg_prod/lv_prod LV Name lv_prod VG Name vg_prod LV UUID ...
0
votes
1answer
45 views

linux + how to extend sdd1 partition based on that sdd disk have enough space

We have rhel server 7.2 version ( VM machine ) with sdd disk sdd disk have parted partition sdd1 , and our goal is to increase the sdd1 partition to 10g from current 1K size From lsblk sdd ...
0
votes
0answers
61 views

How to enlargen a specific partition in Centos7 with several partitions

My /home directory quickly runs out of disk space, so I want to expand it from 32GB to 64GB. [me@centos7 ~]$ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7....
0
votes
0answers
25 views

Clone/Mirror Proxmox Drive into Another Proxmox Drive that uses GPT

A Proxmox VM (Xpenology DSM) currently has a 4 TB virtual hard disk that has the wrong partition table msdos. Instead, one with GPT should be used (to be able to resize it larger than 2 TB). How can ...
1
vote
1answer
33 views

How come I can't write to the last byte of the the last block?

I was doing some tests by writing random patterns of data at a block size of 512 bytes (the size of blocks on my drive) and dd fails at the last block saying that the device ran out of space. I was ...
0
votes
0answers
9 views

How to Remount EFI Partiton of Already Installed debian OS?

I earlier installed ubuntu, kali, mx Linux. Then due to disk space requirement deleted ubuntu and kali from windows. Also deleted efi partition for these Debian OS'es. Now i reinstalled ubuntu. From ...
0
votes
0answers
6 views

AWS CentOS 7 partitioning root folder to smaller directories

we have created a CentOS 7 VM on AWS and I am trying to partition the storage. We have a total of 200GB on the server and I want it divided into the following partitions and its mount points: root - ...
0
votes
1answer
30 views

Unable to Mount HDD Removed from NAS & Connected to Ubuntu via USB-SATA Adapter

I am trying to access data from a 8TB HDD that is removed from a non-functining QNAP NAS device. The HDD is connected to an Ubuntu 20.04 machine using a USB3-SATA adapter. When the HDD is connected to ...
0
votes
0answers
11 views

Broken partition table in cfdisk/parted/gparted while working with normal fdisk

I had a serious mishap with my partition table when trying to delete an extended partition from XP. It wiped out all extended partitions and the machine rebooted on the instance. I have sucessfully ...
0
votes
0answers
35 views

Is this USB flash disk dead ? Can't write and reads only zeroes [NOT DUPLICATE - READ IN FULL] [duplicate]

This is an old flash disk that I have not used in a while. It was a small drive I was planning to use for TinyCore Linux. I plug it in, and it does not show up in KDE Partition Manager. I query lsblk, ...
0
votes
0answers
30 views

gpart result - could harddisk start failing

A while ago the Windows7 main partition on my notebook's 500 GB harddisk got corrupted. Already did data recovery with testdisk v7.2WIP - it reported no issues reading sda2. Now I tried gpart, and the ...
0
votes
1answer
111 views

Does HP Proliant ML110 Gen9 Support SAS DISK

so i did Buy Proliant ML110 Gen 9 That have Dynamic Smart Array B140i Raid with inside in the first look the Server has 4 Disk port in the front that can connect to SAS Disk so i did buy 2 SAS disk ...
1
vote
1answer
94 views

How to wipe Chrome OS partition from Dual Booted Acer c720

Ok, I have a dualbooted Acer c720, with Chrome OS and Gallium OS. Gallium OS supports steam. I have been able to use blender on the Gallium OS partition. However, I want more space for projects. Is ...
0
votes
0answers
10 views

rhel + parted failed after increasing OS VM disk and rescan

we have VM rhel machine version 7.6 example from lsblk lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 300G 0 disk ...
0
votes
1answer
73 views

Resized Windows partition (using cfdisk) is treated as RAW by Windows

In an attempt to make room for my Linux installation, I did the following: Booted using a live Linux USB Used cfdisk to Resize the Windows partition Selected Write to save the new partition size ...
0
votes
0answers
23 views

How to increase the free space in a Volume Group in LVM after expend VM disk size

We want to increase the space in a Volume Group in our VM centOS server For example from pvs we see pvs PV VG Fmt Attr PSize PFree /dev/sda2 VLwol lvm2 a-- <100.00g <5.09g ...
0
votes
1answer
46 views

fdisk partition “n megabytes” less than total physical size

Is there a way to use fdisk to define a new partition that is e.g. "100MB less" than the maximum possible size? Background: Due to deviation between nominal disk size and physical disk size, ...
0
votes
0answers
57 views

Can I recover data from deleted hard drive partitions on a Windows 95-98 PC? [duplicate]

I have some old Windows 95-98 era PCs that I would like to recover data from if possible. They have all had the hard drive partitions deleted using 'fdisk' and have not been used since. Would it be ...
-1
votes
1answer
125 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 ...
0
votes
0answers
78 views

/dev/sdc1 not showing under /dev/sdc for my pendrive

I am trying to connect 16 DB kingston data traveller to my Ubuntu machine. This pendrive is not being detected in other machines. Thats why I tried to check it. When I issue a lsblk command, I am ...
0
votes
1answer
31 views

Does Windows remove files with invalid characters within name during disk repair?

I have some files on external HDD whose names contain ':'. These files work fine on Ubuntu but fail to open in Windows. Recently I tried doing a diskcheck on my external HDD and it poped-up that it ...
0
votes
0answers
66 views

HDD failure and format error, shows 4.1 GB instead of 1.86 TB

I have a Seagate 2.0 TB HDD. I had Ubuntu installed on it and grub on my SSD. I removed the cable when trying to change it. After that when I plugged it in grub showed the black error screen with grub&...
0
votes
1answer
55 views

How to rescue USB drives?

A dd command on CentOS 7 failed, and now my USB disk (/dev/sdf) cannot be written to. These are the outputs I get: $ lsblk /dev/sdf lsblk: /dev/sdf: not a block device $ lsblk NAME MAJ:MIN ...
0
votes
2answers
402 views

How to fix fdisk wrong partitions

I'm running dual boot of Linux Mint 19.2 Tina and Windows 10. I wanted to format my usb flash drive but when I open it with fdisk /dev/sdc and then type p i get shown partitions of my computer file ...
0
votes
0answers
16 views

Weird disk behaviour

Today I faced something completely strange. I run Windows 10 on a machine. On this machine I wanted to erase the internal HDD(not C drive) where just some data lays around. I booted into sparky linux ...
0
votes
0answers
25 views

Deleting Files and directories on a Solid State Drive (fdisk, dd, rm)

I have been reading for a while on how rm, fdisk and dd work. I wasn't able to fully understand their source code however. Let's assume I would like to delete my /dev/nvme0n1p3 partition and the files ...
3
votes
3answers
2k views

increased size of disk in a Virtual machine, but gdisk doesn't want to use the new space

I have a VM with a virtual disk (visible as /dev/sdb) with a size of 10G The admin increased the size of the virtualdisk to 60G. I rebooted the machine and see now, that the disk is bigger. root@...
0
votes
0answers
140 views

Geometry of USB Memory - heads per cylinder is 124

i have a USB Stick, and this stick has some problems, how to set up for it proper geometry TestDisk 7.0, Data Recovery Utility, April 2015 Christophe GRENIER <grenier@cgsecurity.org> http://www....
1
vote
0answers
23 views

Why BlockDeviceMapping does not create UUID?

In Linux machines, block devices have UUID Below is the CloudFormation template: "BlockDeviceMappings": [ { "DeviceName" : "/dev/sdf", "Ebs" : { ...
1
vote
0answers
77 views

How to create a partition with gdsik without naming it?

I'm currently looking for alternatives to graphical programs for partitioning my hard drive. So I'm searching for an easy command line tool for it. Since my hard drive has a GPT partition table the ...
0
votes
1answer
251 views

Understanding fdisk -l output on a virtual machine

I installed lubuntu on VirtualBox and allocated 10Gb fixed storage. Later, I made a copy of the machine and allocated dynamic storage of 20GB. I checked fdisk to see if it worked, but I don't ...
0
votes
0answers
403 views

“No valid partition table was found on this device.” + “Error: Can't have a partition outside the disk!” + fdisk reads “7.3T” Size; How do I fix this?

Distro: Netrunner Blackbird (Debian) I/O: Sata to USB cable KDE Parition Editor: "No valid partition table was found on this device." me@computer:~$ sudo parted -l Model: ATA LITEONIT LCT-128 (scsi)...
0
votes
0answers
13 views

Partition drive at runtime via commandline?

I am currently trying to write a bash script that when executed creates a new partition that is 100mb in size. However, I want to use the free space on /dev/sda1 - the parition on which the system is ...
1
vote
1answer
713 views

Why do Windows and Linux leave 1MiB unused before first partition? [duplicate]

When partitioning from scratch a USB Flash drive (8GB or larger) under Windows (diskpart) or Linux (gparted, fdisk) as Master Boot Record with a single partition, that partition usually starts at byte ...
0
votes
1answer
138 views

Why fdisk adds half kibibyte sometimes?

I'm trying to partition a 1440 KiB floppy disk image using fdisk (util-linux, v2.31.1). However, the tool is seemingly adding a 512-byte sector, no matter what units I use, and I can't tell why. ...
1
vote
4answers
466 views

3TB Western Digital Hard drive is showing only 2TB

I do not believe this to be an issue with formatting. Both Linux and Windows (64bit) see it as 2TB drive. However it is supposed to be a 3TB drive. It is in an enclosure, and I am wondering if perhaps ...
0
votes
0answers
149 views

Fdisk doesn't recognize Macbook's file system

I need to mirror a MacBook, which was functioning properly. But when I ran fdisk -l, I got this: Disk /dev/sda: 113 GiB, 121332826112 bytes, 236978176 sectors Units: sectors of 1 * 512 = 512 bytes ...
0
votes
1answer
124 views

How can I recover Linux partition which is mistakenly had fdisk run on it

I have a Ubuntu 18.04 system with two disk (/dev/sda1 /dev/sdb1). /dev/sdb1 is in ext4 format before. Someone ran the following command with default options: fdisk /dev/sdb1 How can I recover this ...
1
vote
2answers
319 views

Unable to Detect Size of Brand new Hard Disk

I just purchased a 8TB hard drive today. I just put it in my USB enclosure. fdisk -l did see the device: Disk /dev/sdc: 1404.5 GB, 1404493455360 bytes, 2743151280 sectors Units = sectors of 1 * 512 ...
1
vote
1answer
515 views

Extend a PV partition in Linux

I have a situation where there is ~300G available on /dev/sda and I want to extend a partition /dev/sda3 with the additional ~300G. However from what I read online if /dev/sda4 exists, I cannot ...
1
vote
0answers
569 views

USB Harddrive not working after being bumped during download

I recently bumped my external hard-drive whilst downloading to it, and now my computer seems unable to recognize it. Any help available to help me retrieve the data would be appreciated/worshiped. It ...
2
votes
1answer
6k views

How do I format an NTFS drive on CentOS 7 so that I can also use it in Windows?

We have a LIDAR system that collects data in the field. The computers that process the raw data are Windows computers so we use NTFS. However, the LIDAR system itself runs CentOS 7. Normally this ...
0
votes
1answer
63 views

Ubuntu detects half of external disk

I have a Virtual Machine that has 3 disks. The third one is 150Go size, I get this with sudo fdisk -l /dev/sdc: /dev/sdc1 2048 314572799 157285376 83 Linux However, df command ...
0
votes
1answer
3k views

Why disk partitions start at sector 2048 [duplicate]

I am learning to use fdisk. When I check free space in disk using F command it shows free space starts at sector 2048. But if i try to create new partition using n command It says I can start from ...
0
votes
0answers
226 views

How can I create 4096 sectors on an MBR drive to match the configuration of older drives in Linux?

Few years ago I bought 2 drives that came pre-formatted with 4096 byte sector and MBR partition table. Now I bought 3rd drive but as it's more recent revision it came preformatted to GPT. When I'm ...
0
votes
1answer
1k views

Unable to boot into bootcamp (Windows 7), due to resizing only OSX partition

I have a MacBookPro 2011, OSx 10.9.2, it is dual booted (using bootcamp). I followed this youtube video that shows how to resize mac https://www.youtube.com/watch?v=zhkdOLXT6Eg but after resizing ...
0
votes
2answers
341 views

fdisk -l | grep command with wildcard doesn't show results

Why commands fdisk -l | grep sd? fdisk -l | grep sd?? don't work in this situation and fdisk -l | grep sd[ab] works ?
0
votes
2answers
226 views

how to use the currently unused space on a virtual disk?

What we have? df -h Filesystem Size Used Avail Use% Mounted on udev 967M 0 967M 0% /dev tmpfs 200M 7.8M 192M 4% /run /dev/xvda2 28G 26G 180M 100% / ...
1
vote
0answers
2k views

Resize LUKS Partition

I have a 68 GB logical LUKS partition at the very end of a drive, and to the left of that I have 60 GB of free unallocated space. Both of these partitions together make up an extended partition. I ...
2
votes
1answer
2k views

How do I get the MBR Partition table with newest fdisk?

I need to examine the MBR part of a hybrid MBR/GPT USB Stick. My version of fdisk (fdisk from util-linux 2.29) lists the GPT partition table, which older versions of fdisk does not. Tried solutions:...