Re: proposal: remove automatic default selection from fdisk

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

 



On Sunday 29 March 2009 20:43:19 H. Peter Anvin wrote:
> Andrew McGill wrote:
> > 	t       <=== type: no partition given, partition 1 assumed
> > 	c       <=== this is not a value, but not 1 (nor 2, 3 or 4)
>
> Actually "c" is a valid value response to the "t" command.
Indeed - but usually the first response is the partition number.  

I'm proposing that fdisk always prompts for the partition number, but, as a 
backward compatibility measure, both of these inputs should be treated in the 
same way:

# Setting the type of the only partition to 0x0c :
t
c

# setting the type of the only partition to 0x0c :
t
1
c

1 (and 2-4) are valid partition types, but they used infrequently, especially 
in scripts.

&:-)
--
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