Questions tagged [fdisk]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

How to mount connected USB external HDD in CentOS 7?

All of the guides I've found say the first thing to do is to run fdisk -l, to identify the disk. Sadly it doesn't seem to show up on fdisk for me. Next I checked dmesg, which gives this output: [...
1
vote
1answer
2k views

Partition #3 contains a ext4 signature

When i use fdisk to create a new partition i get an error which says Partition #3 contains a ext4 signature Do you want to remove the signature? [Y]es/[N]o: This error is not a problem but i am ...
1
vote
2answers
107 views

Mapping between EC2 volume and your mounted filesystem

I am running out of space on a particular filesystem. I know this with the following command df -H $ sudo df -H Filesystem Size Used Avail Use% Mounted on udev 4.1G ...
1
vote
1answer
954 views

Adding brick volume to gluster fails

I created a 2TB volume to increase space on home directory. I created the partition: $ parted /dev/xvdb mklabel gpt $ parted -s /dev/xvdb mkpart primary ext4 1 100% Formatted the partition: $ mkfs....
1
vote
0answers
482 views

Problem mounting and reading hard disk

I am trying to read the content of a 1Tb external disk. The device was part of an external nas (dlink 320) using raid 1. when I plug the hard disk using the usb port no partition is mounted. The ...
1
vote
0answers
300 views

Want to allocate space to centos-root folder

Below is my df -h output [root@dpnjsv2-centos7-base logs]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 12G 9.8G 1.6G 87% / devtmpfs 2....
1
vote
2answers
4k views

FDISK doesn't show any partitions for a disk, trying to resize an LVM disk, running CentOS

This particular system is acting peculiar and i've not seen this before. System is running CentOS and is a VM on VMWare. I increased the space on the drive from 100GB to 130GB. When I went in to the ...
1
vote
0answers
30 views

Problem mounting NTFS disks

I had initially gotten good results in using /etc/fstab to specify mounting points for my hard disks. But after meddling around with folder permissions, my disks refused to mount. What I was doing: ...
1
vote
0answers
124 views

Arch Windows dualboot: fdisk only lists liveusb?

I'm trying to dual boot windows 10 (secureboot disabled, uefi enabled) with arch. I used the disk management utility in windows to set aside some space for linux, but when I boot the liveusb and run ...
1
vote
0answers
159 views

Optimize cloning image without cloning unused space

I have a pi with a 32g sd. michael@pi3:/ $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 29804860 1773224 26791008 7% / devtmpfs 468152 0 468152 ...
1
vote
0answers
10 views

Virtual Linux box (CentOS based) needs increase of Logical Volume

I have a virtual Linux box running on vSphear. We have recently run out of space on a main drive within this system, for which I removed a fairly large and useless file to deal with the situation for ...
1
vote
1answer
555 views

New Seagate External Hard Disk not recognised

When I connected the Seagate Hard Drive in windows it does not recognize the hard disk,but shows up in safely removed options.In Ubuntu 14.04,it does not recognise the hard disk. Here is the lsusb ...
1
vote
1answer
146 views

moving a Linux to another device

I am working on an embedded Linux ip-camera. I need to have a backup of our Linux for testing and repairing cameras. I have tested multiple options like using tar and rsync , but it does not work and ...
1
vote
0answers
198 views

mdadm does not automount raid0 disks under /media/storage

I've beat my head against this issue all night and I can't seem to wrap my head around it. I've recently installed Linux Mint 17.3 Mate to replace my Windows 10 machine and after some tinkering I've ...
1
vote
2answers
809 views

fdisk: could not detect sector size of USB hard disk on FreeBSD

I have an NTFS formatted USB hard disk that works fine (mounts and unmounts cleanly) on my windows desktop. I can't however seem to mount it on my freebsd box at all. Stripping this back to the ...
1
vote
0answers
79 views

Change Partion Drive Space

Okay I am having some trouble here - pretty new to the Linux environment and need some help. I have a 2.7 TB RAID array, and someone configured a partition at around 200 GB but it really needs to be ...
1
vote
0answers
2k views

Issues while eMMC partitioned using sfdisk

I am writing firmware(MLO,u-boot.img, uImage(ver 3.12), dtb, rootfs.tar.gz) programming script for am335x based custom board. Rootfile system is to be put onto the eMMC. Firmware programming script ...
1
vote
2answers
903 views

FAT file-system between the MBR and first partition

I have an old 64MB USB flash-disk which seems to have MBR: root@3:~# fdisk -lu /dev/sdd Disk /dev/sdd: 64 MB, 64880640 bytes 2 heads, 54 sectors/track, 1173 cylinders, total 126720 sectors Units = ...
1
vote
0answers
306 views

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

Disclaimer: I initially posted this on SF : https://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
140 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 ...
1
vote
1answer
111 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
0answers
110 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
1k 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 ...
1
vote
0answers
906 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 32-...
1
vote
0answers
441 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
944 views

restore filesystem after fdisk

I split a partition in two with fdisk, but after rebooting I've got partition in FAT filesystem (was ext4). What's can be wrong? And how to fix it or get data from bad partition? I hope this is ...
0
votes
1answer
514 views

Stuck trying to extend volume in Linux VM

I have a Debian Linux VM running (headless) on an Ubuntu box. I increased the size of the virtual disk with vboxmanage to 30G from its original 20G. I have tried many things, but I am still stuck ...
0
votes
1answer
477 views

fdisk shows “No free sectors available” while there is enough space

I have a 3.5T ssd, and I have made a 1.5T partition in it before. Then I want to add another partition. But it always shows there is no free sectors left which I think is pretty weird. # fdisk /dev/...
0
votes
3answers
2k views

How do I move an ext4 filesystem from /dev/sdb to /dev/sdb1?

Somehow I have an ext4 filesystem in /dev/sdb. I expected it to be /dev/sdb1. I can mount it manually; I can access the data; I can reference it in /etc/fstab; etc, but I want it in a standard ...
0
votes
3answers
52 views

How to use newly partitioned disk?

I've done a disk partition with fdisk /dev/sda with following options: P - primary But when inspecting disk with df -h command I do not see the disk space available to use. But I can see it with ...
0
votes
1answer
62 views

What are these “host” directories?

I'm using Oracle Linux 7.6, which is a distribution based on RHEL 7.6. The following testing should be the same on RHEL 7.6 or other RHEL 7.6 based distributions. I'm running the Oracle Linux 7.6 ...
0
votes
2answers
195 views

linux partition/disk numbers (sda1,sda2,sda5)

at the moment i understand that linux has a partition numbering system which is: partitions 1-4 are primary partitions 5 and above and logical but what about extended partitions? my curret ...
0
votes
2answers
464 views

automatize partition creation with fdisk

I am using these commands on command line: sudo fdisk /dev/mmcblk1 p d w sudo fdisk /dev/mmcblk1 n (using all defaults) w Please is there any option how to automatize this task? Or how to use one ...
0
votes
1answer
2k views

Meaning of “e” and “ee” in “Id” column of `fdisk -l`?

I am trying to inspect an SD card which may or may not be failing, on Ubuntu 14.04. This is the output I get from fdisk -l: $ sudo fdisk -l /dev/sdc ... Disk identifier: 0x000a671b Device Boot ...
0
votes
1answer
862 views

Fdisk in interactive mode

A few months ago, I had done a .sh script that used: fdisk image.img <<EOF o n +64M a 1 t 6 n w EOF It worked a few months ago. Now (a few updates later), it fails: Command (m for help): ...
0
votes
1answer
678 views

fdisk - defaults to non Dos but yet uses Dos disklabel

My version of fdisk man page states default is DOS mode is disabled, which is what I want.... but why is it stating 'Created a new DOS disklabel'? localhost four # fdisk /dev/sdc Welcome to fdisk (...
0
votes
1answer
18k views

How can I extend VMware Partition on Centos 7 using GParted?

I've a problem with increasing a partition from 20GB to 120GB, VMDK file. Here is what I've done: using vmware-diskmanager to increase vmdk file from 20 GB - 120 GB. It's ok. download and boot from ...
0
votes
4answers
2k views

Align Partition Of HDD Using fdisk?

I first asked this question on SuperUser.com but got no responses. I have found how to align the partition of my SSD using fdisk (SSD article on Gentoo Wiki) but haven't been able to find any ...
0
votes
1answer
95 views

What are the differences between Linux filesystem, Linux server data, Linux root, Linux reserved and Linux home in fdisk?

While creating file systems with fdisk on GPT partitions, I have noticed in the file system type, there are options like: 20 Linux filesystem 0FC63DAF-8483-4772-8E79-3D69D8477DE4 21 ...
0
votes
3answers
343 views

USB-attached HDD visible in dmesg, but can't be opened with fdisk

I've attached a SATA to my computer via a "plugable" (that's the company name) disk docking station. The docking station is fine, since I've attached another HDD and was able to see its partitions' ...
0
votes
1answer
1k views

