Re: proposal: remove automatic default selection from fdisk

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

 



On Sun, Mar 29, 2009 at 06:55:24PM +0200, Andrew McGill wrote:
> On Sunday 29 March 2009 01:43:35 H. Peter Anvin wrote:
> > > Any comments?  Is this going to break someone's favourite USB stick
> > > formatter?
> > Almost certainly.  And yes, I agree this is a bug.  I've found it
> > hideously annoying from day 1.
> Let's fix it!

 I agree.
 
 The second problem is that we don't have default values for
 all prompts, my suggestion is add ", default <n>" to all prompts:

    Command (m for help): d
    Partition number (1-4, default 4):               <---

 when I have 4 partitions. The same for 'n'ew:

    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4, default 1):               <---

 when I have unpartitioned disk.

> We can hack it to work both ways.

 That sounds like an over-engineering. The fdisk(8) is __interactive__
 application -- for non-interactive usage you have to use sfdisk or
 parted.

> Command (m for help): t
> Partition number (1-4): 83           <=== Actually a partition type
> DEPRECATED BEHAVIOUR! THAT'S NOT A PARTITION

 We can add GPT support to fdisk in future. GPT supports 128
 partitions :-)

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux