TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Booting Linux off of Google Drive

463 pointsby jandeboevrie11 months ago

21 comments

eisbaw11 months ago
I wouldn&#x27;t technically call this &quot;boot&quot; since the kernel has already booted... If get google-drive &quot;mounting&quot; support into grub, then I&#x27;ll concede. This just places the rootfs on some strange place.<p>btw, I have a project in my drawer, to place rootfs of my NixOS on IPFS.
评论 #40861927 未加载
评论 #40866222 未加载
rwmj11 months ago
How about booting Linux off bittorrent? <a href="https:&#x2F;&#x2F;libguestfs.org&#x2F;nbdkit-torrent-plugin.1.html#EXAMPLES" rel="nofollow">https:&#x2F;&#x2F;libguestfs.org&#x2F;nbdkit-torrent-plugin.1.html#EXAMPLES</a><p>The problem with booting Linux off very high latency devices is the kernel tends to time out I&#x2F;O requests after too short a time (60 seconds I think) so you have to adjust those timeouts upwards.
评论 #40857522 未加载
dveeden211 months ago
Back in the the day it was possible to boot Sun Solaris over HTTP. This was called wanboot. This article reminded me of that.<p>This was basically an option of the OpenBoot PROM firmware of the SPARC machines.<p>It looked like this (ok is the forth prompt of the firmware):<p><pre><code> ok setenv network-boot-arguments dhcp,hostname=myclient,file=https:&#x2F;&#x2F;192.168.1.1&#x2F;cgi-bin&#x2F;wanboot-cgi ok boot net </code></pre> This doesn&#x27;t only load the initramfs over the (inter)network but also the kernel.<p><a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E26505_01&#x2F;html&#x2F;E28037&#x2F;wanboottasks2-105.html#scrolltoc" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E26505_01&#x2F;html&#x2F;E28037&#x2F;wanboottask...</a><p><a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E19253-01&#x2F;821-0439&#x2F;wanboottasks2-61&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E19253-01&#x2F;821-0439&#x2F;wanboottasks2-...</a>
评论 #40855767 未加载
评论 #40855738 未加载
评论 #40855123 未加载
评论 #40855065 未加载
评论 #40855336 未加载
评论 #40855682 未加载
评论 #40856918 未加载
评论 #40860131 未加载
prmoustache11 months ago
Can you really say you are booting off of something remote when you are really booting a rootfs from a local initramfs of several megabytes?
评论 #40854279 未加载
评论 #40854100 未加载
评论 #40854009 未加载
评论 #40855287 未加载
amelius11 months ago
What people really want is sub-second booting, especially in embedded. It is a hard problem but somehow nobody seems interested in doing the hard CS research to solve it.
评论 #40854909 未加载
评论 #40857670 未加载
评论 #40855411 未加载
评论 #40860015 未加载
jvdvegt11 months ago
He casually mentions he boots of S3 as well. Changing S3 for Google Drive mostly adds latency, apparently.<p>But still, nicely done!
评论 #40854641 未加载
评论 #40857648 未加载
评论 #40862201 未加载
hcfman11 months ago
Love the one up manship!<p>I read the “How to shrink a file system without a live cd. So here’s my one. How to shrink a file system without a live CD as part of a single command install script of a program.<p>My sbts-aru sound localizing recorder program does that on the pi.<p>I’m willing to bet that no other project on the Internet does this, but I’d love to be surprised. Let me know.<p>It installs the majority of the code, then reboots, shrinks the file system. Creates additional partitions and labels them installing file systems. Then finishes the install and comes up running.<p>So the procedure goes as follows.<p><pre><code> sudo apt install -y git git clone https:&#x2F;&#x2F;github.com&#x2F;hcfman&#x2F;sbts- aru.git cd sbts-aru sudo -H .&#x2F;sbts_install_aru.sh </code></pre> That’s it. It comes up running a recorder on a system with multiple partitions running an overlayFS on memory on the first one.<p>It will even work on a Raspberry Pi zero (Works on all Pi versions) and it doesn&#x27;t matter if it&#x27;s Raspbian or Bookworm.
nemoniac11 months ago
Speaking of booting Linux from places, what I would like to be able to do is carry a Linux image around with me on my (Android) smartphone, plug the phone into a USB port on a laptop and boot the Linux image from there on the laptop. Does such a thing exist?
评论 #40854541 未加载
评论 #40854768 未加载
评论 #40854214 未加载
评论 #40855995 未加载
评论 #40854533 未加载
评论 #40854917 未加载
评论 #40858785 未加载
评论 #40854754 未加载
评论 #40854557 未加载
评论 #40854308 未加载
fsckboy11 months ago
mid 90&#x27;s, a friend of mine installed Windows NT to, and booted it from, a DAT tape
评论 #40855788 未加载
评论 #40854403 未加载
评论 #40854033 未加载
评论 #40854643 未加载
Vogtinator11 months ago
I did something similar some time ago: Booting from an RPM repository on a Tumbleweed installation DVD.<p>My initial goal was to write a fuse filesystem for mounting RPM packages, but I wanted to see how far it goes. Turns out, pretty far indeed: <a href="https:&#x2F;&#x2F;github.com&#x2F;Vogtinator&#x2F;repomount&#x2F;commit&#x2F;c751c5aa56897efd872836cae9ed79a4b59bb852">https:&#x2F;&#x2F;github.com&#x2F;Vogtinator&#x2F;repomount&#x2F;commit&#x2F;c751c5aa56897...</a><p>The system boots to a working desktop and it appears like all packages available on the DVD are installed.
peter_d_sherman11 months ago
Any current or future OS should have its filesystem completely <i>decoupled</i> from the OS itself -- thus allowing booting&#x2F;running the OS off of any kind of plain or esoteric storage device, local or network, present or remote, physical or cloud-based, interrupt&#x2F;DMA based or API&#x2F;protocol based, block-based or file-based, real or virtualized, encrypted or not encrypted, tunnelled or not tunnelled, over another protocol or not over another protocol, using TCP&#x2F;IP or UDP or even just raw 1&#x27;s and 0&#x27;s over whatever electronic communication channel someone invents next, etc., etc.<p>Old time OS programmers typically didn&#x27;t need to think about these things...<p>Current and future OS designers might wish to consider these things in their designs, if they desire maximum flexibility in their current or future OS...<p>Anyway, an excellent article!<p>Related:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Coupling_(computer_programming)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Coupling_(computer_programming...</a><p><a href="https:&#x2F;&#x2F;thenewstack.io&#x2F;how-decoupling-can-help-you-write-better-software&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thenewstack.io&#x2F;how-decoupling-can-help-you-write-bet...</a><p><a href="https:&#x2F;&#x2F;softwareengineering.stackexchange.com&#x2F;questions&#x2F;244476&#x2F;what-is-decoupling-and-what-development-areas-can-it-apply-to" rel="nofollow">https:&#x2F;&#x2F;softwareengineering.stackexchange.com&#x2F;questions&#x2F;2444...</a>
timonoko11 months ago
This inspired me to study the possibility of booting on one linux and then chrooting to another linux. Reason being that I cannot update the first one, it being too old, but it has important janitorial purposes. With the help of ChatGPT I made this script, where everything seems to work including x-windowed programs.<p><pre><code> sudo mount &#x2F;dev&#x2F;sdb2 &#x2F;mnt sudo xhost +local: sudo mount --bind &#x2F;tmp&#x2F;.X11-unix &#x2F;mnt&#x2F;tmp&#x2F;.X11-unix sudo cp ~&#x2F;.Xauthority &#x2F;mnt&#x2F;root&#x2F;.Xauthority sudo mount --bind &#x2F;dev &#x2F;mnt&#x2F;dev sudo mount --bind &#x2F;proc &#x2F;mnt&#x2F;proc sudo mount --bind &#x2F;sys &#x2F;mnt&#x2F;sys sudo mount --bind &#x2F;dev&#x2F;pts &#x2F;mnt&#x2F;dev&#x2F;pts sudo unshare --uts chroot &#x2F;mnt su -l timonoko sudo umount &#x2F;mnt&#x2F;proc sudo umount &#x2F;mnt&#x2F;sys sudo umount &#x2F;mnt&#x2F;dev&#x2F;pts sudo umount -l &#x2F;mnt&#x2F;dev sudo umount -l &#x2F;mnt&#x2F;tmp&#x2F;.X11-unix sudo umount -l &#x2F;mnt</code></pre>
sirjaz11 months ago
We do this all the time in Windows with Citrix. It is called pvs. It does a small pxe boot and then it streams down the windows server image
coisasdavida11 months ago
A few days ago I was able to boot armbian on a tvbox I got from the trash, felt so great, now feels so pedestrian...
iamleppert11 months ago
Can you boot Google off a Linux drive?
评论 #40861928 未加载
whartung11 months ago
I remember first getting my cable modem at the house, and I was able to install BSD over the network using a boot floppy.<p>That was an &quot;amazing&quot; thing to me back in the day. I had the bandwidth to do it, a simple floppy to start the whole process and...there it was! BSD on my machine.<p>I&#x27;m not sure if you can still do that today. Pretty sure the files were FTP hosted somewhere (or even TFTP). I think today it&#x27;s all ISOs.
mason_mpls11 months ago
&gt; On the brink of insanity, my tattered mind unable to comprehend the twisted interplay of millennia of arcane programmer-time and the ragged screech of madness, I reached into the Mass and steeled myself to the ground lest I be pulled in, and found my magnum opus.<p>pulitzer prize nomination material
sharpshadow11 months ago
“…booting Linux off of a Git repository and tracking every change in Git using gitfs.”<p>That sounds cool!
fargle11 months ago
i keep parsing this headline as &quot;<i>kicking</i> Linux off google drive&quot;. huh?<p>oh.
pjmlp11 months ago
Tfpt boot gets rediscovered.
评论 #40854675 未加载
评论 #40854392 未加载
评论 #40858502 未加载
评论 #40854015 未加载
throwaway98439311 months ago
Considering how slow and buggy it is to use as a rootfs, you can instead put an initrd on Google Drive and just boot that. You&#x27;ll need to make it by hand to get it to a reasonably small size, so picking up a copy of Linux From Scratch, and using libmusl or libuclibc along with BusyBox, will go a long way towards a functional system in a small size.<p>If you want a fuller system you could try 1) convert the filesystem to tmpfs after boot and install packages to RAM, or 2) mount a remote disk image as your roofs rather than keeping individual files remote. The former will be blazing fast but you&#x27;re limited by your RAM. The latter will be faster than fuse, benefit from io caching, and not have the bugs mentioned.
评论 #40856863 未加载