Re: fdisk corrupts data on USB stick

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Perhaps if you told us what you really wanted to do, instead of asking why
your first method did not work and how to fix it. Eg, you wnat to add another
partition to the usb disk since the boot system only used 5GB of a 128GB usb,
and you don't want to waste 123GB of space. Or some other problem you want to
solve. That way you might get ways of solving your real problem you never
thought of.




William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273
Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324
UBC, Vancouver,BC _|_ Program in Cosmology |____ unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1 ____|____ and Gravity ______|_    theory.physics.ubc.ca/

On Mon, 29 Jan 2024, Thorsten Glaser wrote:

[CAUTION: Non-UBC Email]

Thomas Weißschuh dixit:

   The device contains 'iso9660' signature and it will be removed by a
   write command. See fdisk(8) man page and --wipe option for more
   details.

I guess your version does the same, but maybe is not printing the
warning.

Hm, maybe it does, maybe it doesn’t, but even so, why should it?

So the disk gets converted to a normal MBR layout and the ISO signature
get wiped. Which makes sense as the ISO image would need to be
remastered.

Totally not! First of, the ISO already contained an MBR with a
partition table in the first sector, which I extended, and second,
it’s fdisk’s task to precisely edit the MBR partition table (and,
if the 55h AAh magic is missing, create it), nothing else (okay,
extended partitions if someone uses them, but nothing else).

Is there a way we can make it not corrupt such media?

Did you look into grml2usb?

I know that, but I wanted to keep the original ISO 9660 filesystem
so things don’t accidentally get changed on it. (And the original
EFI thingy, in case it’s needed.)

So, how do I get fdisk to not corrupt the ISO 9660 part?
MirBSD fdisk doesn’t do that, it sticks to the MBR.

Thanks,
//mirabilos
--
„Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund,
mksh auf jedem System zu installieren.“
	-- XTaran auf der OpenRheinRuhr, ganz begeistert
(EN: “[…]uhr.gz is a reason to install mksh on every system.”)


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux