[install] cgpt doesn't work on drives with 2048B per sector

This forum is for discussion about general software issues.

[install] cgpt doesn't work on drives with 2048B per sector

Postby opm0 » Tue Dec 27, 2016 6:47 pm

I can't install Arch Linux ARM to an USB mass storage device (MP3 player) in a Samsung Chromebook XE303C12 because cgpt gives me an "invalid sector size" error and I can't copy an image from a 512b sector drive to it.

$this->bbcode_second_pass_code('', 'localhost / # fdisk /dev/sda

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): g
Created a new GPT disklabel (GUID: 07F9946E-6BCE-499F-BFCC-6BDA2EB6B647).

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

localhost / # cgpt create /dev/sda
WARNING: Primary GPT header is invalid
WARNING: Secondary GPT header is invalid
localhost / # cgpt add -i 1 -t kernel -b 8192 -s 32768 -l Kernel -S 1 -T 5 -P 10 /dev/sda
ERROR: GptSanityCheck() returned 4: GPT_ERROR_INVALID_SECTOR_SIZE
localhost / # cgpt show /dev/sda
ERROR: GptSanityCheck() returned 4: GPT_ERROR_INVALID_SECTOR_SIZE
localhost / # fdisk /dev/sda

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): i
No partition is defined yet!

Command (m for help): ^C')
opm0
 
Posts: 4
Joined: Tue Dec 27, 2016 12:36 am

Return to General

Who is online

Users browsing this forum: No registered users and 5 guests