Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to Identify CentOS and Ubuntu Paritions?

Status
Not open for further replies.

emaq

Member level 4
Joined
Sep 17, 2015
Messages
78
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,288
Activity points
2,001
I have a triple boot systems... Win 7, CentOS and Ubuntu.

It is is easy to distinguish the Windows NTFS partition but the CentOS and Ubuntu both have EXT4 file system.

How can I specifically identify the Ubuntu partition(s) including its swap partition?
 

Windows probably won't help you but if you open a terminal window in Linux try one of these:
lsblk -a -fs
sudo fdisk -l (lower case 'L')

You can also try graphically with 'Disks' or 'gparted' if they are installed in your distro.

Brian.
 

Thanks Brian... of course Linux shows all the partitions.
If I use df -h on Ubuntu it shows the following 3 partitions which I assume are specifically Ubuntu partitions... correct if I am wrong.
/dev/sda5 /swap
/dev/sda8 /boot
/dev/sda9 /
 

Almost certainly yes.
However, if you use the "lsblk -fs" instead it will also tell you which type of filing system is on the partitions. The letters "/dev/SDx" tell you which physical or OS device it is referring to.
This is a comparison of the commands on my system here:
Screenshot_20190911_084126.png
The entries show "sda1" is vfat because it is the UEFI boot partition,
"sda2" is formatted to Linux ext4 filing system
"sdb1" is a second drive, formatted to ntfs (it actually has Linux on it)
"sdc1" is a third drive holding legacy Windows although I never use it.
"sr0" is a Blu-Ray optical drive.

Brian.
 
  • Like
Reactions: emaq

    emaq

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top