sdc1 exists but does not show under /dev/

I am currently working on CentOS 6.9 (Kernel Version 2.6.32-696.3.2.el6.x86_64). I have added a supplemental disk to the Virtual Machine and I can see it listed under /dev as sdc (/dev/sdc). When I ...
0
votes
2answers
485 views

Wipe a USB flash drive and recreate a filesystem

I'm using this to wipe a USB flash drive and recreate a FAT filesystem: dd if=/dev/zero of=/dev/sdb bs=1M #I don't need more advanced wiping fdisk /dev/sdb (a few keystrokes to select partition ...
0
votes
2answers
612 views

Newly formatted USB storage device, doesn't mount

I'm having issues with a cheap USB drive I just bought. This is what I've done so far. First, after checking its device id, I wiped it: $ sudo dd status=progress if=/dev/zero of=/dev/sdi 4027441664 ...
0
votes
1answer
1k views

Fdisk does not match /proc/partitions or mount points (embedded)

I'm working on an existing embedded Linux device and am having trouble editing the partitions using fdisk. My goal is to create a partition for testing purposes on /dev/sda. I am using the fdisk ...
0
votes
1answer
931 views

What's the quickest way to format a disk?

It's for a bash script. Basically, I want to format, or erase a USB (or SD) storage device; with a single command line. I was going to use fdisk, but it seems to require user interaction where I ...
0
votes
2answers
148 views

How to increase the size of extended partition with free unallocated disk space to the right of it using fdisk/parted utilities?

# parted /dev/vda print free Model: Virtio Block Device (virtblk) Disk /dev/vda: 137GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File ...
0
votes
1answer
40 views

SATA hard disk not recognized

there seems to be a problem with the hard disk. I just wanted to know if I can fix it somehow or I should throw it away. the problem is that the hard disk is not recognized. https://pastebin.com/...
0
votes
1answer
30 views

Forgot to assign boot tag when doing fdisk

Yesterday I supposed to do resize Azure Linux VM by following article https://blogs.msdn.microsoft.com/cloud_solution_architect/2016/05/24/step-by-step-how-to-resize-a-linux-vm-os-disk-in-azure-arm/ ...
0
votes
1answer
3k views

How to change partition type id without formatting?

How to change my partition type id from 83 to 8e without formatting and losing data?
0
votes
1answer
568 views

Add PARTUUID to DOS MBR

I have an MBR style formatted SD card where I need a PARTUUID in order to mount a partition there as the rootfs (via linux kernel parameter root=PARTUUID=...). Using an fs UUID does not work. ...