Re: Issue creating persistent debian live usb
Hi,
Rugnutz wrote:
> https://www.linux.com/blog/creating-debian-live-usb-flash-drive-persistence-non-techies
> https://www.debian.org/CD/faq/#write-usb
Looks like the .img variation is not offered any more.
So i assume you picked a .iso from
http://cdimage.debian.org/cdimage/release/current-live/i386/iso-hybrid/
https://cdimage.debian.org/cdimage/release/current-live/amd64/iso-hybrid/
> The issue occurs when I try to create a new partition,
This comes from the EFI partition being a data file inside the ISO
partition. The ISO partition has type 0x00 to prevent EFI from
detecting the mess. Additionally there is an invalid GPT which lets
GPT-oriented partition editors believe that there is something to repair.
I proposed in
https://lists.debian.org/debian-user/2019/01/msg00568.html
"Put the ISO onto the stick, completely deface its pseudo-GPT,
and use program fdisk to add one or more partitions.
[...]
Thus my advise to remove the GPT header block:
dd if=/dev/zero bs=512 seek=1 count=1 conv=notrunc of=/dev/sdX
where /dev/sdX is the device file of your USB stick.
"
/sbin/fdisk is still willing to work with the nested partition situation.
It shows the ISO partition as "Empty" and the EFI partition as "EFI (FAT".
New partitions are offered to be added after the ISO partition.
The fdisk run would then look like here with a small netinst ISO on a
2 GB USB stick:
$ /sbin/fdisk /dev/sdX
...
Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (3,4, default 3): 3
First sector (684032-3915775, default 684032):
Last sector, +sectors or +size{K,M,G,T,P} (684032-3915775, default 3915775):
Created a new partition 3 of type 'Linux' and of size 1.6 GiB.
Command (m for help): w
The partition table has been altered.
...
$ /sbin/fdisk -l /dev/sdc
...
Disklabel type: dos
...
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 0 684031 684032 334M 0 Empty
/dev/sdc2 3808 9471 5664 2.8M ef EFI (FAT-12/16/32)
/dev/sdc3 684032 3915775 3231744 1.6G 83 Linux
(A technical description of the problem is at
https://lists.debian.org/debian-cd/2019/07/msg00007.html
)
> Additionally may I ask if it is possible to keep using the memory stick
> cross platform for data?
The fact that the stick is bootable to a Debian installer does not hamper
its usability as data bucket. (Of course, cross-platform might mean a
FAT filesystem with its shortcommings compared to a unixly filesystem.)
Have a nice day :)
Thomas
Reply to: