Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Advanced users • Re: Running Raspbian from USB Devices : Made Easy

$
0
0
usb-boot.zip (in the first post of this topic) has been updated.

Simply replace your existing usb-boot script files with the new ones. No other changes are needed.

This update improves support for Trixie (Debian 13) in mbr2gpt.


@RonR Decided to give mbr2gpt a try but, unfortunately, got stuck on this error code below:

Code:

~ $ sudo sh mbr2gpt.sh nvme0n1trap: SIGINT: bad trapmbr2gpt.sh: 82: Syntax error: word unexpected (expecting ")")~ $ 

Around line 82 of the script I can´t see any missing or mismatching character breaking the syntax, but I am no expert on scripting, so pasting it below for you to check, just in case:

Code:

DEVICE="$1"if [ "${DEVICE}" = "" ]; then  errexit "No device specified"fiif [[ (! "${DEVICE}" =~ ^/dev/sd[a-z]$ && ! "${DEVICE}" =~ ^/dev/nvme[0-9]n1$ && ! "${DEVICE}" =~ ^/dev/mmcblk0$) || ! -b "${DEVICE}" ]]; then  errexit "Invalid DEVICE: ${DEVICE}"fi

I have the latest updated Trixie installed (All packages up to date) on the SD card and an unpartitioned 4 TB nvme ssd:

~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 2G 0 loop
sda 8:0 1 116.1G 0 disk
└─sda1 8:1 1 116.1G 0 part /media/ados/7E8D-1BF6
sdb 8:16 1 116.1G 0 disk
├─sdb1 8:17 1 512M 0 part /media/ados/bootfs
└─sdb2 8:18 1 115.6G 0 part
mmcblk0 179:0 0 29.5G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 29G 0 part /
zram0 254:0 0 2G 0 disk [SWAP]
nvme0n1 259:0 0 3.6T 0 disk
~ $

I really appreciate your guidance.

Statistics: Posted by Plurix — Wed Nov 26, 2025 2:58 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles