LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-19-2018, 03:13 PM   #1
steven.mine
LQ Newbie
 
Registered: Apr 2018
Location: Oregon
Posts: 9

Rep: Reputation: Disabled
Wiping Windows from Dual Boot: Fedora 27


Hello Forum,

I've been using Fedora Linux 26 on a dual boot machine for about 9 months. I've received a message that /home is running out of space. I use Linux exclusively now and would like to just remove Windows 10 Enterprise from the machine entirely.

I need to keep all of my Linux install and make sure that I increase the size of /home. I have made a Fedora Live boot USB and have gparted installed. Any help would be appreciated. Below my signature I've included the output of fdisk -l.

Thank you for your time. I'm really glad this forum is here.

-Steven

$ sudo fdisk -l
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3660e2bf

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1126399 1124352 549M 7 HPFS/NTFS/exFAT
/dev/sda2 1126400 330772479 329646080 157.2G 7 HPFS/NTFS/exFAT
/dev/sda3 330772480 332867583 2095104 1023M 7 HPFS/NTFS/exFAT
/dev/sda4 332873665 488396799 155523135 74.2G f W95 Ext'd (LBA)
/dev/sda5 332873728 348395519 15521792 7.4G 7 HPFS/NTFS/exFAT
/dev/sda6 348397568 350494719 2097152 1G 83 Linux
/dev/sda7 350496768 488396799 137900032 65.8G 8e Linux LVM

Disk /dev/mapper/fedora-root: 39.7 GiB, 42622517248 bytes, 83247104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/fedora-swap: 6.7 GiB, 7172259840 bytes, 14008320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/fedora-home: 19.4 GiB, 20807942144 bytes, 40640512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[sackerman@localhost ~]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs tmpfs 7.8G 3.0M 7.8G 1% /dev/shm
tmpfs tmpfs 7.8G 2.0M 7.8G 1% /run
tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/fedora-root ext4 39G 10G 27G 27% /
tmpfs tmpfs 7.8G 148K 7.8G 1% /tmp
/dev/sda6 ext4 976M 178M 732M 20% /boot
/dev/mapper/fedora-home ext4 19G 16G 2.1G 89% /home
tmpfs tmpfs 1.6G 24K 1.6G 1% /run/user/42
tmpfs tmpfs 1.6G 5.8M 1.6G 1% /run/user/1000
@localhost ~]$ sudo parted /dev/sda "print free"
Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
32.3kB 1049kB 1016kB Free Space
1 1049kB 577MB 576MB primary ntfs boot
2 577MB 169GB 169GB primary ntfs
3 169GB 170GB 1073MB primary ntfs
170GB 170GB 3113kB Free Space
4 170GB 250GB 79.6GB extended lba
5 170GB 178GB 7947MB logical ntfs
6 178GB 179GB 1074MB logical ext4
7 179GB 250GB 70.6GB logical lvm
250GB 250GB 188kB Free Space
 
Old 04-19-2018, 05:17 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
You should be able to simply delete the Win10 partitions - /dev/sda[123]. Create a single partition (including that currently trapped unallocated space) and do a pvcreate on it, then add it to the vg that contains /home. Expand /home.

Done.
 
1 members found this post helpful.
Old 04-20-2018, 11:01 AM   #3
steven.mine
LQ Newbie
 
Registered: Apr 2018
Location: Oregon
Posts: 9

Original Poster
Rep: Reputation: Disabled
I'm looking into that now. I'll post my progress. Thanks for the reply.
 
Old 04-20-2018, 11:59 AM   #4
steven.mine
LQ Newbie
 
Registered: Apr 2018
Location: Oregon
Posts: 9

Original Poster
Rep: Reputation: Disabled
Ok, I have deleted the partitions, but I am not sure how to create a single partition, do a pvcreate on it, then add it to the vg that contains /home and expand /home. I would appreciate any help with that part. I have a snapshot of Gparted, maybe that will help.

Thank you,

Steven
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2018-04-20 09-53-15.png
Views:	31
Size:	52.7 KB
ID:	27463  
 
Old 04-20-2018, 04:59 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
If you are going to use LVM, and it's very useful as this illustrates, get to know it. RHEL publish a free to download LVM Admin guide that explains the concepts, uses and commands - go get it. Also has scenarios like yours that it steps through.
There are hundreds of LVM articles on the web, but I like the guide.
 
Old 04-24-2018, 04:19 PM   #6
steven.mine
LQ Newbie
 
Registered: Apr 2018
Location: Oregon
Posts: 9

Original Poster
Rep: Reputation: Disabled
Well, I did delete the Windows partitions and looked through most of the admin guide for LVM that was suggested. I still can't figure it out. I now just have a system that has the same partitions on it. I'm not sure where exactly to go from here. Anyone's help would be appreciated.

-Steven
 
Old 04-24-2018, 04:31 PM   #7
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
IN your picture it looks like you already did the pvcreate on it, since it's a single lvm partition. You just need to add it to the VG and expand /home now.
 
Old 04-24-2018, 06:23 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Sorry, that manual has become more of a reference than it was. It has the info in it, but not as a "tutorial" so much. LVM is a emulation layer that allows you to consolidate non-contiguous extents (usually partitions) into a logical view. Let's see these commands.
Code:
sudo pvs -o+pv_used
sudo vgs
sudo lsblk -f
sudo parted /dev/sda "print free"
df -hT

Last edited by syg00; 04-24-2018 at 06:24 PM. Reason: parted
 
Old 05-02-2018, 01:12 PM   #9
steven.mine
LQ Newbie
 
Registered: Apr 2018
Location: Oregon
Posts: 9

Original Poster
Rep: Reputation: Disabled
Output from Commands

Below is the output from the commands. Nice be able to see this. Nine months of use and I'm still learning the basics of using the OS. Sorry for the slow response, we just adopted a newborn to add to our existing 3 children, we moved and I'm going to school. I really appreciate the help.

It looks like I have over 85GB in my home. After I deleted my Windows partitions I just reinstalled fedora, am I reading this correctly? Thanks again.

-Steven

Code:
sudo pvs -o+pv_used:

PV         VG       Fmt  Attr PSize   PFree Used   
  /dev/sda2  fedora00 lvm2 a--  157.72g    0  157.72g
  /dev/sda6  fedora   lvm2 a--   65.75g    0   65.75g

sudo vgs:

VG       #PV #LV #SN Attr   VSize   VFree
  fedora     1   3   0 wz--n-  65.75g    0 
  fedora00   1   3   0 wz--n- 157.72g    0 

sudo lsblk -f:

AME              FSTYPE LABEL UUID                                   MOUNTPOINT
sda                                                                   
├─sda1            ext4         e256aeab-0a42-446c-8e93-87717fb39114   /boot
├─sda2            LVM2_m       EI39au-2Qi8-tcZS-Qqcp-Wvf1-XdWb-EKkqaJ 
│ ├─fedora00-root ext4         98ff0cdb-ef70-4d71-a91c-48eaea2363b7   /
│ ├─fedora00-swap swap         d6e29019-b6cc-4988-ba7c-e365269f127e   [SWAP]
│ └─fedora00-home ext4         3b1fa6d4-a940-4300-943f-dbeb34f23c8c   /home
├─sda4                                                                
├─sda5            ext4         f9040eca-3abe-4991-b35e-00ed6171eb9b   
└─sda6            LVM2_m       6skol0-9cad-T0Dl-g0Xv-HDuw-vX16-wOfoiX 
  ├─fedora-swap   swap         ab22cfcd-21b2-433d-add0-508491012e40   
  ├─fedora-home   ext4         b610e9ac-0b70-44c1-b5de-ce38e2cae3fc   
  └─fedora-root   ext4         904fc643-37f8-4f9a-bb62-826b0985ea34   
sr0

sudo parted /dev/sda "print free":

Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system  Flags
        32.3kB  1049kB  1016kB            Free Space
 1      1049kB  1075MB  1074MB  primary   ext4         boot
 2      1075MB  170GB   169GB   primary                lvm
        170GB   170GB   1016kB            Free Space
 4      170GB   250GB   79.6GB  extended               lba
        170GB   178GB   7942MB            Free Space
 5      178GB   179GB   1074MB  logical   ext4
 6      179GB   250GB   70.6GB  logical                lvm
        250GB   250GB   188kB             Free Space

df -hT:

