fdisk command-line utility that provides disk partitioning

learn more… | top users | synonyms

11
votes
3answers
65k views

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 ...
6
votes
2answers
2k views

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 ...
5
votes
1answer
21k views

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 ...
4
votes
3answers
4k views

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?
3
votes
1answer
404 views

How to get rid of a zero-size invisible partition left after deleting Windows boot partition

Computers sold with pre-installed Windows 7 have a small "System Reserved" boot partition at the beginning of the disk which is not really necessary as Windows can boot alone or alongside Ubuntu ...
3
votes
2answers
7k views

mkfs.vfat: unable to open /dev/sdg1: Device or resource busy

I am using a script from http://www.angstrom-distribution.org/demo/beagleboard/ that uses mkfs.vfat and mkfs.e2fs to create 2 partitions on a sd card but I get mkfs.vfat 3.0.12 (29 Oct 2011) ...
3
votes
1answer
4k views

After making partition, I couldn't see device (/dev/sda3)

I made a partiion sda3 using fdisk, but after that, I don't see /dev/sda3. If I fdisk -l, I see this. test@jylenovo:~$ sudo fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 ...
3
votes
1answer
929 views

cannot format a fat filesystem, getting error “Both FATs appear to be corrupt. Giving up.”

I am trying format an FAT (or FAT32) file system on my ubuntu system, but I am not able to format the device, each time I am getting the error Both FATs appear to be corrupt. Giving up. I have tried ...
3
votes
2answers
98 views

Used dd to backup a disk, now want to look at the filesystem

I dd copied /dev/sdd sudo dd if=/dev/sdd of=backup.img sudo fdisk backup.img Command (m for help): p Disk backup.img: 143.3 GB, 143274860544 bytes 61 heads, 35 sectors/track, 131069 cylinders, ...
3
votes
1answer
2k views

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 ...
3
votes
1answer
4k views

swapon --all --verbose : 'read swap header failed: Invalid argument'

Recently ran through EnableHibernateWithEncryptedSwap and ran the following command: swapon --all --verbose and received: 'read swap header failed: Invalid argument' How do I fix this? Here's some ...
2
votes
2answers
517 views

Not enough space to build proposed filesystem while setting up superblock

Just bought a new external drive. Plugged it in, erased current partition using fdisk and created a new extended partition using fdisk. Used all the defaults for start and end blocks: I then try to ...
2
votes
1answer
211 views

where did my 766 kb in partition go?

I used fdisk -l and saw this. Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size ...
2
votes
1answer
1k views

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
2
votes
1answer
32 views

Repartition drive without caring what's on it

I've got a microSDHC which appears to have a broken partition table. When I plugged it in there where a lot of folders and I was able to copy some files of it. But most files had a filesize 0 and most ...
2
votes
2answers
3k views

Ubuntu 12.10 - where are block devices of whole disk /dev/sda /dev/sdb

I have server in OVH with newest Ubuntu 12.10, but where are block devices of whole disk? root@ns:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 222G 2.4G 208G 2% / ...
2
votes
2answers
6k views

Resize a 2TB partition on a 3TB disk created with fdisk

I recently added a new 3TB hard drive to a headless media server (HP proliant microserver) running Ubuntu server 12.04. I followed this tutorial, which uses fdisk to create a single partition of the ...
2
votes
1answer
406 views

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?
2
votes
1answer
6k views

My WD 1TB external HDD is not mounting

I am getting this error when I click on devices list: DBus error org.gtk.Private.RemoteVolumeMonitor.Failed: An operation is already pending and when I remove the device, it says: Error mounting: ...
2
votes
1answer
218 views

How much space do I need to create a backup with fsdisk

I get this error when mounting a drive [ 4337.380506] EXT4-fs (sda): bad geometry: block count 156282966 exceeds size of device (156282701 blocks) So if I try to fix it with sfdisk do I need space ...
2
votes
0answers
96 views

Why doesn't this custom created usb drive image mount?

I'm trying to mount a custom usb drive image created with fdisk. This is how I created the image: Created a file of the exact same size of an old usb drive image used as a model: dd if=/dev/zero ...
2
votes
2answers
189 views

Having trouble with mounting the hardisk

My Seagate USB hard disk won't mount. fdisk -l reports: Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * ...
2
votes
1answer
781 views

Increase size of partition (ext4) or automount it

I wish to increase size of my / partition (current size 21 GB), is that possible somehow? I have more free space available, but don’t know how to add it into the existing partition. I have created a ...
1
vote
2answers
194 views

what does the fdisk output mean

what does sudo fdisk -l mean? This is the output. I installed win7 and ubuntu. Using fdisk, I got four partitions. What does each partition mean? which one is ubuntu? which one is win7? Thanks !
1
vote
2answers
1k views

FDISK Logical Partition

I have tried to create a logical partition via Fdisk for a flash drive. The problem is that I choose the option -n to create a partition, of course , and fdisk gives me only two options "extended and ...
1
vote
1answer
10k views

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 ...
1
vote
1answer
443 views

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) ...
1
vote
1answer
108 views

how to mount file type

I have recently imaged some floppy disks to img files. the disks had some bad blocks. So I am trying to figure out the File system type, so that i can mount, and repair the files. I tried $ sudo ...
1
vote
2answers
2k views

How can i skip bad sector on my hard Drive?

I have one external hard drive which i plug to my linux machine. It causes read and write operation problems. When i check it with fdisk -l it wait for information to display for while. After few ...
1
vote
1answer
3k views

Why is my “sudo fdisk -l” output so messy?

How do I fix this and is it even a problem. sudo fdisk -l Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * ...
1
vote
1answer
128 views

Recovery after installing ubuntu

I know this question has been asked many times and even I have asked it once...But as today I came to know about fdisk so thought of posting it so that someone having good knowledge can help me ...
1
vote
2answers
4k views

How to install gpt fdisk 8.4 in Kubuntu 12.04

I'm using Kubuntu 12.04 (64bit). The Ubuntu repos contain gpt fdisk 8.1 which is not the latest. The latest version is 8.4 and it contains some bug fixes I want to have. I downloaded the latest deb ...
1
vote
1answer
5k views

how to completely reformat a usb using fdisk?

I have a usb drive which I would like to put a linux distribution on but it already has some files on it on /dev/sdc1. Using fdisk, I deleted the first partition and wrote the changes. When I ...
1
vote
1answer
638 views

MP3 Player: “This does not look like a partition table”

First of all, I'm not sure if this belongs on AskUbuntu. I'm sorry if it doesn't. When I ran sudo fdisk -l I get some messages that worry me. This is the output: > robin@robin-Latitude-D620:~$ ...
1
vote
1answer
51 views

Can't resize partiton on Lexar USB drive

Strange reading from fdisk... ~# fdisk -l /dev/sdd1 Disk /dev/sdd1: 29.2 GiB, 31378272256 bytes, 61285688 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / ...
1
vote
1answer
98 views

Question about sudo fdisk -1

I've been trying to mount an external HDD to my ubuntu server (14.04) but when I try to use the sudo fdisk -1 function it tells me that its an invalid option, is there any way I can fix this? Or any ...
1
vote
2answers
420 views

Problem when creating new partitions?

I've created a new disk partition by sudo fdisk /dev/xvda1 and the following commands: n p 1 Enter Enter w After, when I want to change the partition system file into xfs by sudo mkfs.xfs -i ...
1
vote
1answer
77 views

Which files refer to unallocated partition?

# fdisk -l Disk /dev/sda: 34.4 GB, 34359738368 bytes 255 heads, 63 sectors/track, 4177 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes ...
1
vote
1answer
1k views

Instructions to mount an internal hard drive?

How do you mount an internal hard drive? I have a 500GB internal hard drive that has both linux and windows 7. Upon booting up I decide which one to use. My windows 7 OS has a user, which requires ...
1
vote
1answer
116 views

Intermittent - Error: No space left on device

Having intermittent issues when starting and stopping searches. I get a Error: No space left on device intermittently. Have done some searches and most fixes are related to inodes, which you can ...
1
vote
1answer
66 views

Weird NTFS partition display

I just installed Ubuntu 14.04 on my PC next to Windows 8.1. I have a second HDD which I use to save my documents etc... I have partitioned the disk (SDB) in four NTFS partitions (I made them in ...
1
vote
1answer
86 views

Add Ubuntu live to another ubuntu+windows system

I've got Win7 in a ntfs-partition and lubuntu 12.10 in another one. **sudo fdisk -l** Disco /dev/sda: 160.0 GB, 160041885696 bytes 255 cabezas, 63 sectores/pista, 19457 cilindros, 312581808 ...
1
vote
1answer
2k views

Raid Shows Up as Multiple Drives - Can't Mount

I have a single hard drive that the OS is installed on and I have Sil raid card installed with two matching 500GB hdds set up in Raid 0 and formatted- they're completely empty. For whatever reason ...
1
vote
2answers
190 views

Missing space in Win95 fat32 partition

I'm trying to set up an 8GB USB drive a persistent live boot. The tutorial I am using told me to use fdisk and create two partitions. The first partition is supposed to be just large enough to hold ...
1
vote
1answer
711 views

LVM tries to de-activate in use volume at shutdown and partition alignment concerns

Is it okay to have root file system on a lvm2 logical volume? Because, I always get the following error on every time I reboot or shutdown the machine. Can't deactivate volume group "vgSystem" with 1 ...
1
vote
1answer
119 views

Create new partition with fdisk [closed]

I have Ubuntu 14.04.2 LTS (32-bit) running in VMware Workstation 10.0.3 build-1895310. I have just modified the Virtual Machine Settings, expanding the Hard Disk from 20 GB to 30 GB. So I would like ...
1
vote
1answer
215 views

Hard drive reporting wrong size

I have a 1TB Hitachi drive that has been working just fine. I had to repartition it into vfat because a co-worker's Mac drive was dying and I needed to copy what I could. He took the 1TB drive home ...
1
vote
0answers
117 views

Gparted and installed don't see partitions after boot-repair

I'm trying to fix my friend's computer after it got borked by a power surge. It can boot fine from USB, but if you boot the disk, it makes it to grub and then fails no matter which you select. He had ...
1
vote
0answers
445 views

Fix write-protected(read-only) filesystem

I made bootable usb drive , then USB drive was write protected. I used followng command hrirks@hrirks-MS-7592:~$ sudo fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 ...
1
vote
0answers
24 views

Lv not showing correct in fdisk

I am working on a project with iscsi to create a iscsi-target and initiator. Right now i made a logical volume which looks like this: But when I do fdisk -l it shows: The problem is why does it ...