LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2018, 10:11 PM   #1
koda1
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Rep: Reputation: Disabled
Trouble with my Fedora partition


Hey everyone, I think that I have a problem with my partition and that I have more than one workstation on my computer due to me reinstalling Fedora once. How can i clean this up so I am using my space more efficiently. I have GParted on a USB that i can use to fix this.
Code:
NAME                              MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                                 8:0    0 931.5G  0 disk 
├─sda1                              8:1    0   200M  0 part /boot/efi
├─sda2                              8:2    0     1G  0 part /boot
└─sda3                              8:3    0 930.3G  0 part 
  ├─fedora_localhost--live00-root 253:0    0    50G  0 lvm  /
  ├─fedora_localhost--live00-swap 253:1    0   7.8G  0 lvm  [SWAP]
  └─fedora_localhost--live00-home 253:5    0 872.5G  0 lvm  /home
sdb                                 8:16   1  28.9G  0 disk 
└─sdb1                              8:17   1  28.9G  0 part /run/media/josh/D0A5-A19B
nvme0n1                           259:0    0 238.5G  0 disk 
├─nvme0n1p1                       259:1    0   200M  0 part 
├─nvme0n1p2                       259:2    0     1G  0 part 
├─nvme0n1p3                       259:3    0 193.2G  0 part 
│ ├─fedora_localhost--live-swap   253:2    0   7.8G  0 lvm  
│ ├─fedora_localhost--live-home   253:3    0 135.4G  0 lvm  
│ └─fedora_localhost--live-root   253:4    0    50G  0 lvm  
├─nvme0n1p4                       259:4    0     1M  0 part 
├─nvme0n1p5                       259:5    0  1000M  0 part 
├─nvme0n1p6                       259:6    0  17.1G  0 part 
└─nvme0n1p7                       259:7    0  1000M  0 part


Code:
Filesystem                                1K-blocks     Used Available Use% Mounted on
devtmpfs                                    8109024        0   8109024   0% /dev
tmpfs                                       8123568   251116   7872452   4% /dev/shm
tmpfs                                       8123568     2060   8121508   1% /run
tmpfs                                       8123568        0   8123568   0% /sys/fs/cgroup
/dev/mapper/fedora_localhost--live00-root  51343840 11712304  36993712  25% /
tmpfs                                       8123568      184   8123384   1% /tmp
/dev/sda2                                    999320   203428    727080  22% /boot
/dev/sda1                                    204580    18064    186516   9% /boot/efi
/dev/mapper/fedora_localhost--live00-home 899474668 90078044 763636112  11% /home
tmpfs                                       1624712       24   1624688   1% /run/user/42
tmpfs                                       1624712    19380   1605332   2% /run/user/1000
/dev/sdb1                                  30297088   322688  29974400   2% /run/media/josh/D0A5-A19B
 
Old 09-22-2018, 03:15 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi & Welcome to Linux Questions.

Looking at the information that you posted you have Fedora installed on two HDD devices.

Fedora is installed on sda and sdb.

I'm afraid I'm not good with the /boot/efi partitions sorry.

Do you not want Fedora installed twice?
 
Old 09-22-2018, 05:44 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,537

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
What exactly do you want to do? You have two UEFI LVM installs on separate drives, each with its own efi partition. Which one has the data you want to keep, the SSD or the 1TB drive? Just format the drive partition(s) on the drive you don't use/want. You don't really indicate what the problem is. Can you boot either/both instance(s) of Fedora?
 
Old 09-22-2018, 10:50 PM   #4
koda1
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
What I want to do is delete that Fedora that I am not currently using. I did reinstall Fedora to try and fix something (forget what it was) and in the process I installed it in another location without deleting the original. I ran fdisk -l to give you guys more information. What I would like to do is delete the Fedora workstation that i am not actually using and clear up unused disk space. Here is some more information

Code:
[root@Fedora josh]# fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 22729A88-E58B-4A13-97A2-926B963ECBFB