Filesystem                Type      Size  Used Avail Use% Mounted on
devtmpfs                  devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs                     tmpfs     7.8G  8.6M  7.8G   1% /dev/shm
tmpfs                     tmpfs     7.8G  2.0M  7.8G   1% /run
tmpfs                     tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/mapper/fedora00-root ext4       49G  6.5G   41G  14% /
tmpfs                     tmpfs     7.8G  2.0M  7.8G   1% /tmp
/dev/mapper/fedora00-home ext4       98G  6.9G   86G   8% /home
/dev/sda1                 ext4      976M  230M  680M  26% /boot
tmpfs                     tmpfs     1.6G   16K  1.6G   1% /run/user/42
tmpfs                     tmpfs     1.6G  6.9M  1.6G   1% /run/user/1000

Last edited by steven.mine; 05-03-2018 at 01:17 AM.
 
Old 05-02-2018, 07:33 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Quote:
Originally Posted by steven.mine View Post
I really appreciate the help.
It wouldn't appear so - you asked for assistance then just re-installed over the top ?. Very poor form IMHO.
Quote:
It looks like I have over 85GB in my home. After I deleted my Windows partitions I just reinstalled fedora, am I reading this correctly?
Code:
Filesystem                Type      Size  Used Avail Use% Mounted on
devtmpfs                  devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs                     tmpfs     7.8G  8.6M  7.8G   1% /dev/shm
tmpfs                     tmpfs     7.8G  2.0M  7.8G   1% /run
tmpfs                     tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/mapper/fedora00-root ext4       49G  6.5G   41G  14% /
tmpfs                     tmpfs     7.8G  2.0M  7.8G   1% /tmp
/dev/mapper/fedora00-home ext4       98G  6.9G   86G   8% /home
/dev/sda1                 ext4      976M  230M  680M  26% /boot
tmpfs                     tmpfs     1.6G   16K  1.6G   1% /run/user/42
tmpfs                     tmpfs     1.6G  6.9M  1.6G   1% /run/user/1000
Actually you have 86G free from 98G allocated to /home. When posting output use [code] tags as I have done for you - that way we can read it too.

You now have 2 complete Fedora installs; if and when you want to consolidate the space - without re-installing - LVM has the tools to allow that space to be reclaimed and added to your active system.
 
Old 05-03-2018, 02:01 AM   #11
steven.mine
LQ Newbie
 
Registered: Apr 2018
Location: Oregon
Posts: 9

Original Poster
Rep: Reputation: Disabled
More questions

Wrong post.

Last edited by steven.mine; 05-03-2018 at 02:06 AM. Reason: No quotation used.
 
Old 05-03-2018, 02:05 AM   #12
steven.mine
LQ Newbie
 
Registered: Apr 2018
Location: Oregon
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
It wouldn't appear so - you asked for assistance then just re-installed over the top ?. Very poor form IMHO.
Poor form? I suppose you could look at it that way. Actually when I deleted my Windows partition, I got an error when I took about my USB stick and restarted. I think it said,
Code:
No partition table found!
When I hit enter I could then boot into Fedora. If I remember right, I still saw the option to boot into Windows. I needed this machine running, so I reinstalled. Simple as that. If it's not obvious, I don't know what I'm doing and I'm trying to figure it out. I'm not afraid to try stuff myself; I really don't need or appreciate passive condescension though. That's what your reply strikes me as. If that is not, no harm done, eh?

I'll post how I do it, so some other person may be able to fix their situation. It may be a little while before I'm able to figure out how to fix the whole thing. I cannot believe I did that. I thought it didn't look right. At least I know how to do a backup.
 
  


Reply

Tags
dual boot, win10



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wiping out Windows and Keeping Fedora steven.mine Linux - Desktop 1 04-20-2018 09:32 PM
Windows 7 Fedora 20 Dual Boot - Fedora Installation Failing to Boot BlooMeth Fedora 4 08-15-2015 01:17 PM
LXer: My first-ever Windows installation experience, a Fedora 13-Windows 7 dual-boot LXer Syndicated Linux News 0 08-09-2010 07:50 AM
Building dual boot Windows 7 & Fedora 11 machine. Fedora 11 boot issue tedscott Fedora 0 11-14-2009 09:57 PM
Dual boot -fedora core 4 and windows xp- problem booting from windows xp cd r_desu Linux - Newbie 4 06-17-2007 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration