Stack Exchange Network

Stack Exchange network consists of 175 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
3answers
56 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
27 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
36 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
71 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
48 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
66 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
934 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
53 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
527 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
63 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
159 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
113 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
118 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
1k 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
663 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:...

15 30 50 per page