xfs
[Top] [All Lists]

Re: mkfs.xfs destoroys sun disklabel

To: Nathan Scott <nathans@xxxxxxx>
Subject: Re: mkfs.xfs destoroys sun disklabel
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Wed, 30 Oct 2002 23:14:47 -0600 (CST)
Cc: Matsuo Hiroshi <matsuo@xxxxxxxxxxxxxxxxxx>, <linux-xfs@xxxxxxxxxxx>
In-reply-to: <20021031024134.GF641@frodo>
Sender: linux-xfs-bounce@xxxxxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>