Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-05-2017, 11:13 PM   #16
Registered: Aug 2007
Posts: 478

Rep: Reputation: 151Reputation: 151

GRUB is properly identifying the partitions.
I confirmed this by entering the grub prompt and executing ls

grub > ls
hd0, (hd0,msdos1,bsd1),(hd0,msdos1,bsd2),(hd0,msdos1,bsd3),(hd0,msdos1,bsd4),(hd0,msdos1,bsd5),(hd0,msdos 1,bsd6),(hd0,msdos1,bsd7),(hd0,msdos1,bsd8),(hd0,msdos1,bsd9),(hd0,msdos)

This is your answer right there. These are not normal partitions. FreeBSD has created sub-partitions of the first msdos partition 1. (hd0,msdos1,bsd1),(hd0,msdos1,bsd2), .. The bsd partitions bsd1 to bsd9 are all contained inside the only msdos partition.

You do only have a single dos partition. FreeBSD divided this up into 9 sub-partitions. Some tools such as grub2 which is quite advanced can see this. Standard fdisk can not. UEFI machines being newer apparently can as well.

This is your answer.

MBR only allows 4 partitions on the primary and everything else must be on the extended partition.
GTP allows everything on the primary partition.
Some clarifications. MBR allows 4 primary partitions one of which can be an extended partition. An extended partition contains a logical partition which contains data and can chain to another extended partition. The chaining of extended partitions is unlimited thus the number of logical partitions is unlimited.

An old disk I have has two extended partitions and thus two logical partitions sdc5,sdc6 inside them. Only the first extended partition is given the designation sdc4. All other are hidden which is why many people think that all logical partitions are contained in the first extended partition. If you have more than one logical partition do
sudo sfdisk --show-extended -l /dev/sdX to show the full chaining.

11:49 PM $ sudo sfdisk --show-extended -l /dev/sdc

Disk /dev/sdc: 77825 cylinders, 255 heads, 63 sectors/track
Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdc1          0+     12      13-    104391   83  Linux
/dev/sdc2         13    1970    1958   15727635   83  Linux
/dev/sdc3       2493   55042   52550  422107875   83  Linux
/dev/sdc4      55043   77824   22782  182996415    5  Extended

/dev/sdc5      55043+  61544-   6502-  52224000   83  Linux
    -          61545   62067-    523-   4194667+   5  Extended
    -          55043   55042       0          0    0  Empty
    -          55043   55042       0          0    0  Empty

/dev/sdc6      61545+  62067-    523-   4194304   83  Linux
    -          61545   61544       0          0    0  Empty
    -          61545   61544       0          0    0  Empty
    -          61545   61544       0          0    0  Empty
GPT ( not GTP ) can have 128 primary partitions and don't need extended ones.
1 members found this post helpful.
Old 08-02-2017, 11:08 PM   #17
LQ Newbie
Registered: Feb 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled
Issue resolved

The disk was partitioned based on MBR and BSD DISK Label scheme.
Once I enabled the BSDDISKLABEL kernel configuration parameter in linux,
all the partitions are properly displayed.

Thanks everyone for your inputs



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Identifying who or what rebooted a linux server SLES 11 njdave70 Linux - Server 1 12-08-2015 10:20 AM
LXer: Identifying File types in Linux LXer Syndicated Linux News 0 01-10-2013 11:40 AM
Identifying machine harware compatibility on linux. govindannv Linux - Newbie 3 05-06-2011 04:00 PM
System call for identifying linux distribution info1686 Programming 1 07-16-2009 06:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration