Tagged Questions

fdisk (for "fixed disk") is a command-line utility that provides disk partitioning functions.

learn more… | top users | synonyms

1
vote
0answers
28 views

Transforming a disk from MBR to GPT

I have a disk with classic MBR and want to transform it to use GPT without data loss. I have seen several more or less useful tutorials, but most of them are dealing with the specific problems related ...
1
vote
0answers
21 views

Why are USB partitions & disk capacity not coherent between fdisk, parted, dmesg & /dev/sdXy

Disclaimer: I initially posted this on SF : http://serverfault.com/q/645670, but I think it better fits here First, a word of context: I'm trying to burn an ISO on a 16 Gb USB key, but I'm having ...
1
vote
0answers
21 views

4k mode hard disk partition

I am trying to create a 256 MB primary partition for my 320 Gig hdd using fdisk. Since, the drive support 4k I wanted to try the emulation mode. so, for 256 Mb of 512 K blocks leads me with below ...
0
votes
1answer
21 views

Increase a partition without data loss

If there is a partition, ex.: /dev/sdb1 Then how can I increase the partition (with fdisk?), if it was 10 GByte before, and there are still place to increase the partition with another 10 GByte, ...
1
vote
2answers
54 views

Cannot mount external USB drive

I'm on Debian Jessie and I have an external USB drive with NTFS. I plugged it into my Raspberry Pi, which then spontaneously restarted (probably the power consumption was too high for the adapter I'm ...
1
vote
1answer
75 views

Understanding syslinux and partitioning

I am trying to learn and especially understand how partitionning and boot-loaders work. The problem is that I got it all twisted in my mind. In the end I don't understand anything anymore. I know ...
1
vote
1answer
44 views

FDISK human error

I was trying to extend my root partition when I realised that I was not on my liveCD. But I already wrote the fdisk table. After rebooting, the filesystem is corrupted. I tried to restore the fdisk ...
1
vote
2answers
61 views

Does `/proc/partitions` and/or `fdisk -l /dev/sdX` provide me a reliable device size?

I have two 3TB disks, which I hope to be exactly the same size. This means that I can use dd to copy them without being short or in excess of some bytes. Therefore I tried to find out the ...
1
vote
1answer
48 views

Why do I need mkswap if swap space has been created via fdisk?

I created a partition called /dev/sda3 as a swap partition, and changed the ID to 82 (Linux Swap) via fdisk. If this partition was recognized as a swap partition (seen in the output of fdisk -l and ...
1
vote
1answer
132 views

resize root volume with lvextend insufficent space error

My root partition is running out of space, so I'm trying to extend/resize it. Filesystem Size Used Avail Use% Mounted on /dev/mapper/u64-root 19G 18G 823M 96% / none ...
1
vote
1answer
41 views

Creating disk device in a file

I'm trying to create disk device in a file with: dd if=/dev/zero of=file.img bs=516096 count=1000 sudo losetup /dev/loop0 file.img (echo n; echo p; echo 1; echo ""; echo ""; echo w;) | sudo fdisk -u ...
1
vote
0answers
43 views

Two fdisks seeing different MBRs on same external drive (OpenBSD 4.2/5.5)

I'm trying to use an external USB hard drive to copy data between a legacy production OpenBSD 4.2 system (on a slow, fragile network — that's not an option) and a new OpenBSD 5.5 box, and I'm running ...
1
vote
0answers
63 views

Creating partition tables on USB ATA drives fails with fdisk and KDE partitionmanager

I have a couple old ATA (yes, not SATA) hard drive around with USB enclosures. One of them gave me some EXT4 journal error, so I am not sure whether they have a physical problem. Since they are just ...
4
votes
2answers
174 views

Getting the extra GPT info; a “fdisk -l” equivalent

What is the equivalent for GPT using HDDs of: # fdisk -l /dev/hda > /mnt/sda1/hda_fdisk.info I got this from https://wiki.archlinux.org/index.php/disk_cloning (under "Create disk image") for ...
0
votes
0answers
149 views

unable to format usb drive

I'm trying to read an usb drive that until a few day ago seemed to be perfectly working. Today windows started to be unable to access or modify its content. Trying to reformat it with linux (arch ...
-1
votes
2answers
251 views

Can not create new partition

I have Centos that have 508G free space i want to create new partition from it. it locates in extended partition I create new partition and format it as anything (ext4, fat32), after apply it can't ...
1
vote
0answers
117 views

Unable to boot into Mac OS after installing Fedora[Dual Boot]

