Hi -
I don't know much about Sun disklabels - where do they live on the disk?
mkfs.xfs does write to block 0 of the partition, so if something else
is trying to live there...
-Eric
On Thu, 31 Oct 2002, Matsuo Hiroshi wrote:
> Hi,
>
> I have linux-2.4.19 with xfs-1.2pre2 running on sparc (sun4m).
> I've found a problem about mkfx.xfs included in xfsprogs-2.3.5.
>
> If harddisk has only one partition, mkfx.xfs destoroy its disklabel.
>
>
> Hiroshi Matsuo <matsuo@xxxxxxxxxxxxxxxxxx>
>
> ----------------------------------------------
> # fdisk /dev/sdb
>
> Command (m for help): p
>
> Disk /dev/sdb (Sun disk label): 19 heads, 80 sectors, 2733 cylinders
> Units = cylinders of 1520 * 512 bytes
>
> Device Flag Start End Blocks Id System
> /dev/sdb1 0 2733 2077080 83 Linux native
> /dev/sdb3 0 2733 2077080 5 Whole disk
>
> Command (m for help): q
>
> # mkfs.xfs -f /dev/sdb1
> meta-data=/dev/sdb1 isize=256 agcount=8, agsize=64909
> blks
> data = bsize=4096 blocks=519270,
> imaxpct=25
> = sunit=0 swidth=0 blks,
> unwritten=0
> naming =version 2 bsize=4096
> log =internal log bsize=4096 blocks=1200, version=1
> = sunit=0 blks
> realtime =none extsz=65536 blocks=0, rtextents=0
>
> # fdisk /dev/sdb
> Device contains neither a valid DOS partition table, nor Sun, SGI or
> OSF disklabel
> Building a new sun disklabel. Changes will remain in memory only,
> until you decide to write them. After that, of course, the previous
> content won't be recoverable.
> .
> .
> .
> .
> .
>
> ----------------------------------------------
>
>
|