home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   RBERRYPI      Support for the Raspberry Pi device      21,939 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 21,222 of 21,939   
   The Natural Philosopher to Chris Green   
   Re: How to boot from SD but run from USB   
   24 Jan 25 09:22:13   
   
   INTL 3:770/1 3:770/3   
   REPLYADDR tnp@invalid.invalid   
   REPLYTO 3:770/3.0 UUCP   
   MSGID:  4eb5e1ab   
   REPLY:  9c386ef6   
   PID: SoupGate-Win32 v1.05   
   On 23/01/2025 22:12, Chris Green wrote:   
   > Is it simply a matter of leaving /boot on the SD card and changing /   
   > to being a USB drive or does one need to edit something in /boot   
   > somewhere?   
      
   AFAICR what you do is simply edit a file and tell it that / is not where   
   it thinks it is   
      
   But it depends on exactly what you want to happen   
      
   The boot process is as follows (I think: Others will correct If I've got   
   it wrong)   
      
   The  Pi firmware looks on the SD card for a Vfat partition, and in there   
   is a file called cmdline.txt   
      
   e.g.   
   console=serial0,115200 console=tty1 root=PARTUUID=778a9e44-02   
   rootfstype=ext4 fs   
   ck.repair=yes rootwait noswap=1   
      
   That file tells the boot loader wher the root directory is to be found   
   that it is to  grab the kernel off   
      
   the key thing is root=PARTUUID=   
      
   Now if the SD card does not have such a partition, the boot loader will   
   look to see if e.g. a USB drive has, and use that instead.   
      
   Now on whatever partition it uses as the first stage root, it will have   
   /etc/fstab   
   e.g.   
      
   proc            /proc           proc    defaults          0       0   
   PARTUUID=778a9e44-01  /boot/firmware  vfat    defaults          0       2   
   PARTUUID=778a9e44-02  /               ext4    defaults,noatime  0       1   
      
   And at this point the booting system may, if you want, mount an entirely   
   different root filesystem and carry on.   
      
   So if you edit the /etc/fstab on the SD card, and change the PARTUUID to   
   a different drive, it will mount that instead. And never touch the SD   
   card afterwards.   
      
   The easy way to do that is to boot the thing as normal, edit the fstab   
   file to match the ID of the  USB device and reboot, making sure that   
   yiou have copied everything on te root partition of the SD card to the USB.   
      
   But frankly its almost always easier to install everything on the USB   
   drive and remove the SDcard altogether.   
      
      
      
   --   
   There is something fascinating about science. One gets such wholesale   
   returns of conjecture out of such a trifling investment of fact.   
      
   Mark Twain   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 10/0 1 19/10 103/705 105/81 106/201 124/5016 128/187 129/305   
   SEEN-BY: 153/757 7715 154/110 218/0 1 601 700 840 220/70 221/1 6 360   
   SEEN-BY: 226/17 30 100 227/114 229/110 111 114 200 206 275 300 317   
   SEEN-BY: 229/400 426 428 470 550 616 664 700 705 240/1120 266/512   
   SEEN-BY: 267/800 291/111 292/854 301/1 113 812 310/31 320/219 322/757   
   SEEN-BY: 335/364 341/66 342/200 396/45 460/58 633/280 712/848 770/1   
   SEEN-BY: 770/3 100 330 340 772/210 220 230 902/26 2320/105 5020/400   
   SEEN-BY: 5020/1042 5075/35   
   PATH: 770/3 1 218/840 221/6 301/1 218/700 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca