Chris Hane wrote:
2. PARTED
I've tried to use parted without any success. Here is what I've tried
and the errors I get.
> parted
parted> mklabel gpt
parted> mkpart primary 0 3500GB
parted> quit
ok - the partition now exists. If I use ext2 everything works ok.
however, when I run
> mkfs.xfs /dev/sda1
the file system is formated but is truncated to to 2TB.
I'd think parted should be able to handle large devices...
mkfs.xfs uses the BLKGETSIZE64 and BLKGETSIZE ioctls to determine device
size; you might either instrument xfsprogs/libxfs/linux.c and re-run, or
strace your mkfs command looking for those ioctl calls, to see what size
it's getting back from the kernel.
-Eric
|