I installed Fedora on my Mac and now when I boot, it says "booting in insecure mode" an then see a typical Linux "choose what to boot" screen. The List goes like: Fedora Fedora Recovery Mac OSX ...
0
votes
0answers
31 views

Discovering possible RAID configuration of a bunch of disks

I have a stack of 8 disks which were at one point all inside of one host. That host no longer exists, but it's been requested that I retrieve data from these disks. No one can tell me anything about ...
1
vote
2answers
349 views

How to format a 1GB USB stick to FAT32 with 512 bytes sector?

I am trying hard to format a 1GB USB stick so that I can use it to install a new linux OS. Because the Disk utility has failed me when creating the file system. I tried to do it manually using fdisk ...
2
votes
2answers
129 views

Partition offset at 63 or 64?

I did not wish to use the entire SSD for OpenBSD 5.5. (The SSD is new and pre-formatted with MSDOS using Gparted) During installation and at the fdisk stage, I chose Partition #: 0 to install OpenBSD ...
0
votes
2answers
50 views

change boot order

I have 2 partitions sda1 XP and sda2 CENTOS. I have reinstalled grub on /dev/sda but on rebooting, I experienced: error : 22 no such parition for Centos; while Windows boots charmingly on the other. ...
2
votes
1answer
264 views

Debian Wheezy live - gparted, dmsg, fdisk etc. do not detect local hard drive but it is shown during installation

Yesterday I finished backing up my data and it was time to wipe that HDD of mine for good and freshly install Debian Wheezy stable with Xfce as a WM. I've booted into a live session to see if things ...
1
vote
4answers
106 views

Extracting a string from fdisk command

I want to write a shell script, which will run fdisk -l and extract a string /dev/sdbn from the output of fdisk -l. Using extracted word I want to mount it to /mnt. For Example: Disk identifier: ...
1
vote
0answers
139 views

How to find hidden partition of a USB in linux

I have a USB, which has a protected partition. I think this USB has hidden partitions, which I can't see them. $ fdisk -l /dev/sdb: You must set cylinders. You can do this from the extra functions ...
2
votes
1answer
84 views

why 2TB external HDD is recognized as 800 GB only in Ubuntu 8.10

I had a 2 TB external HDD which I formatted as below. fdisk /dev/sdb After issuing the above command, I did the following steps. Then selected option p. (To print the partition table). Then ...
4
votes
4answers
136 views

Combine fdisk and df in the same output

sudo fdisk -l gives : 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size ...
-1
votes
1answer
29 views

Fdisk expert mode not available

It seems that the eXpert mode in fdisk is no longer available. When I try sudo fdisk -x, terminal returns "fdisk: invalid option -- 'x'" I have fdisk from util-linux 2.24.1 Is this a "feature"?
4
votes
2answers
3k views

Problem mounting GPT disk partition

I am trying to mount a partition on a GPT disk, but I get the following error: $ sudo mount -t ext4 /dev/sda1 disk/ mount: special device /dev/sda1 does not exist Looking at dmesg, I don't see any ...
1
vote
1answer
241 views

Problem creating raw disk image and mounting it in rescue mode to QEMU

I am trying to create booting system from raw disk image. This is what I do: $ dd if=/dev/zero of=system2.img bs=1M count=6000 6000+0 records in 6000+0 records out 6291456000 bytes (6.3 GB) copied, ...
0
votes
1answer
264 views

location of the “disk identifier”

According to Wikipedia, "disk signature" is a 32 bit value stored in MBR on bytes 440 - 443. According to fdisk, my "disk identifier" is 00043afc in hex: # fdisk -lu /dev/sda | grep identi Disk ...
0
votes
2answers
726 views

“blocks” column in output of fdisk

On my machine, fdisk -lu /dev/sda displays following output: Device Boot Start End Blocks Id System /dev/sda1 * 2048 73947135 36972544 83 Linux /dev/sda2 ...
3
votes
1answer
1k views

How do I use new fdisk table without reboot (kpartx)?

When I run fdisk and change the size of a partition, fdisk says at the end of its output: The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) I'd like to do so ...
3
votes
2answers
64 views

Difference between running mke2fs and setting FS type in cfdisk?

When I run cfdisk (or fdisk) to partition a storage device, there's a point where I can specify the file system type. Does this do anything with respect to the actual file system? Suppose I want to ...
0
votes
1answer
753 views

Fdisk cannot read size of this disk is 4.0 TB under RAID-0 enviroment

