For a number of different reasons, my desktop is still on F25, and my laptop's hard drive has failed. I need to make a bootable USB drive, first to install F38 on my laptop's new drive and second to get my desktop current. Alas, when I try to run mediawriter, it failed with a Segmentation fault twice, at the same spot. I know that there's a way to put the .iso onto the drive with dd, but don't know the proper incantation as I've never had to do it before. If somebody can provide it, I'd be grateful.
On 9/14/23 14:30, Joe Zeff wrote:
For a number of different reasons, my desktop is still on F25, and my laptop's hard drive has failed. I need to make a bootable USB drive, first to install F38 on my laptop's new drive and second to get my desktop current. Alas, when I try to run mediawriter, it failed with a Segmentation fault twice, at the same spot. I know that there's a way to put the .iso onto the drive with dd, but don't know the proper incantation as I've never had to do it before. If somebody can provide it, I'd be grateful.
Hi Joe,
I can't answer about mediawriter.
dd works well for creating bootable devices.
dd if=f38.iso of=/dev/sdX bs=1m (see note below about bs=)
There are a lot of other options but that is the minimum and should work.
if = input file (your file.iso) of = output file (here you would use the whole unpartitioned device) bs = block size (how large of chunks at a time to transfer: little stuff 4k, big stuff 1m, 4m, 16m. Bigger the chunks faster the copy. Writable media is much better now days). Good luck.
It's been a long time since I've done this but I think that's the basic way to do it.
Mike Wright wrote:
On 9/14/23 14:30, Joe Zeff wrote:
I know that there's a way to put the .iso onto the drive with dd, but don't know the proper incantation as I've never had to do it before. If somebody can provide it, I'd be grateful.
dd works well for creating bootable devices.
dd if=f38.iso of=/dev/sdX bs=1m (see note below about bs=)
There are a lot of other options but that is the minimum and should work.
if = input file (your file.iso) of = output file (here you would use the whole unpartitioned device) bs = block size (how large of chunks at a time to transfer: little stuff 4k, big stuff 1m, 4m, 16m. Bigger the chunks faster the copy. Writable media is much better now days). Good luck.
It's been a long time since I've done this but I think that's the basic way to do it.
Yep, good memory (and the dd method is pretty simple, thankfully).
The official documentation is:
https://docs.fedoraproject.org/en-US/quick-docs/creating-and-using-a-live-in...
and uses:
dd if=/path/to/image.iso of=/dev/sdX bs=8M status=progress oflag=direct
Other than the addition of status and oflag, it's (more or less) identical to yours. Those just make it mildly nicer to watch, largely.
On 09/14/2023 03:49 PM, Mike Wright wrote:
I can't answer about mediawriter.
dd works well for creating bootable devices.
dd if=f38.iso of=/dev/sdX bs=1m (see note below about bs=)
I've always used mediawriter ever since it was available, and whatever came before that as well. This is the first time I've ever had to use dd, and I can now tell you that your suggestion works, except for two little things: one, you need to do it as root, and second, that should be bs=1MB. Thanx again!
On 9/14/23 17:21, Joe Zeff wrote:
On 09/14/2023 03:49 PM, Mike Wright wrote:
I can't answer about mediawriter.
dd works well for creating bootable devices.
dd if=f38.iso of=/dev/sdX bs=1m (see note below about bs=)
I've always used mediawriter ever since it was available, and whatever came before that as well. This is the first time I've ever had to use dd, and I can now tell you that your suggestion works, except for two little things: one, you need to do it as root, and second, that should be bs=1MB. Thanx again!
Maybe it just needs to be uppercase. "bs=1M" works.
Samuel Sieb wrote:
On 9/14/23 17:21, Joe Zeff wrote:
On 09/14/2023 03:49 PM, Mike Wright wrote:
dd if=f38.iso of=/dev/sdX bs=1m (see note below about bs=)
I've always used mediawriter ever since it was available, and whatever came before that as well. This is the first time I've ever had to use dd, and I can now tell you that your suggestion works, except for two little things: one, you need to do it as root, and second, that should be bs=1MB. Thanx again!
Maybe it just needs to be uppercase. "bs=1M" works.
It does, although M and MB do mean slightly different things (not that it likely matters in this case). From dd(1):
N and BYTES may be followed by the following multiplicative suffixes: c=1, w=2, b=512, kB=1000, K=1024, MB=1000*1000, M=1024*1024, xM=M, GB=1000*1000*1000, G=1024*1024*1024, and so on for T, P, E, Z, Y. Binary prefixes can be used, too: KiB=K, MiB=M, and so on. If N ends in 'B', it counts bytes not blocks.