Thread View: linux.debian.user
3 messages
3 total messages
Started by mick.crane
Thu, 08 Oct 2026 02:10
Re: ISO image to USB-stick writeable?
Author: mick.crane
Date: Thu, 08 Oct 2026 02:10
Date: Thu, 08 Oct 2026 02:10
19 lines
3400 bytes
3400 bytes
On 2026-10-07 21:56, Thomas Schmitt wrote: > Hi, > > i wrote: >> > What does /sbin/fdisk -l say about the partition table on your stick ? > > nwe wrote: >> DeviceĀ Ā Ā BootĀ StartĀ Ā Ā EndĀ SectorsĀ Size Id Type >> /dev/sdf1Ā *Ā Ā Ā Ā 64Ā Ā 524287Ā Ā 524224Ā 256MĀ 0 Empty >> /dev/sdf2Ā Ā Ā Ā Ā 540Ā Ā Ā 1819Ā Ā Ā 1280Ā 640K ef EFI (FAT-12/16/32) >> /dev/sdf3Ā Ā Ā Ā 524288 15728639 15204352Ā 7.3GĀ c W95 FAT32 (LBA) > > Looks normal, except the fact that partition 2 is inside partition 1. > This flaw is inherited from the ISO. Could this indicate that the image was written to a partition /dev/sdf1 instead of /dev/sdf ? mick
Re: ISO image to USB-stick writeable?
Author: mick.crane
Date: Fri, 09 Oct 2026 15:20
Date: Fri, 09 Oct 2026 15:20
48 lines
5522 bytes
5522 bytes
On 2026-10-08 04:43, nwe wrote: > On 10/7/26 9:05 PM, mick.crane wrote: > >> Could this indicate that the image was written to a partition >> /dev/sdf1 instead of /dev/sdf ? > > According to my notes I did dd it directly to /dev/sdf > > I had noticed the EFI partition inside the iso and left it. It booted > without a problem. My assumption, and possibly flawed logic was that > I'm writing this 256MB iso blob to the first 256MB of my usb drive, and > could have potentially used a 256MB usb drive for just that. Therefore > if the iso uses EFI, that must/(can?) be included in the iso. Correct > me if I am wrong. > > Digging into this got me thinking, what if dd writing the iso to sdf1 > would have made life easier? I faintly recall trying something like > that some time ago and calling it a dead end, I don't remember the > details. I decided to try it right now. No boot device found. Whatever. > I think that was the problem last time. What I have is working good > enough, why spend more time on it. > > Thanks, all. I've been using the linux OS for quite some time but I never really got a thorough understanding of the basics of it all. Recently trying to organise backups I "dd" disks to partitions on another disk and "dd" put them back on another disk. There are issues in the sizes of the disks and partitions not matching. I didn't know that you can repartition a disk but as long as the start of the partition is exactly the same the underlying data remains intact. Then resize2fs will make available new space, how magical is that? Was a bit of a pain because have to copy the primal GPT data to the back of the disk first. I decided against that way and now made image files instead of copy to a partition. Likely you could boot a kernel and the file structure which is on a random partition. The PC looks at the first block thingies to discover what to do so you'd need some method to tell it to look at the random partition for further instructions. I think it is something like changing where things think is "root", start of filesystem. What I don't know is if an area of a storage device can be protected from "just do it" dd. That would explain your partition one but probably this is something about CD filesystem. I mention as doing this was like an eye opener regarding what things are and hopefully didn't say anything wrong. mick
Re: ISO image to USB-stick writeable?
Author: Stefan Monnier
Date: Fri, 09 Oct 2026 17:50
Date: Fri, 09 Oct 2026 17:50
14 lines
2494 bytes
2494 bytes
> I decided against that way and now made image files instead of copy to > a partition. That! I use partitions only when it's absolutely needed. When making a copy of a partition, it's often much more convenient to copy it as an "image file" in a filesystem. You can still "look at it" with tools like `mount -o loop`, but it additionally lets you use all the familiar tools like cp/lzip/chmod/..., and comes with useful side-info like filename, size, last modification time, etc... === Stefan
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads