35
# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 identifier: 0x3b7e273f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   266242047   133017600    7  HPFS/NTFS/exFAT
/dev/sda3       266242048   976771071   355264512    7  HPFS/NTFS/exFAT

Is there a way to find out on which of the listed partitions is my linux distribution installed on?

I installed it with Wubi. Ubuntu is my distribution.

I'm aware of a similar question here, but it doesn't seem to provide a concise answer.

Tool
  • 513

4 Answers4

39

In a terminal, run the command df and look at the output. The column headed "Mounted On" will have a "/" against the partition that holds your root filesystem. This is where your system is installed.

Jazz
  • 2,755
7

Ok so if you're running Ubuntu 12.04 you should have GParted (a partitioning tool) installed, to find it click on the Ubuntu launcher icon and type GParted and it should show up like this:

Click on it and then you should get something like this:

Your Ubuntu partition will be on the one which has / in the mount point column. Windows usually takes primary partitions so Ubuntu is not likely to be /dev/sda1 or /dev/sda2, but feel free to post a screenshot of what your GParted shows if you need more help. Ubuntu is usually installed on ext File Systems as shown as an example in my screenshot above.

Oyibo
  • 1,917
0

For ubuntu 22.04.4 LTS, booted with a USB loaded with ubuntu installation disk via the option Try ubuntu, when running the following command

sudo fdisk -l

There's a Type where I can identify which partition the ubuntu was installed on:

EFI system

Linux filesystem

Then I can mount it and reset a user password in my case.

Harry
  • 151
0

The non=NTFS partitions are where your ubuntu is. Since windows cannot deal with EXT4 file system, the above screen from windows is not useful to you to determine much about Ubuntu drives. Use GPARTED screen for that. I have a similar setup with ubuntu and windows dual boot. I have created two other partitions to store my backups. One has windows partition backup and one has ubuntu backup. I boot of ubuntu live CD and use FSARCHIVER to make a ubuntu backup. I use Ghost (old 2003) version to make a backup of windows partition. Ubuntu backup seems to take care of GRUB and it seems to take it from sda1. If the whole system conks out and now you can't boot, generally using system rescue CD, I am able to boot off the existing Ubuntu and then use Sudo update-grub to make grub and ubuntu functional again. Generally that brings back my windows booting ability too. Hope this helps.

user275173
  • 76
  • 2