Ask Your Question
2

uninstall windows and reallocate HD partition

asked 2017-09-26 20:17:05 -0500

contra gravatar image

updated 2017-09-28 07:33:00 -0500

Hey Guys,

New to linux and have had Fedora and Windows 10 set up as a dual boot on my Dell XPS 13. Really like Fedora and want to get rid of all the Windows partitions to maximize available space on my 128GB SSD.

Can I delete all partitions from the Fedora "Disks" utility and then somehow expand the 37GB Fedora partition to fill the whole HD? I'm concerned about deleting too much and not being able to boot up!

My Disks:

Model: ATA TOSHIBA THNSNK12 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  525MB   524MB   fat32        EFI System Partition          boot, esp
 2      525MB   660MB   134MB                Microsoft reserved partition  msftres
 3      660MB   89.9GB  89.3GB  ntfs         Basic data partition          msftdata
 5      89.9GB  91.0GB  1074MB  ext4
 6      91.0GB  128GB   36.5GB                                             lvm
 4      128GB   128GB   527MB   ntfs                                       hidden, diag

NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda               8:0    0 119.2G  0 disk 
├─sda1            8:1    0   500M  0 part /boot/efi
├─sda2            8:2    0   128M  0 part 
├─sda3            8:3    0  83.1G  0 part 
├─sda4            8:4    0   503M  0 part 
├─sda5            8:5    0     1G  0 part /boot
└─sda6            8:6    0    34G  0 part 
  ├─fedora-root 253:0    0  30.5G  0 lvm  /
  └─fedora-swap 253:1    0   3.5G  0 lvm  [SWAP]
sdb               8:16   1   7.2G  0 disk 
└─sdb1            8:17   1   7.2G  0 part /run/media/gfalck/C4E0-2F48

Thanks!

edit retag flag offensive close merge delete

Comments

Could you also post the output of "sudo parted /dev/sda print ; sudo lsblk" I'm having a hard time understanding your partitions from the image.

jcall gravatar imagejcall ( 2017-09-28 01:32:43 -0500 )edit

thanks for the cool terminal command jcall, good to know. I have updated my question with the output,

cheers

contra gravatar imagecontra ( 2017-09-28 07:24:55 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2017-09-28 09:03:54 -0500

florian gravatar image

updated 2017-09-28 09:19:45 -0500

If you want to delete all Windows-related partitions, you can delete sda2,sda3, and sda4.

You can add the free space that you gain to the your existing LVM Volume Group, then allocate it to the Logical Volume fedora-root.

There a several guides available on ask.fedora and on the internet in general.
The steps are:

  1. Expand your Volume Group (VG), example instructions
  2. Expand your Logical Volume within the VG, example instructions

(One quick solution without the need to understand and learn LVM is to boot a Fedora Live system, install blivet-gui and use the GUI to add the free space to your LVM.)

Do NOT delete sda1 (ESP), sda5 (boot), or sda6 (LVM)!

LVM Overview

Use pvs, vgs, lvs (as root) to learn more about your LVM.

edit flag offensive delete link more

Comments

Thanks florian! I will attempt to take the more technical approach you outlined over relying on a GUI to gain further understanding.

cheers!

Greg

contra gravatar imagecontra ( 2017-09-28 17:41:42 -0500 )edit

Thanks again florian, the video at link 1 was very informative and easy to follow.

contra gravatar imagecontra ( 2017-10-02 17:20:35 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-09-26 20:17:05 -0500

Seen: 451 times

Last updated: Sep 28 '17