I have server from OVH data center , I have Two SATA Hard Disk Drive , each Disk Size 2.0 T.B , I have RAID controller card but I convert the RAID-1 to RAID-0 through OVH Rescue mode and here is the ...
2
votes
1answer
737 views

Software RAID 10 + LVM on mixed drives, sector alignment?

I have 4 2.5" 7.2k drives lying about and I'd like to build some RAID arrays for a bit of VM storage on my KVM lab box. There are 2x 320GB drives and 2x 500GB drives. I'm looking to create a RAID 10 ...
7
votes
2answers
3k views

fdisk -l shows ext3 file system as HPFS/NTFS

I have an external HDD which I formatted as NTFS partition in Windows. Now, I formatted this HDD in my linux system using the below command. mkfs.ext3 /dev/sdb1 It was formatted successfully. ...
1
vote
1answer
253 views

Can't create partition table on SSD with Slackware 14

I'm trying to install Slackware 14 from a DVD. It boots fine from the DVD. When I try to use fdisk or cfdisk to create the Linux and swap partitions on the SSD, it complains about a missing or ...
1
vote
2answers
730 views

fdisk (expert mode) options

On GNU/Linux with fdisk (util-linux 2.20.1), when using, say fdisk /dev/sda3 there are quite some options and the and even an "expert mode" (x). Most of these are explained through the m option. But ...
1
vote
1answer
2k views

Copy MBR and boot partition to a smaller disk

I'm using a 32GB SD card for my raspberry pi. I have successfully transferred the operating system (Archlinux ARM) to a usb harddrive. Which means that I only need the boot partition on the SD card. ...
1
vote
1answer
48 views

Are partition tables always required? [duplicate]

So I have a home server with 4 hdds: hdd1: 60Gb (SSD - OS drive) hdd2: 4TB (data drive) hdd3: 2TB (data drive) hdd4: 1TB (data drive) So I intend installing ubuntu server onto hdd1 (ssd ...
0
votes
1answer
365 views

How to check integrity to HDD with UDF format

I'm having problem with a USB external drive, which seem to be formated with UDF and was being used for MAC and Windows (or at least that is what told). When I attached the HDD to my Linux system ...
3
votes
1answer
1k views

How can I Allocate More Space to a Filesystem Mounted on /?

I am new to Linux so please forgive the incorrect use of vocabulary. My company has a private cloud that provisions VM's in a KVM. I received a RHEL 6.4. When I provisioned it, I asked for 50GB of ...
5
votes
1answer
126 views

Partitions same size but different block [closed]

I tried to backup my partition using dd on another disk and I created a partition of the same size. When I finished the copy I had problems mounting the partition since I got bad geometry: block ...
6
votes
4answers
324 views

Listing all devices as non-superuser

I'm trying to mount external hard drive. As I know, to mount manually, I should use fdisk -l to determine which device refers to the drive. When I'm doing so without sudo I have next output: ...
2
votes
1answer
238 views

why the size of disk image decreased after mkfs.ext2

first, i create a disk image use dd: > dd if=/dev/zero of=disk bs=512 count=2097152 > du -h disk 1.1G disk second, fdisk disk create a partion: Command (m for help): p Disk disk: 1 ...
6
votes
3answers
4k views

fdisk vs parted

I've been running a small media server at home for 10+ years and looking at replacing it (before it breaks). I intend to hook up a new drive to my old system, partition and format (ext4 seems most ...
2
votes
1answer
282 views

Linux big disk partition issue

I have a big disk around 4.8 TB (RAID) and it has following partition (created by fdisk) [root@server1 ~]# fdisk -l /dev/sde WARNING: The size of this disk is 4.8 TB (4796404727808 bytes). DOS ...
0
votes
0answers
221 views

How to mount a flushed hard disk in Xubuntu

I want to recover data from an internal hard disk with Windows Vista. I`m using a live CD of Xubuntu. But when I write: sudo fdisk -l I obtain only the USB disk in which I have Xubuntu live. How ...
1
vote
1answer
223 views

Specify partition data in sfdisk and parted

With this line: (echo o; echo n; echo p; echo 1; echo ; echo +24G; echo a; echo t; echo 7; echo w) | fdisk /dev/sda I can create a new active primary partition for NTFS, 24 Giga large. The syntax ...
2
votes
2answers
4k views

Format windows (NTFS) hard drive on Ubuntu using command line

This is really a two part question. I've never formatted a hard dirve on Linux/Unix, so please bear with me. I had an old Windows machine which recently died. So I decided to put the hard drive into ...