fdisk command-line utility that provides disk partitioning

learn more… | top users | synonyms

2
votes
2answers
9k 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 ...
0
votes
1answer
34 views

Gap between sector 1-2048

The MBR size is 512 bytes and is usually in the first sector. What is the gap between sector 1-2048? I read on IBM website: "leave room for bootloader code in the unallocated space between the MBR ...
0
votes
1answer
5k views

no media detected on a usb flash drive

I have a Kingston DT MicroDuo 3.0 and it was working fine till it didn't mount on Windows, Mac nor Ubuntu It appears in the disk utility as /dev/sdd and in the volumes area it shows no media detected ...
3
votes
1answer
96 views

How to create a new partition in Ubuntu 14.04? [duplicate]

I'm currently using Ubuntu 14.04. It's showing the whole hard drive as single partition. I need to split the drive into different partitions. How can I accomplish this, preferably via the terminal?
1
vote
1answer
105 views

Automated Shell script to run fdisk command with user input

I'd like to create a bash shell script that can run commands and provide input as if I was typing it on the terminal. I have written bash shell scripts before and understand how to but I'm a bit ...
1
vote
1answer
2k views

How use wipefs with fdisk msg (15.04)

I have a 2TiB disk with exFat video on. I discovered that fdisk gives this message: Welcome to fdisk (util-linux 2.25.2). Changes will remain in memory only, until you decide to write them. Be ...
4
votes
1answer
1k 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 ...
0
votes
1answer
53 views

fdisk not showing partition, parted does

