Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
47 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
43 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
52 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
551 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
47 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
399 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
58 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
156 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
94 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
107 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% / ...
0
votes
0answers
959 views

Resize LUKS Partition

Gparted image of my partitions. Have a 68G logical Luks partition at the very end of a drive, and to the left of that I have 60G of free unallocated space. Both of these partitions together make up an ...
2
votes
1answer
554 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
357 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
2k 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:\...
1
vote
1answer
2k 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
424 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
49 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
1k 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
941 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
408 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
35 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
698 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
2k 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
154 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
36 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
655 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
461 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
89 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
29 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
87 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
871 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
768 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
41 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
1k 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 ...
1
vote
1answer
69 views

Sanity check ext partition size?

I ran resize2fs on a ext4 linux partition and I want to create a partition after it. However I want to sanity check that the size I put into fdisk afterwards was correct. What's the best way to ...
1
vote
1answer
583 views

How to tell fdisk to erase the partition's content like GParted does?

I'm trying to write a script to do some proceedings with an USB pendrive, deleting any partitions it encounters and creating new ones (more in this link). When I do the proceedings using GParted, ...
6
votes
1answer
11k views

How to set a partition type to ef02 with fdisk?

Setting a partition's type to ef02 is easy in gdisk. You just type it. However, I could not find a similar type code in fdisk. I don't want to use gdisk, because it force convert my drive to GPT which ...
0
votes
1answer
590 views

sfdisk geometry warning / how to repair

I have problem with superblock in an ext4 disk : usr@rpb ~ $ sudo fsck -v /dev/sda fsck from util-linux 2.20.1 e2fsck 1.42.5 (29-Jul-2012) ext2fs_open2: Numéro magique invalide dans le super-bloc ...
6
votes
2answers
10k views

How to force partition to value out of range

I have an ubuntu desktop system (VM guest), whose partitions were created by the install media. I wanted to expand the disk, so I shutdown the guest, and increased the disk size of the guest in the ...
0
votes
0answers
529 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
0answers
908 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 ...
0
votes
1answer
2k views

Error regarding blockdev /dev/sdb1 “BLKRRPART: Invalid argument”

i had to extend an lv on an enterprise server that belongs to sdb1, i added/allocated the space i needed from the storage array. I rescanned the ports of SAN and then i wanted to blockdev --rereadpt ...
1
vote
1answer
1k views

Truncate empy space from a raw dd image

I have a raw disk image I took using dd of a Ubuntu instance. The total disk size is 300 GB, but only 5.5 GB used. Is there a way to resize the raw dd image down to 20 GB, keeping all of the 5.5 GB ...
-1
votes
1answer
225 views

EXT4 partition didn't get any free space after expansion

I have expanded the root partition on my Banana Pi using the following script: fdisk /dev/mmcblk0 <<EOF p d $PART_NUM n p $PART_NUM $PART_START p w EOF After a reboot I got a 32 GB partition ...
2
votes
4answers
1k views

How To Format A Disk Image To Be Recognized By MS-DOS?

I'm trying to emulate windows with bochs on my android device. I've got the following drives: an empty disk image to install windows on, a virtual vvfat drive with the setup files, and a cdrom drive ...
0
votes
1answer
2k views

Creating GPT partition using sgdisk on emmc 2GB

I am trying to partition my 2GB emmc using sgdisk to have a GPT partion table. The commands show success and also the GPT partition table looks updated (even on reboot) but the partitions are not ...
0
votes
2answers
834 views

mount root (/) again after mistake, without /etc/

I think I accidentally mounted /dev/hde1 to / after formatting another disk with mkdosfs -F 32 -I /dev/hde1 /dev/hdc1 should be mounted on / but now there is no way to remount it again since /etc/...
0
votes
1answer
230 views

Partition size from “df -h ” vs “fdsisk -l”

Partition size using "df-h" Filesystem Size Used Avail Use% Mounted on /dev/sda5 19G 17G 516M 98% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev ...
2
votes
2answers
743 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....
0
votes
1answer
1k views

SSD Not Detected - Fallback on EFI Shell

Want to assess what are the odds of a hardware failure in a particular case. I have a laptop with an Intel SSD (160GB). I just installed Windows 8.1 on it and all was working fine, up until the point ...