Device       Start        End    Sectors   Size Type
/dev/sda1     2048     411647     409600   200M EFI System
/dev/sda2   411648    2508799    2097152     1G Linux filesystem
/dev/sda3  2508800 1953523711 1951014912 930.3G Linux LVM


Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 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: gpt
Disk identifier: 536CE795-4ABA-459F-8D0D-6970B1D2DC25

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1      2048    411647    409600   200M EFI System
/dev/nvme0n1p2    411648   2508799   2097152     1G Linux filesystem
/dev/nvme0n1p3   2508800 407666687 405157888 193.2G Linux LVM
/dev/nvme0n1p4 407666688 407668735      2048     1M BIOS boot
/dev/nvme0n1p5 460095488 462143487   2048000  1000M Windows recovery environment
/dev/nvme0n1p6 462143488 498069503  35926016  17.1G Windows recovery environment
/dev/nvme0n1p7 498069504 500117503   2048000  1000M Lenovo boot partition


Disk /dev/mapper/fedora_localhost--live00-root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora_localhost--live00-swap: 7.8 GiB, 8388608000 bytes, 16384000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora_localhost--live-swap: 7.8 GiB, 8388608000 bytes, 16384000 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_localhost--live-home: 135.4 GiB, 145361993728 bytes, 283910144 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_localhost--live-root: 50 GiB, 53687091200 bytes, 104857600 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_localhost--live00-home: 872.5 GiB, 936839741440 bytes, 1829765120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
[root@Fedora josh]#
 
Old 09-22-2018, 11:21 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Let's see "pvdisplay"
 
Old 09-23-2018, 11:09 AM   #6
koda1
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Code:
[root@Fedora josh]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/nvme0n1p3
  VG Name               fedora_localhost-live
  PV Size               193.19 GiB / not usable 3.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              49457
  Free PE               0
  Allocated PE          49457
  PV UUID               8fQy8z-rdsZ-aB6O-X9ae-S8gb-cWjr-B7FnaR
   
  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               fedora_localhost-live00
  PV Size               <930.32 GiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              238160
  Free PE               0
  Allocated PE          238160
  PV UUID               l2tXTb-VidN-ndRC-MFf1-JhHF-tV30-KZRCJb

Last edited by koda1; 09-23-2018 at 11:10 AM.
 
Old 09-23-2018, 10:43 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
I'd simply pvremove /dev/nvme0n1p3 - you'll have to force it due to the vg.
Then you can delete the partition itself if you wish, or simply re-use it. For /dev/nvme0n1p2 just reformat/remove it.
 
Old 09-24-2018, 04:03 PM   #8
koda1
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Code:
[root@Fedora josh]# pvremove /dev/nvme0n1p3
  Can't open /dev/nvme0n1p3 exclusively.  Mounted filesystem?
[root@Fedora josh]# pvremove -ff /dev/nvme0n1p3
  Can't open /dev/nvme0n1p3 exclusively.  Mounted filesystem?
[root@Fedora josh]#
I think it is mounted so I cannot do it. Should I boot into GParted?
 
Old 09-24-2018, 04:49 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Yes, sorry about that - always when screwing with partitions. You'll probably need to do a "vgchange -an" to deactivate the lvs in that pv. Make sure the liveCD has LVM "baked in" - use the Fedora install image for example.
 
  


Reply



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
Trouble deleting my Ubuntu partition to make more space for my Fedora 26 partition Sol33t303 Linux - Software 33 09-19-2017 07:47 AM
Partition trouble: Gparted errors and Slackware says partition overlap Kallaste Linux - Newbie 9 06-28-2012 07:05 AM
Ext3 partition error after trouble with fedora installation iorulezz Linux - Hardware 8 06-17-2009 03:21 AM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
trouble installing fedora 3 on dos partition adin Linux - General 2 10-01-2005 09:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:19 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