* [gentoo-user] LiveGUI USB Image
@ 2023-12-30 18:51 hitachi303
2023-12-30 21:41 ` Dale
0 siblings, 1 reply; 6+ messages in thread
From: hitachi303 @ 2023-12-30 18:51 UTC (permalink / raw
To: gentoo-user
Hi there,
long time since I needed something to boot the pc. I see there is a
LiveGUI USB Image to download but the handbook does not mention it. How
to get a bootable USB stick?
Reagds
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] LiveGUI USB Image
2023-12-30 18:51 [gentoo-user] LiveGUI USB Image hitachi303
@ 2023-12-30 21:41 ` Dale
2023-12-30 23:18 ` Peter Humphrey
0 siblings, 1 reply; 6+ messages in thread
From: Dale @ 2023-12-30 21:41 UTC (permalink / raw
To: gentoo-user
hitachi303 wrote:
> Hi there,
>
> long time since I needed something to boot the pc. I see there is a
> LiveGUI USB Image to download but the handbook does not mention it.
> How to get a bootable USB stick?
>
> Reagds
>
>
You can get it here:
https://www.gentoo.org/downloads/
I suspect most just use dd to put the iso on the stick. You can use
Ventoy as well. It allows you to put multiple ISOs on a single stick.
I was made aware of it a while back and used it several times on another
rig. It is awesome. Just copy it over to a directory and boot it.
https://www.ventoy.net/en/index.html
That thing is the best thing since sliced bread and frozen pizza.
Instead of 4 or 5 USB sticks, I have one, with everything from memtest
to rescue images up to full distro install media.
If you plan to use dd, this is the command I have in my notes.
dd if=/path/to/iso-image of=/dev/sd? bs=4M status=progress
Replace the obvious bits.
That help?
Dale
:-) :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] LiveGUI USB Image
2023-12-30 21:41 ` Dale
@ 2023-12-30 23:18 ` Peter Humphrey
2024-01-04 2:48 ` Adam Carter
0 siblings, 1 reply; 6+ messages in thread
From: Peter Humphrey @ 2023-12-30 23:18 UTC (permalink / raw
To: gentoo-user
On Saturday, 30 December 2023 21:41:40 GMT Dale wrote:
> hitachi303 wrote:
> > long time since I needed something to boot the pc. I see there is a
> > LiveGUI USB Image to download but the handbook does not mention it.
> > How to get a bootable USB stick?
>
> You can get it here:
>
> https://www.gentoo.org/downloads/
>
> I suspect most just use dd to put the iso on the stick.
I've alwas done that too, until I bought this new NUC i5, which wouldn't boot
from any of my USB sticks. I had to use an app to make the transfer to USB. I
forget what it was now. Nel B. can explain about ISO images and booting.
--->8
> If you plan to use dd, this is the command I have in my notes.
>
> dd if=/path/to/iso-image of=/dev/sd? bs=4M status=progress
>
> Replace the obvious bits.
I've tried a few values of block size over the years, but so far I haven't
noticed any difference. I haven't run any proper tests though.
--
Regards,
Peter.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] LiveGUI USB Image
2023-12-30 23:18 ` Peter Humphrey
@ 2024-01-04 2:48 ` Adam Carter
2024-01-04 13:00 ` Peter Humphrey
0 siblings, 1 reply; 6+ messages in thread
From: Adam Carter @ 2024-01-04 2:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1053 bytes --]
>
> > dd if=/path/to/iso-image of=/dev/sd? bs=4M status=progress
> >
> > Replace the obvious bits.
>
> I've tried a few values of block size over the years, but so far I haven't
> noticed any difference. I haven't run any proper tests though.
>
I think it's just that the default blocksize is (or was) very small (512
bytes?) so setting it to anything non-small helps a lot.
eg one example (from
https://superuser.com/questions/234199/good-block-size-for-disk-cloning-with-diskdump-dd#234204)
seems to show that most gains are in by around 16k. There's probably a lot
of testing noise in these results.
$ ./dd_obs_test.sh
block size : transfer rate
512 : 11.3 MB/s
1024 : 22.1 MB/s
2048 : 42.3 MB/s
4096 : 75.2 MB/s
8192 : 90.7 MB/s
16384 : 101 MB/s
32768 : 104 MB/s
65536 : 108 MB/s
131072 : 113 MB/s
262144 : 112 MB/s
524288 : 133 MB/s
1048576 : 125 MB/s
2097152 : 113 MB/s
4194304 : 106 MB/s
8388608 : 107 MB/s
16777216 : 110 MB/s
33554432 : 119 MB/s
67108864 : 134 MB/s
[-- Attachment #2: Type: text/html, Size: 1507 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] LiveGUI USB Image
2024-01-04 2:48 ` Adam Carter
@ 2024-01-04 13:00 ` Peter Humphrey
2024-01-04 16:59 ` Laurence Perkins
0 siblings, 1 reply; 6+ messages in thread
From: Peter Humphrey @ 2024-01-04 13:00 UTC (permalink / raw
To: gentoo-user
On Thursday, 4 January 2024 02:48:13 GMT Adam Carter wrote:
> > > dd if=/path/to/iso-image of=/dev/sd? bs=4M status=progress
> > >
> > > Replace the obvious bits.
> >
> > I've tried a few values of block size over the years, but so far I haven't
> > noticed any difference. I haven't run any proper tests though.
>
> I think it's just that the default blocksize is (or was) very small (512
> bytes?) so setting it to anything non-small helps a lot.
>
> eg one example (from
> https://superuser.com/questions/234199/good-block-size-for-disk-cloning-with
> -diskdump-dd#234204) seems to show that most gains are in by around 16k.
> There's probably a lot of testing noise in these results.
>
> $ ./dd_obs_test.sh
> block size : transfer rate
> 512 : 11.3 MB/s
> 1024 : 22.1 MB/s
> 2048 : 42.3 MB/s
> 4096 : 75.2 MB/s
> 8192 : 90.7 MB/s
> 16384 : 101 MB/s
> 32768 : 104 MB/s
> 65536 : 108 MB/s
> 131072 : 113 MB/s
> 262144 : 112 MB/s
> 524288 : 133 MB/s
> 1048576 : 125 MB/s
> 2097152 : 113 MB/s
> 4194304 : 106 MB/s
> 8388608 : 107 MB/s
> 16777216 : 110 MB/s
> 33554432 : 119 MB/s
> 67108864 : 134 MB/s
Interesting. I think I'll stick to my usual 64MB block size.
--
Regards,
Peter.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [gentoo-user] LiveGUI USB Image
2024-01-04 13:00 ` Peter Humphrey
@ 2024-01-04 16:59 ` Laurence Perkins
0 siblings, 0 replies; 6+ messages in thread
From: Laurence Perkins @ 2024-01-04 16:59 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
>-----Original Message-----
>From: Peter Humphrey <peter@prh.myzen.co.uk>
>Sent: Thursday, January 4, 2024 5:01 AM
>To: gentoo-user@lists.gentoo.org
>Subject: Re: [gentoo-user] LiveGUI USB Image
>
>On Thursday, 4 January 2024 02:48:13 GMT Adam Carter wrote:
>> > > dd if=/path/to/iso-image of=/dev/sd? bs=4M status=progress
>> > >
>> > > Replace the obvious bits.
>> >
>> > I've tried a few values of block size over the years, but so far I
>> > haven't noticed any difference. I haven't run any proper tests though.
>>
>> I think it's just that the default blocksize is (or was) very small
>> (512
>> bytes?) so setting it to anything non-small helps a lot.
>>
>> eg one example (from
>> https://superuser.com/questions/234199/good-block-size-for-disk-clonin
>> g-with
>> -diskdump-dd#234204) seems to show that most gains are in by around 16k.
>> There's probably a lot of testing noise in these results.
>>
>> $ ./dd_obs_test.sh
>> block size : transfer rate
>> 512 : 11.3 MB/s
>> 1024 : 22.1 MB/s
>> 2048 : 42.3 MB/s
>> 4096 : 75.2 MB/s
>> 8192 : 90.7 MB/s
>> 16384 : 101 MB/s
>> 32768 : 104 MB/s
>> 65536 : 108 MB/s
>> 131072 : 113 MB/s
>> 262144 : 112 MB/s
>> 524288 : 133 MB/s
>> 1048576 : 125 MB/s
>> 2097152 : 113 MB/s
>> 4194304 : 106 MB/s
>> 8388608 : 107 MB/s
>> 16777216 : 110 MB/s
>> 33554432 : 119 MB/s
>> 67108864 : 134 MB/s
>
>Interesting. I think I'll stick to my usual 64MB block size.
>
>--
>Regards,
>Peter.
So, basically the default is 512, and if you're copying to something where the hardware block size is larger than that (4096 is common on a lot of things these days) then every block on the physical device has to be rewritten multiple times. (Eight times in the example case.)
Needless to say, that's... rather slow. Also rather hard on your device.
Once you get larger than the physical block size, as long as you have an even multiple of the physical block size, then any additional gains come solely from the IO scheduler being able to make slightly more intelligent choices with larger chunks.
LMP
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-04 16:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-30 18:51 [gentoo-user] LiveGUI USB Image hitachi303
2023-12-30 21:41 ` Dale
2023-12-30 23:18 ` Peter Humphrey
2024-01-04 2:48 ` Adam Carter
2024-01-04 13:00 ` Peter Humphrey
2024-01-04 16:59 ` Laurence Perkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox