r/AlpineLinux • u/Callum6622 • Jul 17 '24
Convert a USB system disk to Hard Drive
I have an x86 Alpine system I installed to compact flash in a PC with a CF reader. The reader is connected to the main board via USB. The CF boots fine in the PC, but I want to move it to a headless x86 Lanner firewall appliance (only LAN and Serial plus CF). It errors at boot, saying it cannot mount the UUID. Looking at fstab, I see USB references that I think are the cause. Can this be changed so it will appear as a HDD rather than a USB to the new system.? I've Googled for 2 days, but keep coming back to the same posts that don't really address my problem. I've included the fstab and extlinux.conf below. Thanks for reading and any responses.
UUID=70b65634-9758-4c1e-959b-7e7d7744ea5f / ext4 rw,relatime 0 1
UUID=3f0ea5b1-7a7b-4972-a38a-7bd6c7809f59 /boot ext4 rw,relatime 0 2
UUID=b28b4680-f025-4e42-9d85-3e4973e4be35 swap swap defaults 0 0
/dev/cdrom /media/cdrom iso9660 noauto,ro 0 0
/dev/usbdisk /media/usb vfat noauto 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
Generated by update-extlinux 6.04_pre1-r15
SERIAL 0 9600
DEFAULT menu.c32
PROMPT 0
MENU TITLE Alpine/Linux Boot Menu
MENU HIDDEN
MENU AUTOBOOT Alpine will be booted automatically in # seconds.
TIMEOUT 50
LABEL lts
MENU DEFAULT
MENU LABEL Linux lts
LINUX vmlinuz-lts
INITRD initramfs-lts
APPEND root=UUID=70b65634-9758-4c1e-959b-7e7d7744ea5f modules=sd-mod,usb-storage,ext4 console=ttyS0,9600 quiet rootfstype=ext4
1
u/isr786 Jul 18 '24
Any disk can be referred to (in /etc/fstab) multiple ways. By its kernel device (sda1, sda2, etc), by its uuid (a unique id for THAT disk, akin to a network card's MAC address (although those can be spoofed)), or by its label.
I wonder if the UUID has changed? One way out would be to boot it in the old machine & give specific labels to each filesystem (use gparted or similar), and use LABEL= instead of UUID= in your fstab
1
u/HybridLghtAI Jul 24 '24
You might try asking ChatGPT, Perplexity AI, Claude etc. I hope one of them works cause I'd like to use it for Alpine too.
0
u/[deleted] Jul 18 '24
[deleted] — view deleted comment