Questions tagged [fdisk]

fdisk was a command-line disk partitioning tool in Linux and old versions of Windows/MS-DOS. It is deprecated on Linux by its inability to handle GPT disks. New systems should use diskpart (Windows) or parted (Linux) to partition disks.

fdisk was a command-line disk partitioning tool in Linux and old versions of Windows/MS-DOS. It is deprecated on Linux by its inability to handle GPT disks. New systems should use diskpart (Windows) or parted (Linux) to partition disks.

157 questions
1
vote
1 answer

Fedora 17 - Dropping into debug shell after attempted partitioning

So I tried creating a new partition on Fedora 17 using fdisk as follows: Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (2048-823215039, default 2048): Using default value…
rahuL
  • 692
  • 3
  • 12
  • 31
1
vote
1 answer

fdisk -l only displays boot partition

I have a SAN, and it's able to read and write to the 50TB RAID just fine, but when I run fdisk -l it only lists the boot partition of the SAN server, and doesn't display anything about the other partitions on the RAID. I've also tried using parted…
Franklin
  • 131
  • 3
1
vote
1 answer

Whats wrong with my partition table?

I'm a bit lost here. I got my trusty old external 500Gb USB drive but it refuse to mount: I think my partition table is invalid: sudo fdisk -lu /dev/sdb Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total…
Henrike
  • 11
  • 2
1
vote
3 answers

Extending hard disk size after hard drive regrow without losing data

I wonder if this is possible to extend or regrow the Linux hard disk partition from 8 GB to 20 GB without losing the existing data on the partition ? at the moment this Ubuntu Linux is deployed on top of VMware and I've just regrow the hard drive…
Senior Systems Engineer
  • 1,275
  • 2
  • 33
  • 62
1
vote
2 answers

What's the quickest way to format a drive (USB, HDD, Floppy) under Linux?

I had fdisk segfault and just wondered if anyone had any other options? EDIT: It was late and that was a dumb question. Good answer though!
Gareth
  • 8,573
  • 13
  • 44
  • 44
1
vote
3 answers

One all-enclosing partition or just use the entire device?

I received a 1TB hard drive that had a single 1TB partition. Because we do not need partitions on the drive (and I disliked using the path /dev/sdc1 instead of /dev/sdc), I went to fdisk, deleted the partition and created the filesystem on the…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
1
vote
1 answer

Generate a new Volume ID in Linux

Sparing most details/reasons, I have a situation in which I'm cloning drives for mass production. Some of them are being installed in servers that only need one disk (in that case this is a non-issue), but some are being installed in servers that…
andyortlieb
  • 1,092
  • 1
  • 12
  • 25
1
vote
3 answers

which drive do I mount

I have a system hdd then two raid1 hard drives I see that sda1 is the system drive but when i do a fdisk -l I get the following results so which of the following do i need to mount to get the "raid" drive and not the individual…
Crash893
  • 747
  • 2
  • 15
  • 30
1
vote
1 answer

Differences between sfdisk and fdisk on LVM disk extend

In order to semi-automate LVM partitions extend on Debian 11 VMs clones from a template, I feel a bit stuck when I try to script it through sfdisk compared to interactive fdisk. Here's the original partitionning root# sudo fdisk /dev/sda Commande…
motorbass
  • 303
  • 2
  • 12
1
vote
0 answers

how to setup 4 drives on hetzner servers, every two are mirror

I've a new dedicated server from hetzner, will install cPanel on it. 2x HDD SATA 6,0 TB Enterprise 2x SSD M.2 NVMe 512 GB OS is AlmaLinux v8.7.0 how can I set up the installimage so the OS be on the NVMe, and the cPanel home directory on the…
1
vote
1 answer

Different output of parted and fdisk

I have a strange CentOS behaviour, When I type parted -l command on my server I got following results : Model: DELL PERC H730P Adp (scsi) Disk /dev/sda: 5758GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags:…
1
vote
1 answer

Is there any kind of complete RFC document for MBR (master boot record) format - better with explanations?

I am designing the code enumerating the partitions in the system. Reading numerous documents I can not devise complete and definite list of constraints for the algorithm, and find out why constraints exist. Root MBR is having 4 entries, and thus…
Anonymous
  • 171
  • 12
1
vote
1 answer

Ubuntu 20.04 new fresh LVM on 5TiB shows just 4.1 TiB space

On a fresh installed Ubuntu 20.04 I attached second disk with size of 5 TiB. I used following commands to create LVM. Disk /dev/sdb: 5 TiB, 5497558138880 bytes, 10737418240 sectors Disk model: Virtual disk Units: sectors of 1 * 512 = 512…
wojcieh
  • 158
  • 1
  • 8
1
vote
5 answers

Added 4Tb HDD to Iomega IX2-200 but cannot extend the volume

I have a Iomega IX2-200 which came with 2Tb (1.8Tb usable) space. It has two disks set up as RAID1. I am trying to upgrade this to 4Tb disks. So far this is the process I have followed: Remove the 2nd disk from the IX2, and replaced it with a 4Tb…
TenG
  • 143
  • 6
1
vote
0 answers

Increase EXT4 size on Debian whilst preserving Data in a VM?

I've been trying to increase the partition size on one of our servers as it was created years ago and was set too small. I've increased the size in the VM that hosts this but now I'm trying to get Linux to know we've allowed more space. The details…
Shikoki
  • 53
  • 1
  • 1
  • 3