[Replicant] GTA04 install script and sfdisk -D

Denis 'GNUtoo' Carikli GNUtoo at no-log.org
Thu Aug 13 08:31:22 UTC 2015


Hi,

I wanted to reinstall my GTA04, to use its GPS.

So I downloaded the images from:
> http://redmine.replicant.us/projects/replicant/wiki/ReplicantImages#Replicant-42-0003-images

Here's the setup:
> % ls
> bootable.zip      gta04.md5
> replicant-4.2-gta04.zip.asc  replicant_gta04_install.sh.asc
> bootable.zip.asc  replicant-4.2-gta04.zip  replicant_gta04_install.sh

Then when running the script:
> % sudo ./replicant_gta04_install.sh
> setup /dev/mmcblk0                           :( Replicant GTA04
> installer
> 
> This is going to erase the following drive:
> - /dev/mmcblk0
> 
> Are you sure? [Y/N] Y
> 
> 1024+0 records in
> 1024+0 records out
> 1048576 bytes (1.0 MB) copied, 0.190974 s, 5.5 MB/s
> 1024+0 records in
> 1024+0 records out
> 1048576 bytes (1.0 MB) copied, 1.37532 s, 762 kB/s
> sfdisk: invalid option -- 'D'
> 
> Usage:
>  sfdisk [options] <dev> [[-N] <part>]
>  sfdisk [options] <command>
> 
> Display or manipulate a disk partition table.
> 
> Commands:
>  -A, --activate <dev> [<part> ...] list or set bootable MBR partitions
>  -d, --dump <dev>                  dump partition table (usable for
> later input) -g, --show-geometry [<dev> ...]   list geometry of all
> or specified devices -l, --list [<dev> ...]            list
> partitions of each device -s, --show-size [<dev> ...]       list
> sizes of all or specified devices -T, --list-types
> print the recognized types (see -X) -V, --verify
> test whether partitions seem correct
> 
>  --part-label <dev> <part> [<str>] print or change partition label
>  --part-type <dev> <part> [<type>] print or change partition type
>  --part-uuid <dev> <part> [<uuid>] print or change partition uuid
>  --part-attrs <dev> <part> [<str>] print or change partition
> attributes
> 
>  <dev>                     device (usually disk) path
>  <part>                    partition number
>  <type>                    partition type, GUID for GPT, hex for MBR
> 
> Options:
>  -a, --append              append partitions to existing partition
> table -b, --backup              backup partition table sectors (see
> -O) --bytes               print SIZE in bytes rather than in human
> readable format -f, --force               disable all consistency
> checking --color[=<when>]      colorize output (auto, always or never)
>                              colors disabled by default
>  -N, --partno <num>        specify partition number
>  -n, --no-act              do everything except write to device
>      --no-reread           do not check whether the device is in use
>  -O, --backup-file <path>  override default backup file name
>  -o, --output <list>       output columns
>  -q, --quiet               suppress extra info messages
>  -X, --label <name>        specify label type (dos, gpt, ...)
>  -Y, --label-nested <name> specify nested label type (dos, bsd)
> 
>  -L, --Linux               deprecated, only for backward compatibility
>  -u, --unit S              deprecated, only sector unit is supported
> 
>  -h, --help     display this help and exit
>  -v, --version  output version information and exit
> 
> Available columns (for -o):
>  gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
>  dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot
> End-C/H/S Start-C/H/S
>  bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
>  sgi: Device Start End Sectors Cylinders Size Type Id Attrs
>  sun: Device Start End Sectors Cylinders Size Type Id Flags
> 
> For more details see sfdisk(8).
> Something went wrong, do you want to restore drive start backup? [Y/N]

So I don't have the "-D" option in sfdisk:
> sfdisk: invalid option -- 'D'

Here where sfdisk comes from (I use parabola):
> % pacman -Q -o sfdisk
> /usr/bin/sfdisk is owned by util-linux 2.26.2-1

What version did you use when making the script?

Denis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osuosl.org/pipermail/replicant/attachments/20150813/42f8c82e/attachment.asc>


More information about the Replicant mailing list