Ask Your Question

GParted will not let me format partition

asked 2012-12-25 13:36:43 -0500

fedoradoesntlikeme gravatar image

I'm using fedora but I want to install windows 8 so I need to format one of my partitions as ntfs. I have two partitions, one called /dev/md126p1 and one called /dev/md126p2. /dev/md126p1 is ext4 file system and mounted at /boot and /dev/md126p2 is lvm2 pv file system and mounted at vg. I want to format /dev/md126p2 as NTFS however, when I select /dev/md126p2 then try to select Partition->Format to, Format to is unclickable? Why is this? I need to format /dev/md126p2 as NTFS!!!!!!!!


edit retag flag offensive close merge delete


There are a couple problems here. Windows doesn't use LVM, so it cannot use your lvm volume. The installer for any OS, including Windows, is capable of formatting the volume you allot to it; there is no need to make a filesystem for the installer to use.

randomuser gravatar imagerandomuser ( 2012-12-26 01:41:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-26 01:43:53 -0500

Use system-config-lvm to work with LVM.

If you are resizing populated filesystems, remember that you should shrink the filesystem before you shrink the volume.

You want to give the Windows installer empty, unallocated space - not a preformatted lv.

edit flag offensive delete link more


/dev/mdN devices are mdadm virtual block devices - linux kernel raid. The kernel handles arrays configured by the OS and by the BIOS with mdadm. It looks like you are using a RAID0 - that's the /dev/md126 - made up of two pieces, the 60gb partitions from /dev/sda and /dev/sdb.I don't suggest sharing the RAID volume with Windows, even if it does function, it just makes me nervous to rely on drivers from different operating systems for same virtual block device. I don't recommend using RAID0 either, it halves the expected lifetime of both drives, and failure of one drive means all data is lost

randomuser gravatar imagerandomuser ( 2012-12-28 21:31:41 -0500 )edit

So: resize2fs to resize your filesystem; lvresize to resize your volumes, pvresize to resize your pv (alternatively, use system-config-lvm); mdadm should let you resize your RAID stripe, leaving a bit of leftover space on each drive for the windows installation to sort out. That should get you on the path to your answer. I'm not comfortable giving you step by step instructions for these utilities, because they are potentially very destructive. If you are going to use them, I think you should read about them and understand what you are doing. Use manpages freely.

randomuser gravatar imagerandomuser ( 2012-12-28 21:37:42 -0500 )edit

Now that your original question is answered, I want to give some advice. You aren't going to have much left over on each individual drive after the resize, perhaps not enough to install windows on. By using RAID0, you're condemning your drives, and your data, to an early death. Save yourself a lot of work and back up your /home, then install windows on one drive and Fedora on the other.

randomuser gravatar imagerandomuser ( 2012-12-28 21:39:09 -0500 )edit

Question Tools


Asked: 2012-12-25 13:36:43 -0500

Seen: 1,410 times

Last updated: Dec 26 '12