Questions tagged [fdisk]

fdisk command-line utility that provides disk partitioning

fdisk (for "fixed disk") is a commonly used name for a command-line utility that provides disk partitioning functions. fdisk writes the master boot record.

304 questions
9
votes
3 answers

Why "fdisk -l" does not give any output in terminal?

When I do fdisk -l in terminal there is no output? What can be the probable reason? How to fix it?
Chirag
  • 2,099
6
votes
2 answers

cannot create a partition table on /dev/sdb

when I'm trying to create a partition table on my 8gb sd card, its showing this error: fdisk: unable to read /dev/sdb: Input/output error I have used sudo fdisk -l , there the /dev/sdb is not listed, what should I do? please help me .
Tanmoy
  • 71
3
votes
1 answer

Fdisk new disk size

I am using ubuntu 20.04 and I want to create new partition disk with exactly 500 MB. However, the fdisk adjusted it to 512MiB is there any way that I can create exactly 500MB disk size? ric@Eric:~/Downloads$ sudo fdisk /dev/sda Welcome to fdisk…
1
vote
2 answers

How does fdisk tell me which port a usb stick is mounted to?

I am trying to create a bootable USB stick using the sudo dd command, but using fdisk -l to find out which USB port the device is , I don't know how to interpret the output. My computer is a HP Compaq nc6220, with 3 USB ports. This is the output I…
1
vote
1 answer

fdisk -l shows my drive as /dev/sdb not /dev/sdb1

So fdisk -l shows it as /dev/sdb. Shouldn't it be showing as /dev/sdb1? ...or perhaps /dev/sdb0? What I'm up to is adding a drive to my system. Everything else is LVM so that is what I want here too. I've already figured out how to create the…
1
vote
1 answer

why fdisk doesn't show free space and cfdisk does?

root@mik-Aspire-E5-571:~# lsb_release -a|grep Ubuntu Distributor ID: Ubuntu Description: Ubuntu 15.04 root@mik-Aspire-E5-571:~# root@mik-Aspire-E5-571:~# fdisk -l /dev/sda Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors Units:…
Mik
  • 11
  • 1
  • 2
1
vote
3 answers

sudo wipe command in terminal error

I did the command sudo wipe /dev/sdb where /dev/sdb is my 1TB HDD and I got a "command not found" message. How would I be able to prepare the drive for new OS? Wipe it, I mean. Thanks
1
vote
0 answers

Why fdisk disk size use 1000 not 1024 to calculate?

Possible Duplicate: Why is my storage partition xxGB, when Disk Utility, and Gparted say otherwise? I found that 429496729600 bytes change to 429.5 GB is calculated by 1000. But Units = sectors of 1 * 512 = 512 bytes. Why 429.5 GB not calculated…
sam
  • 6,831
1
vote
1 answer

Wipe mode not working in fdisk command

Does anyone know what it means when the 'fdisk' command returns 'unsupported wipe mode' when trying to delete data on a USB drive? My command was 'sudo fdisk -W /dev/sdb'. I know there are other ways of doing it with 'dd' for example but was…
podjv
  • 39
0
votes
1 answer

Merge partitions (that aren't next to each other)?

All, So I've already read through quite a few threads, but didn't quite find an identical situation. I have 4 partitions, and I want two. I'm running Ubuntu 10.04.1 LTS. I have gParted installed (KDE wm) and tried to re-size the partitions, but it…
0
votes
1 answer

How should I interpret this fdisk output?

My main hdd seems to have two partitions over the same disk space. Are /dev/sda2 and /dev/sda6` overlapping? How should I interpret this fdisk output? Have I screwed up my installation? allan@xxxxxxxx:~$ sudo fdisk -l Disk /dev/sdb: 3.64 TiB,…
-1
votes
1 answer

how to format a USB-Drive with fdisk?

I want to format a USB-Drive (/dev/sdc) and make multiple partitions each of a different type using fdisk. My fdisk uses sectors(not cylinders) to create a new partition. /dev/sdc1 <- NTFS (10GiB) /dev/sdc2 <- Fat32 (04GiB) Can someone please…
devilz
  • 169
  • 1
  • 3
  • 16
-1
votes
1 answer

how to know partitions size

I entered sudo fdisk -l now I want to know how much of my hard disk belong to this partition: Device Boot Start End Blocks Id System /dev/sda2 156264318 273474494 58605088+ 7 HPFS/NTFS/exFAT
Mohammad Reza Rezwani
  • 10,286
  • 36
  • 92
  • 128