+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Member level 1
    Points: 936, Level: 6

    Join Date
    Sep 2015
    Posts
    39
    Helped
    0 / 0
    Points
    936
    Level
    6

    How to Identify CentOS and Ubuntu Paritions?

    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?

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 81,430, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,348
    Helped
    4456 / 4456
    Points
    81,430
    Level
    69

    Re: How to Identify CentOS and Ubuntu Paritions?

    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.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



    •   AltAdvertisement

        
       

  3. #3
    Member level 1
    Points: 936, Level: 6

    Join Date
    Sep 2015
    Posts
    39
    Helped
    0 / 0
    Points
    936
    Level
    6

    Re: How to Identify CentOS and Ubuntu Paritions?

    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 /



    •   AltAdvertisement

        
       

  4. #4
    Super Moderator
    Points: 81,430, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,348
    Helped
    4456 / 4456
    Points
    81,430
    Level
    69

    Re: How to Identify CentOS and Ubuntu Paritions?

    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:
    Click image for larger version. 

Name:	Screenshot_20190911_084126.png 
Views:	5 
Size:	58.1 KB 
ID:	155461
    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.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.


    1 members found this post helpful.

--[[ ]]--