Quantcast
Viewing latest article 2
Browse Latest Browse All 11

Which partition is my OS installed on?

Image may be NSFW.
Clik here to view.
Question

I want to know which partition OS installed on my server.
Below is the fdisk and df command outputs from my server.

[root@ ~]# fdisk -l
Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1058     8393962+  82  Linux swap / Solaris
/dev/sda3            1059        7457    51399967+  83  Linux[root@ ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              48G   12G   34G  26% /
/dev/sda1              99M   12M   82M  13% /boot
tmpfs                 7.9G     0  7.9G   0% /dev/shm

I noticed that sda1 has an asterisk on the Boot field. Does it signify that the OS is installed in that partition?

I also came upon this article, but I just want to confirm if the OS is installed on sda1.

Is there any linux command to run or files to open to see which partition the OS is installed on?

Asked by Mark

Image may be NSFW.
Clik here to view.
Answer

Well technically speaking, in your case, it’s installed on two partitions – sda1 and sda3. sda1 is mounted as /boot. This is where the kernel is held. sda3 is the root partition, where the rest of the OS is installed.

Answered by EEAA

Viewing latest article 2
Browse Latest Browse All 11

Trending Articles