Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33760 - The kernel does not recognize BSD-disklabels created by parted
Summary: The kernel does not recognize BSD-disklabels created by parted
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: (DEPRECATED)
Depends on:
Reported: 2003-11-18 07:36 UTC by Sveinung Kvilhaugsvik
Modified: 2004-07-02 15:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

The .config in /usr/src/linux (.config,31.95 KB, text/plain)
2003-11-19 03:22 UTC, Sveinung Kvilhaugsvik

Note You need to log in before you can comment on or make changes to this bug.
Description Sveinung Kvilhaugsvik 2003-11-18 07:36:58 UTC
I compiled the latest gentoo-source kernels (r8) using "genkern --config". I
turned on BSD-disklabelsupport i the disklabelsection. However, gentoo still
refuses to read the disklabel from my secund harddrive (hdb), stating it has an
unknown disklabel on it.

The disklabel was created using parted, and it works fine in Knoppix. This is
not a slice, but the entire disk.

Reproducible: Always
Steps to Reproduce:
1.use parted to produse bsd-disklabel
2.compile kernel with BSD-disklanbel support enabled

Actual Results:  
Noting. The kernel tells me it can not reconise the disklabel on hdb

Expected Results:  
Read the disklabel and give me the my partisions so I can mount them like
knoppix does

I compiled useing genkern
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-11-18 08:21:03 UTC
Can we have some sort of .config please?
Comment 2 Sveinung Kvilhaugsvik 2003-11-19 03:22:01 UTC
Created attachment 20942 [details]
The .config in /usr/src/linux
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-11-28 08:43:29 UTC
What command refuses to read the disklabel? Remember that you have UFS support compiled in as a module so you'll need to add "ufs" to your modules.autoload.d or run "modprobe ufs" to access UFS filesystems.
Comment 4 Sveinung Kvilhaugsvik 2003-11-28 09:27:51 UTC
What command refuses to read the disklabel? 
Comands? Isnt the disklabel supposed to be recognized at boot? dmesg tells me it does not reconice the disklabel of hdb:
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 p7 >
 /dev/ide/host0/bus0/target1/lun0: unknown partition table

> Remember that you have UFS support compiled in as a module
The hardisk contains a ext3 filesystem, not a UFS filesystem
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2003-11-28 11:41:07 UTC
Can you see if you get the same effect with vanilla-sources-2.4.20?
Comment 6 Sveinung Kvilhaugsvik 2003-12-07 06:36:15 UTC
I culd not find vanilla-sources-2.4.20, however I configured and installed vanilla-sources-2.4.23. I still have the same problem.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2003-12-07 06:38:06 UTC
We can't do that much if you continue to get this in a recent vanilla kernel. Can I suggest taking this problem to the LKML. An alternative is to try a 2.6x kernel and see if that gives you the same problem.
Comment 8 Sveinung Kvilhaugsvik 2004-04-21 12:03:28 UTC
I have tryed using the 2.6 kernel, the same problem appears. I have taken youre advice and taken it to the LKML. (
Comment 9 Sveinung Kvilhaugsvik 2004-07-02 15:55:52 UTC
The solution for this is to add support for the BSD filesystem (UFS), even if the harddisk with the BSD-disklabel only contains a ext3-filesystem. 
Dont ask my why (perhaps code belonging in BSD-disklabel placed in UFS?), but it appears to be the only working solution.