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: Antti Kantee <>
Subject: Re: bin/37846: fdisk default argument is sometimes wrong
Date: Wed, 23 Jan 2008 12:23:22 +0200

 On Wed Jan 23 2008 at 06:45:00 +0000, Tim Rightnour wrote:
 > >Description:
 > While netbooting my ofppc machine on NetBSD 4.99.49, I accidentally ran
 > fdisk -u and forgot the disk argument, and was presented with this little 
 > gem:
 > # fdisk -u
 > fdisk: /dev/rpcn0c: No such file or directory
 > my network device is a pcn0, and thats what I've mounted root via.
 > >How-To-Repeat:
 > boot with NFS root, run fdisk.
 > >Fix:
 > Dunno.
 What would you want it to do?  Fail with usage if the default can't be
 opened?  Present different usage if the default device is there or not?
 Remove the default disk functionality completely?  Scan for the "first"
 disktype device?  ... read your mind to guess the device you wanted to
 operate on?
 Apart from maybe the last one (which is slightly difficult to implement),
 I don't see anything to do to improve the situation in a way which
 wouldn't be confusing from some aspect.  It would nice to always require
 the device argument, but that would doubtless break someone's scripts.
 Antti Kantee <>                     Of course he runs 
     "la qualité la plus indispensable du cuisinier est l'exactitude"

Home | Main Index | Thread Index | Old Index