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.
70
questions with no upvoted or accepted answers
3
votes
0
answers
2k
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 ...
2
votes
0
answers
2k
views
linux. extend partition space with unallocated space BEFORE it
I have a dual boot (win + ubuntu).
How I can extend the disk space of /dev/nvme0n1p6 (Ubuntu, is a partition of the current OS) with preceding free space?
I tried to do it with GParted but the right ...
2
votes
2
answers
2k
views
Can't see Linux fdisk created GPT disk partitions in Windows 7 (64-bit)
I just added 2 new disks (only for data, no OS booting) and had them set up equally with GPT and equal partitions, to use the partitions as RAID1 in Arch Linux, and the rest of the storage for Windows....
1
vote
1
answer
2k
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 ...
1
vote
0
answers
57
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
0
answers
285
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 ...
1
vote
0
answers
752
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 ...
1
vote
0
answers
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 ...
1
vote
1
answer
2k
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 ...
1
vote
0
answers
1k
views
Recover mdadm raid5 with XFS
I am trying to recover data from an old Buffalo Terastation that failed. A previous attempt to recover the data by someone else was unsuccesful and I have been left with the following situation.
NB: ...
1
vote
0
answers
1k
views
managing disk using fdisk utility
i m new to fedora, I want to create 8GB disk and then want to make three partitions with different sizes.
-first partition with 8MB
-Second partition with 192MB
-Third partition with 7.8GB
but it ...
1
vote
0
answers
598
views
Combine free space Ubuntu
I want to "merge" or combine a free space that i have on my main Ubuntu partition, i have tried with Gparted but i can't resize the main partition. This is the results of fdisk -l:
Device Boot ...
1
vote
0
answers
167
views
Safe to blank MBR of a disk after adding it to an RAID1 array with mdadm?
I created a RAID1 array of two disks, /dev/sda and /dev/sdb, using mdadm. After several booting problems related to the BIOS and SATA/RAID controller of the board, I accidently created some new ...
1
vote
2
answers
3k
views
Kali/Ubuntu doesn't detect windows partition
I am trying to dual boot Windows 7 with Ubuntu or Kali Linux but i am unable to do so.
I have backed up all my data to an external hard drive. So it is safe to work with partitioning.
I have a 500 ...
1
vote
1
answer
416
views
partition table looks different between Linux and Windows
I'm having some odd issues after deleting and resizing an NTFS partition with Gparted. Windows doesn't seem to see the same partition table as Linux.
At first, the deleted partition showed up as 0-...
1
vote
1
answer
1k
views
Add new partition under raid-1 array
I have small /tmp partition, and I want to create new partition with size 10 GB than current one, I have two hard disk on raid-1 array
# mdadm --query --detail /dev/md0
/dev/md0:
Version : 0....
1
vote
0
answers
164
views
Problem with Reinstalling Windows xp
I'm tring to reinstall Windows xp but I keep getting the message that "This CD contains a backup of the software originally installed on an HP Pavilion PC and can only be used with an HP Pavilion PC. ...
1
vote
3
answers
264
views
Start Anew with my USB stick
This story starts with me taking my USB stick to work
and unplugging it by accident in the middle of a file transfer.
The USB stopped working completely, now I have Linux Ubuntu on my Laptop at home ...
0
votes
1
answer
200
views
Resize an OpenBSD *fdisk* partition
I have cloned an OpenBSD qemu image into a physical hard drive and everything works but the fdisk partition dedicated to OpenBSD has the same size it had in the virtual machine and most of the excess ...
0
votes
0
answers
211
views
after power breaks, gparted / fdisk reports that ssd disk has incorrect table. How to fix it
After power breaks, gparted / fdisk reports that ssd disk has incorrect table. How to fix it
In every power break, same thing happens. ssd is off and gdisk says that the table exceeds disk limits. I ...
0
votes
1
answer
149
views
No bootable deive found for Fedora after moving partitions
As a word of caution: I am inexperienced and moved some partitions around when attempting to dual boot windows from Fedora, I didn't take note of what I was doing and so only have my current ...
0
votes
1
answer
79
views
Ran fdisk on wrong disk which was part of an LVM
I wanted to add space to an LVM so added a Virtual disk to my Ubuntu 20.04 Virtual Machine.
The VM already had 3 disks
/dev/sda 32.2GB # OS Disk
/dev/sdb 537GB # Data Disk, part of the LVM: ...
0
votes
0
answers
1k
views
Can't mount external USB drive. mount: /dev/sdd1 is already mounted or /mnt/sdd busy
I'm trying to mount my external hard drive with this command on my Citrix hypervisor;
mount -o rw /dev/sdd1 /mnt/sdd
But I'm getting this error:
mount: /dev/sdd1 is already mounted or /mnt/sdd busy
...
0
votes
0
answers
59
views
Mapping of Disks and underneath "Primary/Logical" Partition(s) by Unix Terminal Prompt Commands and GRUB Prompt Commands (With GRUB Naming Convention)
In Unix ("Ubuntu/lUbuntu") how do I find mapping for Disk + Logical and/or Primary Partition Information between the "ls" output at "GNU GRUB Bootloader Prompt (GRUB Prompt) ...
0
votes
1
answer
69
views
Expanding the boot drive in a Linux virtual machine without unmounting it
I wanted to know if I can expand the boot drive of a Linux machine (/dev/sda1) without unmounting it or without using any external tools (like bootable live CD or GParted disk).
I basically have a ...
0
votes
0
answers
67
views
Broken Partition table
So I have a ssd disk and somehow the GPT partition table got removed.
From that moment, when I plug disk in, disk is still connected (image below) but when I try to access it through diskpart, it's ...
0
votes
1
answer
55
views
How do I format a pendrive quickly, with a simple one-liner, from command line?
How do I repartition and format a pendrive quickly, with a simple one-liner, from command line?
I would like to do something like this:
$ format /dev/sdb
which would destroy the existing partitions, ...
0
votes
1
answer
369
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
0
answers
150
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
0
answers
622
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 ...
0
votes
1
answer
1k
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
1
answer
1k
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
0
answers
728
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
1
answer
149
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
0
answers
240
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
1
answer
146
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
0
answers
55
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
0
answers
222
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
0
answers
1k
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 <[email protected]>
http://www....
0
votes
1
answer
747
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
0
answers
930
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
0
answers
33
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
0
answers
416
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
1
answer
724
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 ...
0
votes
0
answers
475
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
1
answer
2k
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
0
answers
135
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 ...
0
votes
0
answers
75
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 ...
0
votes
0
answers
275
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 ...
0
votes
0
answers
48
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 ...