I just noticed when doing a fdisk -l /dev/sdl that my partition is not shown: Disk /dev/sdl: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (...
0
votes
1answer
74 views

Different file system types in fdisk; no HPFS/NTFS

I am running Ubuntu 15.10 and trying to format a USB drive to load a Windows ISO on. Every tutorial has you install ntfs-3g so that you can format to NTFS using fdisk, hex code 7. But when I go to ...
0
votes
0answers
35 views

LiveUSB install ubuntu-14.04.4-server-amd64 inconsistent results

Ok folks, I need your input please, I've spent a week on this one. There are a few things going on and I am not sure of the exact issue so I will detail the whole problem. My company got a demo unit ...
0
votes
1answer
54 views

Error message on 5TB Harddisk: Partition 1 does not start on physical sector boundary

I bought a Wester Digital Green 5TB harddisk and have difficulties to format it. fdisk -l shows the following message: WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk ...
2
votes
0answers
34 views

What is the partition type ('t' command) in fdisk good for?

I can't understand the difference between the filesystem specified using fdisk's command line interface with t. And the one used to format it later using say mkefs. Why do we need to specify it twice?...
0
votes
2answers
97 views

How to format a partitioned sd card?

I have a SD card that has several partitions on it. Running sudo fdisk -l gives me: Device Boot Start End Blocks Id System /dev/mmcblk0p1 8192 2121093 ...
0
votes
0answers
12 views

Repartitioning on dual boot machine

Years ago, when Redhat failed on LILO, I was given an Ubuntu CD and booted from it. From there, I could see how the partitioning was set up. I was not only able to correct the issue with finding ...
1
vote
0answers
13 views

How can I split a partition in a RAID1 array on ubuntu?

I just purchased a brand new server on OVH with disk specification: 2 x480GB of SSD SOFT. When I do df -h, the output is: Filesystem Size Used Avail Use% Mounted on /dev/root 20G 13G ...
0
votes
0answers
41 views

mount xbox 360 formated disk

I have a game save data on a usb pen drive. Ubuntu doensnt recognize the disk file system though. I used the command fdisk -l, and tried installing netware 386 packages, but the disk still wound ...
0
votes
1answer
25 views

How do I fix my partitions?

I installed Ubuntu for an rPi 2 on an 8GiB micro SD card. However, when I subsequently set about installing software I ran out of space. That's because I forgot to repartition immediately after ...
13
votes
1answer
43k 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 ...
0
votes
1answer
1k views

SATA SSD GTP table will not reformat

I wanted to reformat my drive as msdos table so i could use it in another system without uefi and put a new installation on it since the laptop it was in died. That said, i first tried gparted and ...
1
vote
1answer
175 views

Format usb linux Western Digital external disks

How can I format an external USB drive? I have a Western Digital external usb which adds automatically a virtual read-only CD partition which prevented me to run the standard ways to format a disk. ...
0
votes
0answers
35 views

Ubuntu disk msdos partition fix reverse order

the disk info Hey.. I just made a mistake trying to convert a primary into a logical partition. and then it become a disaster to me.. my original disk partition: /dev/sda1 Windows Disk C, ntfs /...
3
votes
0answers
200 views

whats going on with fdisk?

I was trying to find the device mount point of my smart phone, when I ran sudo fdisk -l and saw something more curious. ... Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors Units: sectors of ...
0
votes
0answers
52 views

Server partition problem /boot full

we are using a 1un1.de server which comes with a very strange arrangement of partitions. I need to reallocate the space from /data to / because / has only 4GB in total and /data has all the space in ...
2
votes
1answer
1k views

USB stick 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 ...
2
votes
1answer
36 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
1answer
179 views

Thumbdrive fix? “unable to detect file system” 16GB causes 2GB partition

I have a Corsair Flash Voyager 16GB drive. It has worked fine for ages, though I barely use it. I wanted to wipe all the data on it/return it to zeros, so I used sudo dd if=/dev/zero of=/dev/sdb1 ...
1
vote
1answer
462 views

When using fdisk, how do I find what partition numbers are already in use?

When I create a new partition with fdisk, I am asked to choose a number for the new partition (1 through 4). Is this number the same as the integer value for "ID" when I use fdisk -l ? If so, why ...
0
votes
1answer
690 views

how to partition 4tb drive with fdisk (cfdisk)?

I would like to buy big internal hard drive - bigger than 2tb, maybe 4tb. And I want to partition it with old fashioned fdisk. By doing it, I want to make two partitions, each less than 2tb. After ...
0
votes
1answer
79 views

Large Sized HDD not recognized correctly?

Hello I have a question with newly installed HDD for my ubuntu file server. Motherboard: P7P55D-E LX<br> New HDD: WD NAS RED 4TB<br> OS : Ubuntu 14.04.1<br><br> ---------------...
0
votes
0answers
94 views

disk in fdisk but not by-uuid

I have 3 disks that are showing up in fdisk, they appear to partition correctly but 2 of them (sdc and sdd) won't show up in /dev/disk/by-uuid. My fdisk output looks like this, _____@_____:~$ sudo ...
1
vote
1answer
238 views

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 ...
0
votes
0answers
37 views

Formatting a disk as a single partition

Up until recently, I used to be able to create a volume on AWS, then format it ans use the entire disk as a single partition. I tried doing the following: Crate a volume using the AWS EC2 admin ...
0
votes
2answers
134 views

How to check which disk is mounted where? How to mount all spare disks?

Doing a df -h: alvas@mt:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 3.5T 2.7T 597G 83% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 63G ...
1
vote
1answer
2k views

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 ...
0
votes
0answers
180 views

fdisk problem on sd card

Everytime when I run: sudo fdisk /dev/sdc. i get this message. You must set cylinders. You can do this from the extra functions menu. I have set the cylinders value by ...
0
votes
2answers
3k views

Can't erase everything (partition/data) on sdcard, even with dd

I have a Kingston sdcard (16g) with partition and data written on it. here is the output of root@victor-ss9:/home/victor# fdisk -l /dev/sdf Disk /dev/sdf: 15.6 GB, 15560867840 bytes 4 heads, 16 ...
0
votes
2answers
172 views

Mounted External Drive Doesn't Show Correct Size

I have an external USB drive with 2.0 TB connected to a machine running Ubuntu Server 14.04. I used: fdisk -l and I can see that my at dev/sdd1. Here is the output: WARNING: GPT (GUID ...
0
votes
0answers
145 views

SSD I/O error due to fsync failure

During a normal usage my system froze all of a sudden and then I had to reboot it after which I found the following log of errors. I am not able to even reinstall ubuntu because of I/O errors. Now I ...
0
votes
2answers
190 views

Resizing ext4 partition with ext4 partition on runtime

I have burnt an image on a 32gb SD card and about 28gb was unallocated. I have used the disk utility on the unallocated space and made him ext4 28gb. now, I wish to extended the primary ext4 ...
1
vote
1answer
919 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 ...
0
votes
1answer
460 views

The CRC for the main partition and back up partition table are invalid

I've been having problems with my HDD since I tried dual booting ubuntu 14.04 with windows 8.1. When I was installing from the ubuntu installer I was receiving "input/output error during write on /dev/...
2
votes
1answer
952 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 ...
3
votes
1answer
4k 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
99 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 / ...
0
votes
1answer
459 views

Testdisk can't/won't recognise hard disk

After moving a number of hard drives from an Ubuntu desktop to dedicated Ubuntu server, I'm finding it hard to get Ubuntu server to recognise one of the drives. It's a 4tb WD green which was formatted ...
0
votes
1answer
514 views

Gparted Error “Unable to satisfy all the constraints on the partition”

I have dual booted Windows 7 & Ubuntu 14.04 with EasyBCD, i.e. I have installed grub on the Ubuntu root partition & added entry of linux to Windows bootloader using EasyBCD. So effectively i ...
0
votes
1answer
49 views

Help interpreting fdisk after boot problems

I duelboot Windows 8.1 and Ubuntu on my laptop (unfortunately I can't remember which version of ubuntu I have). I today tried to boot it up and received the message "error: no such partition" when ...
2
votes
0answers
140 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 of=...
1
vote
1answer
14k 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 ...