Questions tagged [fdisk]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
37 views

bash: fdisk: command not found

I have installed Debian 10 remotely on a server from a live netinstal iso USB over KVM, but then I encounter this strange problem: # fdisk -l bash: fdisk: command not found However if I use /sbin/...
0
votes
1answer
34 views

Extend first partition to available space after third partition

I have 3 partitions (linux, extended, swap) I need to extend my live partition (linux) to the space available after these partition. More info: #fdisk /dev/vda Welcome to fdisk (util-linux 2.29.2). ...
0
votes
0answers
19 views

Backing up a device and restoring it including its partitions

Currently I'm going through each partition doing: mount -o rw /dev/mmcblk1pX /mnt/pX cd /mnt/pX # backing up: tar -czvf /tmp/partitionX.tar.gz . ... # something went wrong, restoring: tar -xzvf /...
0
votes
1answer
24 views

Converting existing disk to lvm, so I can increase the storage?

I have a disk. I want to convert it to LVM, so I can add another disk to it -- to increase storage. It is not a system disk or anything, it is formatted using xfs and just stores data. Here is the ...
3
votes
2answers
118 views

Error mounting /dev/sda2

I have been running Pop!_OS for a while now, and decided to install Kubuntu. I booted into the Kubuntu USB drive to try it first, and decided to prepare the partition for installation with KDE ...
0
votes
0answers
31 views

Trying to fully wipe hard drive, can't get rid of /dev/mapper/cl-(swap, home & root)

I tried to install CentOS via a USB stick onto my machine's hard-drive and the installation failed part way. That was a few days ago. I don't recall what the error message said exactly. I have logged ...
0
votes
0answers
30 views

Parted and fdisk will not write changes concerning creating a partition table

I am trying to use this HDD (which is quite old) as a storage device. However, I have ran into some issues. It had two partitions which I removed with fdisk first. Now whenever I try to create a new ...
1
vote
1answer
46 views

Accidentally ran mkfs command on already available disk

I had a volume of 350Gb attached to my Linode server. It was running out of space so I resized it to 400GB from the dashboard and restarted my server. Then I used the df -h command to check if the ...
0
votes
0answers
20 views

partitioning old NTFS hdd

I am using Ubuntu 18.4 and i have a 4 disk NAS. I found an old hdd that i thought i'd install for a bit of extra space. When i run fdisk -l the disk is listed as follows Disk /dev/sdd: 931.5 GiB, ...
0
votes
0answers
45 views

ex USB hard disk now shows as character device, I need it to be block device

I had an external (USB) hard disk as part of my RAID5 array, now I want to put that drive inside the computer, after I added extra SATA ports internally. I removed the (USB) drive from the RAID array,...
0
votes
1answer
42 views

Why am I getting different outputs from parted and fdisk?

note: I am a Linux beginner, and trying to learn from the following book: How Linux Works Running parted -l I get: Model: KBG30ZMV256G TOSHIBA (nvme) Disk /dev/nvme0n1: 256GB Sector size (logical/...
0
votes
1answer
37 views

Ubuntu on Azure: increase partition size

I have basic unix skills and have to do some maintenance on a linux machine (Ubuntu 18.04). hosted on Azure. I need to resize the /dev/sda1 partition, giving more space to it. When I run df -h it ...
0
votes
1answer
43 views

Cannot create partition on hard drive

I'm on PopOS 19.10, and I try to create a partition on my new SSD (Crucial MX500, 1TB). Note that it worked on Windows, I could create a NTFS partition, so from this base I admit my SSD is healthy (...
0
votes
1answer
104 views

How to repair invalid disk (bad superblock on /dev/sda)?

I'm having a big issue here and I can't access or mount my HD. First, I will explain what happened. I have a notebook with a 240GB SSD where are stored two operational systems (Windows 10 and Linux ...
0
votes
1answer
42 views

Is Ubuntu deactivating connected but not mounted HDD?

I am currently working on a bash script which should mount a veracrypt encrypted hdd on sundays to run backups. Since I want to rotate between two different HDDs every week, I have to check whether /...
2
votes
1answer
127 views

How to change the device label of a USB stick? [duplicate]

I have done some research on this and found this question many times. However, all the answers I have found only address how to change a partition label. I am talking about what is reported by lsblk -...
0
votes
1answer
197 views

Increase I/O size (minimum / optimal)

I have the following query: I want to increase the I/O size (minimum / optimal) of the CentOS. By default the value is 512 bytes and I want to increase it to 262144 bytes / 524288 bytes. Currently ...
2
votes
0answers
84 views

fdisk says the partition I'm trying to recover is “unknown” type. Is there anyway to mount this?

I have a corrupt HFS partition that I'm trying to recover data from. >>sudo fdisk -l Device Start End Sectors Size Type /dev/sda1 40 409639 409600 200M EFI ...
0
votes
0answers
68 views

Resize Raw Image with GPT Partition Table

I'm attempting to resize a raw image (created with dd) containing a GPT partition table and several NTFS partitions. I mounted the image using losetup, ran partprobe to update the partitions the ...
0
votes
0answers
30 views

USB not working on Ubuntu

The USB ports in my notebook don't work for my kindle and my pendriver. Although they work with my cellphone. I tried running fdisk -l and all the sdb partitions are missing. But if I run lsusb the ...
0
votes
0answers
24 views

How to mount a RAID1 drive?

I have a 2TB drive from my two-bay Synology NAS that I want to access via Linux Mint. fdisk shows: root@HUB:/# fdisk -l Disk /dev/sda: 111.8 GiB, 120033041920 bytes, 234439535 sectors Units: ...
0
votes
0answers
155 views

LINUX “No valid partition table was found on this device.” + “Error: Can't have a partition outside the disk!” + fdisk reads “7.3T” Size; How to fix?

Distro: Netrunner Blackbird (Debian) I/O: Sata to USB cable KDE Parition Editor: "No valid partition table was found on this device." me@computer:~$ sudo parted -l Model: ATA LITEONIT LCT-128 (scsi) ...
1
vote
2answers
192 views

Raw disk image from VDI file can be mounted using qemu-nbd but not loop device?

I installed a very old Slack version (3.2) on VirtualBox and then converted it to RAW format (ext2). However, for some reason I'm unable to mount it using losetup but qemu-nbd works fine. Why? I ...
1
vote
2answers
40 views

Create /dev/sda1 and /dev/sda2 with exact size

How is possible to create /dev/sda1 and /dev/sda2 with size of 20GB? I was lurking over google and tryed: Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for ...
0
votes
1answer
19 views

hpacucli - format disk and create logical drive [closed]

I just added to the server new disk, which can't be seen by fdisk -l. But I can see it as physical drive via hpacucli as physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK) But on that disk ...
1
vote
1answer
267 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
0answers
24 views

How to check disks health in Hadoop clusters and Kafka machines

We have many Hadoop clusters. Each datanode holds many disks (between 10 and 20). All disks are used for HDFS. We use well-known tools like smartctl to check the disks. We want to know if there is a ...
1
vote
1answer
116 views

Change filesystem type from “Linux” to “Linux root (x86-64)”

I just partitioned a new GUID drive, and accidentally chose "Linux filesystem" (0FC63DAF-8483-4772-8E79-3D69D8477DE4) instead "Linux root (x86-64)" (4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709) for my root ...
0
votes
2answers
298 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 ...
3
votes
1answer
154 views

Arch ISO not recognizing SSD, does see HDD

I'm installing Arch Linux and when I was about to partition my drives, I noticed something odd. In my laptop, I have two disks: a 1TB HDD and a 512 GB SSD. I would prefer to use the SSD as my boot ...
0
votes
0answers
10 views

How to reconnect a logically disconnected (but still physically connected) USB hard drive after a reboot in CentOS 7?

I assumed it would just show up again, like it did after initially plugging in, but it seems after issuing a reboot command the drive is no longer visible. Before I rebooted the only place I could ...
1
vote
0answers
47 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: [...
0
votes
0answers
53 views

fdisk mkswap No such file or directory

Im trying to create new swap partition but I have error when I try mkswap /dev/vda1p1 /dev/vda1p1: No such file or directory Please check -bash-4.2# lsblk NAME MAJ:MIN RM SIZE RO TYPE ...
0
votes
3answers
53 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
0answers
22 views

adding a partition to a device in use

I have to add a partition to a linux server remotely. The server machine has only one disk. The disk has a lot of blocks which have not been formatted yet. However, because the disk is in use, it is ...
0
votes
2answers
147 views

Which Linux partition type to chose for external USB HDD with EXT3 or EXT4?

I want to change a partition to Ext3 or Ext4 and used fdisk to print the availlable partition types: 19 Linux swap 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F 20 Linux filesystem ...
0
votes
1answer
47 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
0answers
92 views

Mounting fails due to inactive Unit

My external HDD refuses to mount. Syslog attached: Sep 26 13:17:24 raspberrypi3 systemd[1]: Started Anonymizing overlay network for TCP. Sep 26 13:17:24 raspberrypi3 systemd[1]: Startup finished in 1....
0
votes
1answer
130 views

Cannot see partitions in fdisk utility

I've been struggling with this couple of hours now. Deleted all existing partitions and created a new one on (virtually unmounted) removable USB media using: $ sudo fdisk /dev/sdb1 Command (m for ...
0
votes
1answer
95 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
1answer
247 views

Kensington SD I/O Read Error, not recognised on Ubuntu 19.04?

I have two Kensington SD cards that will not be recognised on my ubuntu 19.04 OS. They are definitely working though, when I plug them into my windows 10 computer they register. I also have an old ...
0
votes
1answer
32 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/ ...
2
votes
1answer
295 views

I'm having hard times mounting a PlayStation 4 hard drive, need some help!

When I run the command sudo fdisk -l I get the following message about the hard drive I want to mount to my system: Disk /dev/sdc: 465,8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors ...
1
vote
1answer
440 views

Fdisk Error Message

So basically i was messing around in Linux and i wiped the fileystem from a partition with wipefs and then decided to delete this partition (/dev/sda2) so i went on parted and deleted it. After this ...
9
votes
1answer
593 views

Why is the total number of hard disk sectors shown in fdisk not the same as theoretical calculation?

When we use fdisk to check a hard disk, it would show something like: Disk /dev/sda/: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors But when we ...
0
votes
0answers
24 views

USB stick with hidden capacity?

While using dd on my USB drive, the USB drive accidentally got unplugged. The max capacity is 8GB, and 5GB had been written to it. Now, when I try to reformat the USB drive or even remove all ...
2
votes
0answers
83 views

Two Partitions had same starting and ending sectors? How is it possible?

When I was practicing with fdisk, unfortunately, two partitions added with same start and end sectors. When I mount them individually I can see the same data on both partitions. Is it a flaw in fdisk? ...
2
votes
1answer
4k 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 ...
0
votes
0answers
38 views

Why does fdisk sometimes ask what kind of partition to make and sometimes not?

Today I was trying to write a script for partitioning disks using fdisk (since that seemed like the simplest option). When going through fdisk the first time and pressing n for new partition, the ...
1
vote
1answer
69 views

Output fdisk bash command to multiline variable

I can't seem to figure out how I can put a fdisk command from a bash script in a multiline variable. Here is my code hdds="$(sudo fdisk -l | grep "Disk /dev/sd" | awk '{print$2}' | sed 's/://g')" ...

1
2 3 4 5
8