[mythtv-users] OT: can't XFS format a new 4T disk

Jay Ashworth jra at baylink.com
Mon Jan 20 03:54:30 UTC 2014


----- Original Message -----
> From: "Kingsley Turner" <krt at krt.com.au>

> On 20/01/14 14:27, Harry McGregor wrote:
> 
> > On 1/19/14 8:25 PM, Kingsley Turner wrote:
> >> *off-topic*
> >>
> >> I have a brand new 4T disk ready for my Myth video. Western Digital
> >> WD40E2RX
> >>
> >> I made a linux type partition with cfdisk, and wrote it.
> >>
> >> Trying to XFS format as per the MythTV Wiki gives an error warning
> >> thing ~
> >>
> >>      # mkfs.xfs -l size=64m -d agcount=4 -i attr=2,maxpct=5 -L
> >>      mythfs
> >> /dev/sda1
> >>      warning: device is not properly aligned /dev/sda1
> >>      Use -f to force usage of a misaligned device

> > You need to use parted (either command line, or gparted) to create
> > the
> > partition at 1MB offset.
> >
> > -Harry
> 
> Ah - got it:
> 
> cfdisk created a dodgey partition, with parted I could nuke, and
> remake it.
> 
> # parted
> GNU Parted 2.3
> Using /dev/sda
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) print
> Model: ATA WDC WD40EZRX-00S (scsi)
> Disk /dev/sda: 4001GB
> Sector size (logical/physical): 512B/4096B
> Partition Table: msdos
> 
> Number Start End Size Type File system Flags
> 1 32.3kB 1802GB 1802GB primary
> 
> (parted) rm 1
> (parted) mkpart primary 0GB 4001GB
> Error: partition length of 7814033408 sectors exceeds the
> msdos-partition-table-imposed maximum of 4294967295
> (parted) mklabel gpt
> Warning: The existing disk label on /dev/sda will be destroyed and all
> data
> on this disk will be lost. Do you want to continue?
> Yes/No? yes
> (parted) p
> Model: ATA WDC WD40EZRX-00S (scsi)
> Disk /dev/sda: 4001GB
> Sector size (logical/physical): 512B/4096B
> Partition Table: gpt
> 
> Number Start End Size File system Name Flags
> 1 1049kB 4001GB 4001GB primary
> 
> (parted) align-check opt 1
> 1 aligned

Specifically, the problem was likely that 3T and larger drives *must*
have GPT partition tables; does cfdisk do those yet?  I hadn't thought
it did.

Cheers,
-- jra
-- 
Jay R. Ashworth                  Baylink                       jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates       http://www.bcp38.info          2000 Land Rover DII
St Petersburg FL USA      BCP38: Ask For It By Name!           +1 727 647 1274


More information about the mythtv-users mailing list