Find currently used partition

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
gpatto1
Level 1
Level 1
Posts: 2
Joined: Sun Jul 21, 2019 6:31 am

Find currently used partition

Post by gpatto1 » Sun Jul 21, 2019 7:05 am

Hi All,
I currently have mint 18.3 installed on a single 1 terabyte disc which has 4 partitions on it. one is a small UEFI partition which is dos. one is a roughly 8 GB
swap partition. I have two other partitions which are both roughly 470GB ea and are ext4. i have the UUID of both partitions but I do not know which is the currently used partition. I need to reformat the unused partition and install a later mint 19.1 on it but am reluctant to guess which partition to reformat. Can anyone please help an old newbie?
gpatto1

sgtor
Level 4
Level 4
Posts: 333
Joined: Sat May 13, 2017 9:39 pm

Re: Find currently used partition

Post by sgtor » Sun Jul 21, 2019 8:18 am

The output of these two commands should give enough info for you to figure it out but really lsblk is enough.

Code: Select all

df

Code: Select all

lsblk
fdisk will give you pretty much the same info

Code: Select all

sudo fdisk -l
So what you're looking for there would be your Linux directories like:
/
/home
/mnt
/root
/boot
you probably only have /

You can also run gparted for a graphical view.
To install it

Code: Select all

apt install gparted
I almost forgot blkid to see the UUID's

Code: Select all

blkid

gm10
Level 19
Level 19
Posts: 9779
Joined: Thu Jun 21, 2018 5:11 pm

Re: Find currently used partition

Post by gm10 » Sun Jul 21, 2019 8:21 am

gpatto1 wrote:
Sun Jul 21, 2019 7:05 am
i have the UUID of both partitions but I do not know which is the currently used partition. I need to reformat the unused partition and install a later mint 19.1 on it but am reluctant to guess which partition to reformat. Can anyone please help an old newbie?
This command gives you the devices and partitions along with the mount points and UUIDs, with your current system device obviously being mounted to /:

Code: Select all

lsblk -f
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

gpatto1
Level 1
Level 1
Posts: 2
Joined: Sun Jul 21, 2019 6:31 am

Re: Find currently used partition

Post by gpatto1 » Sun Jul 21, 2019 9:33 am

Thank You gm10,
Will try this tomorrow and I will report back
gpatto1

blockhead47
Level 2
Level 2
Posts: 86
Joined: Wed Jun 15, 2016 4:50 pm
Location: Chicago, IL, USA

Re: Find currently used partition

Post by blockhead47 » Sun Jul 21, 2019 9:52 am

You might also try the command:

Code: Select all

lsblk -p -o Model,Name,Size,fstype,Label,UUID,Mountpoint -x name
Which shows you almost everything, with one command.

Post Reply

Return to “Hardware Support”