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

Not able to format root partition in Arch Linux installation because already labelled

I am installing Arch Linux on a previously Windows machine. I have created the partitions, with root on sda1, and now I am trying to format it with mkfs.ext4 /dev/sda1, but it's not liking that. Apparently the partition already has a label…
1
vote
1 answer

fdisk partition is unmounted and mounted at the same time

I installed Mint on VBox. I want to learn how to create, delete, and actually, manage partitions in Linux console (yeah I know GParted, that's not the point). The problem is, when I want to delete and create a new partition, my OS goes crazy, and…
yawn
  • 21
  • 2
1
vote
0 answers

fdisk and parted won't work on a USB stick with Fedora 23 alpha 2 x86_64

So I burned a Fedora 23 alpha 2 on a 16GB USB stick through dd if=path/to/fedora.iso of=/dev/usb_device bs=512 I used bs=512 because the sectors on the stick are 512 bytes. Opening the stick in fdisk gives me the warning: WARNING: GPT (GUID…
dojoe
  • 11
  • 1
1
vote
3 answers

Truncate empy space from a raw dd image

I have a raw disk image I took using dd of a Ubuntu instance. The total disk size is 300 GB, but only 5.5 GB used. Is there a way to resize the raw dd image down to 20 GB, keeping all of the 5.5 GB of data, and just truncating empty blocks?
Justin
  • 5,328
  • 19
  • 64
  • 84
1
vote
0 answers

How to add a partition to CentOS without losing data on it

we had a CentOS 6.4 server with two RAIDs. One RAID-1 and the other RAID-5 RAID-1 had multiple partitions with OS installed on it. RAID-5 had two partitions with some data on it. In order to replicate a scenario, we had to quash RAID-1 partitions…
1
vote
1 answer

After resizing NAS box new size does not show up under df -h

We have a 500GB NAS box attached to a Linux box and it appears as /dev/sdb. However after re-sizing from 345GB to 500GB the new size is not registering. [root@localhost iscsi]# df -h Filesystem Size Used Avail Use% Mounted…
user
  • 123
  • 8
1
vote
2 answers

How can I check the partition name in FreeBSD?

I am currently running my server in the rescue mode, due to the firewall issues. In order to disable the firewall thing I would have to mount the / partition. My problem is that I dont know/remember what is the partition name to mount. I though that…
Lucas
  • 163
  • 3
  • 10
1
vote
2 answers

External HDD wrong size

I have an very interesting problem with a Seagate HDD (3TB): Under Windows the HDD has a size of ~3TB. When I connect it to Ubuntu 14.04 and try to format it with GParted, GParted tells me that the backup partition table (GPT) is corrupt and it uses…
WhiteIntel
  • 131
  • 1
  • 7
1
vote
3 answers

Cant find my harddrives in ubuntu installation?

I was trying to setup a Microserver with two 1TB harddrives as a software RAID. Somehow it didnt work and now ubuntu 14.04 is not starting. My problem is that I dont see the drives anymore when I go through the installation process again! On boot I…
Webx10
  • 65
  • 2
  • 8
1
vote
3 answers

Any way to find what is filling up my disk?

This morning I was greeted with low disk warning on my root partition. So I started with usual investigation path and obviously the result of my first command become the one as shown below. [root@my-server /]# df -h Filesystem Size Used…
Jimson James
  • 429
  • 7
  • 10
1
vote
1 answer

How do I rebuild my software RAID1 array after a drive replacement?

So I have 1and1 dedicated host with RAID 1 setup. One of the drive went bad, and they had just replaced it with a good one. Now I need to the build, but I'm not sure which drive is the old one, and which one is the new blank one. Please help. Here's…
Tam N.
  • 123
  • 6
1
vote
1 answer

Error: partition length of 6442450944 sectors exceeds the loop-partition-table-imposed maximum of 4294967295

I'm trying to create a partition on a RHEL 6.3 machine, but parted is giving me the following error: $ sudo parted /dev/vdb mkpart logical 1 Error: partition length of 6442450944 sectors exceeds the loop-partition-table-imposed maximum of…
Leo
  • 983
  • 7
  • 21
  • 39
1
vote
1 answer

aligning partition boundaries of already installed system

I have qemu raw disk which includes two partitions. The second partition is not aligned according to ssd principles. I will move this into Smartcloud environment and they suggest aligning according to 4k boundaries. How can I change starting…
seaquest
  • 698
  • 2
  • 12
  • 25
1
vote
2 answers

Mount file systems from complete disk image with several partitions and logical volumes

I have a complete disk image (dd if=/dev/sda of=foo.bin) that contains several partitions and LVM logical volumes on which there are ext4 filesystems. How do I mount one of the filesystems on this diskimage? I have the output of fdisk -l from when…
Thomas
  • 175
  • 3
  • 9
1
vote
1 answer

How do you get iSCSI multipath to discover new LUNs that have not been partitioned yet?

Oracle Linux 6.3 iscsi multipath shows LUNs with existing file system but not the raw block devices that have not been partitioned yet. When I run multipath -ll it will show a LUN that has previously been formatted with its multipath just fine. …