Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187337

Re: disk partitioners vs disk with 2048 byte phusical sectors

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: disk partitioners vs disk with 2048 byte phusical sectors
Date 2017-09-28 03:30 +0200
Message-ID <uuvOh-2ix-1@gated-at.bofh.it> (permalink)
References <uujWO-2Bu-3@gated-at.bofh.it> <uulOW-4rv-29@gated-at.bofh.it> <uulYC-4wg-7@gated-at.bofh.it> <uuoa6-60L-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed 27 Sep 2017 at 13:14:41 (-0400), Gene Heskett wrote:
[…]
> Here's what I found that worked after wiping the part table out:
> fdisk
> o
> w
> 
> which made and wrote an empty dos part table.
> then
> sfdisk /dev/sda
> , 1G
> , 8G
> ,
> write
> 
> Which made a 1G boot partition, an 8G destined to be swap, and the rest 
> destined to be an ext4 partition
> 
> mkfs.vfat /dev/sda1
> mkswap /dev/sda2
> mkfs.ext4 /dev/sda3
> 
> then had apt install hdparm and busybox-static which hdparm needed.
> 
> hdparm's output
> root@rock64:~# hdparm -tT /dev/sda3
> 
> /dev/sda3:
>  Timing cached reads:   1106 MB in  2.00 seconds = 552.98 MB/sec
>  Timing buffered disk reads: 354 MB in  3.00 seconds = 117.93 MB/sec
> 
> So the alignment must be ok if it gives those speeds. OTOH, they are read 
> speeds too.  Thats where I am ATM.
> 
> The clue was in the sfdisk man page, it automatically works with the 
> disks native sector sizes when using the above syntax, where the comma 
> says start at the earliest AVAILABLE sector in each case. 

[…]

> The pi seems much happier now that it has an insane amount of rotating 
> swap, so thats next to setup on this rock64. Maybe the next person with 
> a similar problem will be helped by the above list of what I did.

Hopefully they will be using stretch / sfdisk≥2.26 if they use sfdisk
at all. Its man page on jessie (and earlier) looks horrific.
Glad you got it all sorted.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: disk partitioners vs disk with 2048 byte phusical sectors Roberto C. Sánchez <roberto@debian.org> - 2017-09-27 14:50 +0200
  Re: disk partitioners vs disk with 2048 byte phusical sectors Gene Heskett <gheskett@shentel.net> - 2017-09-27 16:50 +0200
    Re: disk partitioners vs disk with 2048 byte phusical sectors Michael Stone <mstone@debian.org> - 2017-09-27 17:00 +0200
    Re: disk partitioners vs disk with 2048 byte phusical sectors Roberto C. Sánchez <roberto@debian.org> - 2017-09-27 17:00 +0200
      Re: disk partitioners vs disk with 2048 byte phusical sectors Gene Heskett <gheskett@shentel.net> - 2017-09-27 19:20 +0200
        Re: disk partitioners vs disk with 2048 byte phusical sectors David Wright <deblis@lionunicorn.co.uk> - 2017-09-28 03:30 +0200
    Re: disk partitioners vs disk with 2048 byte phusical sectors Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-09-27 17:30 +0200
      Re: disk partitioners vs disk with 2048 byte phusical sectors Gene Heskett <gheskett@shentel.net> - 2017-09-27 19:30 +0200

csiph-web