On Thu, 31 Oct 2002, Nathan Scott wrote:
> The -f option means "force" (as in "force" an overwrite, even if
> a filesystem/disk label signature was detected).
>
> I'd be interested to hear whether this correctly detects the Sun
> label without -f though (there's code in there to detect it, but
> I don't think I ever tested it on Sun labelled disks).
It does work... I sacrificed a disk to find out. :)
[root@lite root]# mkfs.xfs /dev/sda1
mkfs.xfs: /dev/sda1 appears to contain a partition table (Sun).
mkfs.xfs: Use the -f option to force overwrite.
The fdisk man page also warns about this:
Do not
start a partition that actually uses its first sector
(like a swap partition) at cylinder 0, since that will
destroy the disklabel.
Maybe we should ask the fdisk maintainer to add xfs to that warning. :)
-Eric
|