NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/37846: fdisk default argument is sometimes wrong

The following reply was made to PR bin/37846; it has been noted by GNATS.

From: Tim Rightnour <>
To: Antti Kantee <>
Subject: Re: bin/37846: fdisk default argument is sometimes wrong
Date: Wed, 23 Jan 2008 10:24:39 -0700 (MST)

 On 23-Jan-2008 Antti Kantee wrote:
 > What would you want it to do?
 Actually.. I think the easiest solution, that would keep the current
 functionality of assuming you want to operate on your boot disk, would be to
 embed a short list of disk drivers into the utility, and if bootdev isn't one 
 those, just drop usage.  (we only have like 5 or 6 disk drivers in the tree,
 and it hardly has to be kept up to date, as in reality, you probably only care
 about fd, sd and wd)
 However, short of that, I think its much much more rediculous to attempt to
 open my network device's raw partition.  The error it spits out is completely
 I could also see it's guessing be rather dangerous, if your root disk is a
 raid, it defaults to that:
 polaris# fdisk
 fdisk: primary partition table invalid, no magic in sector 0
 fdisk: Cannot determine the number of heads
 Disk: /dev/rraid0d
 Tim Rightnour <>
 NetBSD: Free multi-architecture OS
 Genecys: Open Source 3D MMORPG:

Home | Main Index | Thread Index | Old Index