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.

310 questions
52
votes
2 answers

How do I create and tune an ext4 partition from the command-line?

PARTITIONING (e.g. fdisk) What are some useful commands used for partitioning an additional hard drive from the command-line? Since most published guides steer towards GParted and other graphical utilities, a summary of some command-line sequences…
gth
  • 1,443
  • 1
  • 12
  • 15
22
votes
3 answers

How to resize / enlarge / grow a non-LVM ext4 partition

I have already searched the forums, but couldnt find a good suitable answer: I have an Ubuntu Server 10.04 as KVM Host and a guest system, that also runs 10.04. The host system uses LVM and there are three logical volumes, which are provided to the…
Mischa
  • 325
17
votes
2 answers

Text User Interface for fdisk?

Is there a TUI for fdisk ? Where can I get it from and how can I use it? I would like one which is in the ubuntu repos
Amith KK
  • 13,547
15
votes
2 answers

How do I create a backup image of an SD card?

I have to copy my SD card to my hard-drive. I know that I have to mount and unmount it, but the following line doesn't work: dd if=/media/oneiric of=~/sd-card-copy.img That was my first try, but then I found out that I have to unmount my card and…
Adi
  • 153
15
votes
2 answers

How to remove /dev/loops

On my Ubuntu desktop, the command fdisk -l shows /dev/loopX up to /dev/loop23. I'm using gnome-fallback on Ubuntu 18.04 LTS. I'm wondering what possible effects these could have on performance and stabilty of the OS, and if they are just…
Karlom
  • 804
13
votes
2 answers

fdisk does not show boot flag

I normally use fdisk -l to look at partitions. I recently installed ubuntu 17.10 on a computer, and noticed that fdisk is not showing me the boot flag as it used to do. The output now looks for example like this Device Start End …
funklute
  • 233
12
votes
3 answers

What is the "Loop" partition in ubuntu?

I'm a new user to Ubuntu, to just installed and used the command sudo fdisk -l. I found out that my Windows partition is SDA and my ubuntu is loop. What is this loop thing?
Giovani
  • 121
  • 1
  • 1
  • 3
11
votes
1 answer

fdisk sector size and alignment issues

I executed the command: # fdisk /dev/sda1 The output was: The device presents a logical sector size that is smaller than the physical sector size. Aligning to a physical sector (or optimal I/O) size boundary is recommended, or performance may be…
10
votes
1 answer

Hard Drive Partition: Optimal Transfer Size

I have a Western Digital 4TB drive (WD40PURZ). It appears that the recommended procedure for partitioning the drive results with: "Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)" warning from the linux…
Mark W.
  • 155
9
votes
3 answers

File system has become read-only after updating to 15.04?

I stupidly decided to update from 14.04LTS to 14.10 and then 15.04. Since doing that, my website has gone down and file system has become read only. I have no idea what has gone wrong, as the updates completed successfully. This is what I have found…
9
votes
2 answers

Changes to SD card undone after re-mount (e.g. deleted files re-appear)

After having a corrupted file system on my SD card due (probably due to unsufficient power supply) I want to make a new filesystem. (e2fsck fails, log below.) However, any file-related changes on the SD card are magically undone! First example:…
chs
  • 193
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
7
votes
1 answer

USB stick not recognized by fdisk

My USB stick got corrupted. I am not even able to format it as it is not found properly by my OS (Ubuntu 16.04). What I tried: It is found by neither fdisk -l, lsblk nor gparted. It is shown by lsusb: > lsusb | grep Kingston Bus 004 Device 016: ID…
hobil
  • 71
  • 1
  • 1
  • 3
7
votes
2 answers

In Ubuntu ISO MBR, why does a GPT partition overlap the boot partition, and make MBR uneditable?

Question and context: In the MBR partition table of distros like for example ubuntu-16.04-desktop-amd64.iso, why does a GPT partition appear to overlap the primary boot partition? This seems to generate errors if I try, in any way, to edit the…
7
votes
2 answers

The state of partitioning tools?

What is the state of partitioning tools in Linux? Which tools are recommend and which should I stay away from? Namely I am interested in fdisk, cfdisk, sfdisk and the fdisk and cfdisk variants that come in the gnu-fdisk package. The "go to" solution…
Grumbel
  • 4,879
1
2 3
20 21