Bug 188 - disklabel uses c partition by default, kernel says d
Summary: disklabel uses c partition by default, kernel says d
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-01-25 16:10 UTC by Heikki Suonsivu
Modified: 1996-02-08 00:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heikki Suonsivu 1995-01-25 16:10:00 UTC
disklabel -w -r a disk which doesn't have a label; kernel creates a 
dummy label with d partition as the whole disk.  Disklabel tries to use
c partition and gets "device not configured".

Fix: 

Change disklabel to use d partition by default, or modify kernel to 
create c partition as the whole disk (maybe both c and d).
How-To-Repeat: 
Install factory-fresh disk and try to disklabel it with

disklabel -w -r sd1 disktype
Comment 1 pst freebsd_committer freebsd_triage 1996-02-08 00:15:16 UTC
State Changed
From-To: open->closed

Fixed with new slice code.