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
0
votes
0answers
13 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
18 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 ...
0
votes
0answers
38 views

unable to convert MBR disk to GPT error: main partition table overlaps by 33 block

I've got a MySQL DB running in EC2 that I've had to continually add space to the EBS volume, then grow it (using growpart/xfs_growfs). I finally hit 2TB and couldn't figure out why I could no longer ...
2
votes
3answers
435 views

increased size of disk in a Virttual 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
28 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
22 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
42 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
79 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
88 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
236 views

Couldn't find all devices for LV - PV Unknow error

I'm currently struggling on a topic about LVM on a CentOS VM. I recovered the VM as it was, and I don't understand the problem. I suppose that someone tried to add disk space, but that went wrong at ...
0
votes
0answers
12 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 ...
0
votes
1answer
84 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
113 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
3answers
217 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
130 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
62 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
150 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
357 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
300 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
5k 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
60 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
2k 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
159 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
391 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
246 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
213 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:...
3
votes
0answers
647 views

linux fdisk doesn't allow to re-create partition starting at the same address

I have a partition which is too small for it's needs, so I want to recreate it as a bigger partition. For this I want to delete it first, and than create it again, starting at the same address, but ...
1
vote
2answers
3k views

Can't run fdisk on Cygwin when it is installed

I can't run fdisk on Cygwin, either outside or inside of the directory that contains it, despite confirming that: fdisk.exe exists inside of /sbin, via both the command line and Windows Explorer C:\...
2
votes
1answer
5k views

Manjaro Linux on laptop cannot see SD card

The dmesg output: [ 9376.684650] mmc0: card 59b4 removed [ 9378.738987] mmc0: cannot verify signal voltage switch [ 9378.859232] mmc0: new ultra high speed SDR104 SDHC card at address 59b4 lsblk and ...
0
votes
1answer
829 views

USB Flash drive listed by lsblk but fdisk/gparted fails to open

Background: I want to dd an .iso to the device and then boot from it. The USB Flash Drive seems to be corrupted in some way. Here is what I know so far: Ouput of dmesg | grep -i usb contains the ...
0
votes
0answers
67 views

where can I get the default cylinder start position to create new partition?

So I have two partitions, I deleted the 2nd one, then want to re-create it. My work is to automate this process. But after I deleted the 2nd partition the default suggested start cylinder from fdisk ...
1
vote
1answer
2k views

dd Copy partition image file into disk image file

I am creating a disk image and copy a mbr on it: dd if=/dev/zero bs=2M count=256 > ./hd.img dd if=mbr.bin of=hd.img conv=notrunc sfdisk --force ./hd.img < partitions.sfdisk where partitions....
0
votes
3answers
2k views

SSD shown as 1073MB (instead of 256GB)

I've an issue with an SSD of mine. It's been a while since I haven't used it. I don't really remember what was on it (probably a linux distrib), I mostly used it to try stuff and boot random computers....
1
vote
1answer
551 views

GPT - property of a disk drive or of a partition table?

I always thought that GPT is the way how you write partition table to a disk and you're free to do it however you like. But when I called fdisk -l for my external drive (connected through USB-port), ...
0
votes
1answer
43 views

Option whose purpose is unknown even for the man page writer

Every now and then I end up messing with my disks and I have to use fdisk. I have noticed however, that the option -C or --cylinders has a particular description: "Specify the number of cylinders of ...
1
vote
2answers
2k views

How to create a partition table on a drive with a file system occupying the whole drive?

I have a 4TB hard drive /dev/sdb, which has a formatted NTFS filesystem occupying the whole drive. It apparently has no partition table of any kind, or if it does, it is out of date or corrupted. ...
0
votes
1answer
6k views

Quickest way to format a disk with Linux?

It's for a bash/shell script. Basically, I want to format, or erase a USB (or SD) storage device; with a single command line. I was going to use fdisk, but it seems to require user interaction ...
0
votes
1answer
250 views

unix fdisk: get a device string knowing its system

I'm attaching an NTFS disk to RHEL. To mount it, I need to know the partition name, which I will later use in the mount command. I need to get a string with a Device name, knowing what System its ...
0
votes
0answers
50 views

Why mkfs-like commands seems to be the “commit” for creating new partitions with fdisk?

I don't understand this logic behind storage devices: if I delete all the partitions and create new ones with fdisk and fdisk don't report any erros, why reconnecting the device causes a mounting just ...
2
votes
1answer
995 views

Do I have sector size issue on my hard drive?

I have performance hard drive issue so I decide to look my drive when I type: sudo fdisk -l -u=sectors I have the following output: Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors ...
-2
votes
1answer
934 views

What is the maximum disk capacity support for fdisk?

What is the maximum disk capacity support for fdisk? Although we know we can't create partition larger than 2TB. Can we create three primary and 5 logical partitions out of 8TB disk?
0
votes
0answers
140 views

Did I destroy my USB stick? (Invisible when plugging in, lsusb works.)

I tried to create a multiboot USB following this tutorial: http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/#more-5352 But Instead of getting a bootable USB I am not ...
1
vote
0answers
30 views

Possible USB pendrive hardware corruption [duplicate]

I have a USB pendrive, with 8 GB storage, and recently I tried to open (mount) it and wasn't able to ("bad superblock" error message). I tried to format it directly using dd and fdisk but no success. ...
2
votes
1answer
104 views

Wrong filesystem when formatting a USB stick (linux)

I used a USB stick to install a Linux distribution. Then i wanted to re-used this usb for personal data. I remove the iso signature with wipefs -a /dev/sdb then fdisk /dev/sdb I typed o to create ...
0
votes
1answer
2k views

Reclaim 100GB on disk not “seen” by fdisk but shown in parted

I am running Ubuntu 14.04 and am using lvm for the root and swap partitions. When I use parted ( or gparted) I see 110GB unpartitioned on /dev/sda . hari@Ubuntu02:~$ sudo parted /dev/sda unit GB ...
0
votes
1answer
998 views

How to create a primary NTFS partition on Raspberry Pi 3?

Questions: How to create a primary NTFS partition on Raspberry Pi 3? Context: I'm trying to create a new primary NTFS partition on an external drive on Raspberry Pi 3. Normally, I could use fdisk to ...
0
votes
0answers
44 views

Error when tried to install 3 operation systems

I would like to have 3 Operation Systems on my Hard disk drive ,namely 2 Linux (e.g. Ubuntu and Debian) and 1 windows(e.g. Windows 7). How should I partition my HDD? (Which file systems and What ...
1
vote
2answers
2k views

What flash drive geometry depends on? Can I change it on my preference?

I have an USB flash drive. Here is its initial info generated by fdisk (Linux): # fdisk -l /dev/sdc Disk /dev/sdc: 8053 MB, 8053063680 bytes 16 heads, 60 sectors/track, 16384 cylinders, total ...