Re: proposal: remove automatic default selection from fdisk

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

 



On Monday 30 March 2009 07:22:19 H. Peter Anvin wrote:
> Andrew McGill wrote:
> > 1 (and 2-4) are valid partition types, but they used infrequently,
> > especially in scripts.
>
> 4, specifically, is quite common.
As the last partition, being partition 4?

> 	-hpa
We can hack the fdisk 't'ype command to work both ways, except for the case 
where all of these apply:
  * there is only one partition at the time
  * it is therefore a primary partition (1 to 4)
  * the partition type is the same as the partition number

That means a backward incompatibility for the following cases only:

Device Boot      Start         End      Blocks   Id  System
  hda1               1        4096    32901088+   1  FAT12

Device Boot      Start         End      Blocks   Id  System
  hda2              22        4096    32901088+   2  XENIX root

Device Boot      Start         End      Blocks   Id  System
  hda3             333        4096    32901088+   3  XENIX usr

Device Boot      Start         End      Blocks   Id  System
  hda4             444        4096    32901088+   4  FAT16 <32M

If you set up something like that in a script, are you not asking for trouble?

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