On Wed 07 Oct 2026 at 22:56:42 (+0200), Thomas Schmitt wrote:
> David Wright wrote:
> > FYI here's what I observed on the Debian 12.9 netinst:
> > # gdisk -l /dev/sdb
> > ...
> > Found valid MBR and GPT. Which do you want to use?
>
> That's a mis-statement of gdisk. The GPT is there but not valid,
> because the MBR partition table has no partition of type 0xEE.
>
> > Your answer: 1
> > Number Start (sector) End (sector) Size Code Name
> > 2 4524
>
> ... and it's duely confused by the surrounding partition 1 of type 0x00.
>
>
> > # fdisk -l -o Device,Boot,Start,End,Sectors,Size,Id,Attrs,Type /dev/sdb
> > Disklabel type: dos
> > Device Boot Start End Sectors Size Id Attrs Type
> > /dev/sdb1 * 0 1294335 1294336 632M 0 80 Empty
> > /dev/sdb2 4524 23563 19040 9.3M ef EFI (FAT-12/16/32)
>
> fdisk gets it right.
>
>
> > As an aside, one used to be able to buy USB sticks that had a "CD" at
> > the start of the drive, followed by a partition of choice.
> > It's branded SanDisk U3 SMART cruzer 4GB.
>
> I have one with some Windows programs in the virtual CD. A gift from
> around 2010. It appears to Linux as USB hub with CD-ROM and disk-like
> storage device.
> But how would i change the size or content of the virtual CD ?
With the u3-tool package.
# u3-tool -i /dev/sdb
Total device size: 3.83 GB (4110230016 bytes)
CD size: 0.00 B (0 bytes)
Data partition size: 3.83 GB (4110230016 bytes)
#
To resize:
-p <cd size>
Repartition device, reassinging the device space between the cd
and data partition. The argument specifies the size of the CD
partition. The rest of the device will be assigned to the data
partition. The data partition needs reformating after this
command has been issued.
Cheers,
David.