fdisk command-line utility that provides disk partitioning

learn more… | top users | synonyms

10
votes
3answers
48k 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 ...
4
votes
3answers
3k 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?
4
votes
1answer
6k 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
2answers
737 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 ...
3
votes
1answer
298 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
6k 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
2k 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
2answers
59 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
1k 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
3k 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
273 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
168 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
2answers
2k 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
1answer
732 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 ...
2
votes
2answers
5k 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
166 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
4k 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
213 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
2answers
158 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
626 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
141 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
7k views

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

I am quite new to Ubuntu and i have to copy my SD-Card to my hard-drive I know that i have to mount and unmount it but i have the problem, that the following line doesnt work: dd if=/media/oneiric ...
1
vote
1answer
85 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
1answer
2k 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
120 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
3k 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
4k 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
546 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
50 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
323 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
75 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

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
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
29 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
2answers
1k 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
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
176 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
628 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
61 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
51 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
197 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
12 views

Mounting disk being used on RAID

I have a server with two 2 TB drives (so 4 TB total capacity). But because of RAID only 2 TB is available for storage. I would like all 4 TBs to be available for storage. This means disabling RAID and ...
1
vote
0answers
20 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 ...
1
vote
1answer
3k views

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

Installing 13.10 alongside preinstalled Windows 8

I followed this guide to a T: http://www.everydaylinuxuser.com/2013/09/install-ubuntu-linux-alongside-windows.html However, when I get to step 6, I just see my /dev/sda and it says it's completely ...
1
vote
1answer
472 views

USB shows up as two drives!

I was given a free 1GB USB at an event a few months ago - however, when I plug it in to my Ubuntu laptop, the USB shows up as two drives (/dev/sdb and /dev/sdc). I have checked it isn't just ...
1
vote
0answers
214 views

How to expand the ext4 partition of virtualized Ubuntu running on top of CentOS/QEMU?

My company is running Xen--VMs run on top of CentOS/QEMU. Recently a customer using virtualized Ubuntu asked that his HDD space be increased. Now, with Windows, this is a joke. You type the new size ...
1
vote
0answers
80 views

my external HDD has stopped working Need help to backup the files

I have got a 320gb external hdd (seagate) and few days ago it stopped working.. when connect to a PC i can see the hdd is connect but can not view the files inside it... when used in windows 7 OS the ...