Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Open Source Cloud Google Linux

Developer Successfully Boots Up Linux on Google Drive (ersei.net) 42

Its FOSS writes: When it comes to Linux, we get to see some really cool, and sometimes quirky projects (read Hannah Montana Linux) that try to show off what's possible, and that's not a bad thing. One such quirky undertaking has recently surfaced, which sees a sophomore trying to one-up their friend, who had booted Linux off NFS. With their work, they have been able to run Arch Linux on Google Drive.
Their ultimate idea included FUSE (which allows running file-system code in userspace). The developer's blog post explains that when Linux boots, "the kernel unpacks a temporary filesystem into RAM which has the tools to mount the real filesystem... it's very helpful! We can mount a FUSE filesystem in that step and boot normally.... " Thankfully, Dracut makes it easy enough to build a custom initramfs... I decide to build this on top of Arch Linux because it's relatively lightweight and I'm familiar with how it work."
Doing testing in an Amazon S3 container, they built an EFI image — then spent days trying to enable networking... And the adventure continues. ("Would it be possible to manually switch the root without a specialized system call? What if I just chroot?") After they'd made a few more tweaks, "I sit there, in front of my computer, staring. It can't have been that easy, can it? Surely, this is a profane act, and the spirit of Dennis Ritchie ought't've stopped me, right? Nobody stopped me, so I kept going..." I build the unified EFI file, throw it on a USB drive under /BOOT/EFI, and stick it in my old server... This is my magnum opus. My Great Work. This is the mark I will leave on this planet long after I am gone: The Cloud Native Computer.

Despite how silly this project is, there are a few less-silly uses I can think of, like booting Linux off of SSH, or perhaps booting Linux off of a Git repository and tracking every change in Git using gitfs. The possibilities are endless, despite the middling usefulness.

If there is anything I know about technology, it's that moving everything to The Cloud is the current trend. As such, I am prepared to commercialize this for any company wishing to leave their unreliable hardware storage behind and move entirely to The Cloud. Please request a quote if you are interested in True Cloud Native Computing.

Unfortunately, I don't know what to do next with this. Maybe I should install Nix?

This discussion has been archived. No new comments can be posted.

Developer Successfully Boots Up Linux on Google Drive

Comments Filter:
  • How is this news? (Score:3, Interesting)

    by guruevi ( 827432 ) on Sunday July 07, 2024 @09:17PM (#64608273)

    Instructions here: https://documentation.suse.com... [suse.com]

    Google Drive ultimately is and also has HTTPS, just like Dropbox or any other file sharing service you can make a link available for direct download.

    Then from there you can mount all your non-static partitions on FUSE or whatever, do note that using the Google Drive API writes are eventually consistent and rate limits will corrupt whatever you are writing, unlike what a regular file system needs.

    • Re:How is this news? (Score:4, Informative)

      by ls671 ( 1122017 ) on Sunday July 07, 2024 @10:27PM (#64608353) Homepage

      Indeed, booting from NFS for diskless work stations isn't news.

      • I recall running diskless Unix workstations in the late 80s and early 90s. Nothing to see here

      • by pz ( 113803 )

        Right -- the idea to boot off NFS has been around for a handful of decades. Not years, but *decades*. So not new, not news, except for the Google Drive involvement which makes it vaguely interesting, but ultimately ho-hum.

        Then, nearly every desktop I've purchased in the last 20 or so years has had a net boot option built-in to the BIOS in one form or another.

        So really, really not news.

      • THIS.
        People have been running Plex servers via rclone mount (which allows for caching and many other tweaks) from Google Drive since way before the pandemic. Some have in PB range (think more material than all streaming services put together, plus mostly any BD/DVD that was vaguely popular ever). Yes, Google closed the "Gsuite unlimited" loophole but it had a VERY good run.

        Speaking of what particular solution is used they're showing in the screen shot mount type as fuse.s3fs and briefly looking at s3fs of c

      • Indeed, booting from NFS for diskless work stations isn't news.

        Indeed and this news article isn't about a diskless boot. It's about mounting your root partition on Google drive using FUSE.

    • Network installs have been around since the days where we were installing slackware via boot disk and ram disk...
    • The user isn't just loading an image to get the computer to boot from a HTTPS connection. The story here is they are mounting their root partition directly from Google-drive via FUSE and they ran into a lot of difficulties on the way due to simlinks and hardlinks.

      We need a new rule on the internet: Rule 137: Every time guruevi posts something dismissively as "not news" it's because he didn't bother to read or understand what is going on.

      • Again, this isnâ(TM)t exactly new. People have been doing this for a while. The issue with symlinks and hardlinks has been solved for a long time for various file systems by basically emulating them in another FUSE layer.

        There is a 7 year old post on how to use S3 for root partitions.

        • There is a 7 year old post on how to use S3 for root partitions.

          I just looked it up. Turns out S3 is not Google Drive. I am as surprised as you by this.

          • by guruevi ( 827432 )

            But S3FS is FUSE. Tomorrow I can make the same dumb article how I did it on Dropbox, or over SFTP etc.

    • by gweihir ( 88907 )

      Indeed. As long as you can load the kernel and optionally an initrd, and the kernel then can access some type of filesystem it can deal with, this is possible. Linux is _very_ tolerant in that way. Obviously, such a thing would never work with Windows, but when comparing a state-of-the-art system to the "village idiot" of operating systems, you get effects like that.

  • On gmail (Score:5, Interesting)

    by phantomfive ( 622387 ) on Sunday July 07, 2024 @09:17PM (#64608275) Journal
    • by hawk ( 1151 )

      I suspect performance was far better than for the folks that actually implemented RFC 1149 . . .

  • by Mr. Dollar Ton ( 5495648 ) on Sunday July 07, 2024 @09:35PM (#64608299)

    So, basically, they are not "running Linux on Google Drive", but, rather, using Google Driver as a network boot server. Why call it "run on GD"?

    *looking at the line below the headline*

    Oh, I see.

  • by Rosco P. Coltrane ( 209368 ) on Sunday July 07, 2024 @10:02PM (#64608329)

    If there is anything I know about technology, it's that moving everything to The Cloud is the current trend.

    Then you don't know much about technology.

    The cloud is stifling and dangerous, putting control of your computer needs in the hands of someone else who then has a gun to your head, makes your entire business dependent on the internet cord, and is insanely resource-intensive.

    We older folks remember when the personal computer came about and we finally were finally free of the sumbitches controlling access to mainframes like little dictators and grossly overcharging everybody for it. History will repeat itself and people will once again yearn to be free of the modern BOFH. One day people will realize the folly of the cloud at the first large-enough breakdown of the internet, or when big data overdoes the vendor lock-in and monetization of their private data.

    • Re: (Score:2, Funny)

      by iggymanz ( 596061 )

      Seems you're the one that doesn't know much about tech. Everything is moving to the cloud except for bit players.

      For a business, the services and data are to be used over the internet, a large breakdown of the internet means business is cut off anyway. What's more fragile, a cloud vendors multiple ISP or your 3 bit subnet business comcast or whatever to your house or mom and pop shop?

      You're talking like a small time operator. Cloud can give redundancy, backups and archive and in multiple locations. You

      • by caseih ( 160668 )

        Everything old is new again. Sun was ahead of their time.

        • they made workstations and we all have those now. They also made some servers but that flopped and even Oracle that bought them out, and Fujistsu that made the bigger servers are all getting out of that business.

          Instead for servers Oracle is in the cloud business and that is booming like crazy.

          Businesses aren't going to go back to their funding hardware and network and backup at one or three locations. It's too damn expensive and staff heavy.

          There are many ways businesses can have copies of their data sen

      • by Rosco P. Coltrane ( 209368 ) on Monday July 08, 2024 @03:29AM (#64608673)

        Because you think the cloud is just about serving webpages to your customers and backing stuff up eh?

        Have you tried using SolidWorks when the internet is down? We tried the other day: we had an internet outage because of roadwork outside the building and the construction crew cut the cable. All 8 employees doing CAD modeling went home, because the fucking cloud SaaS garbage didn't work no more.

        That's the cloud.

        Without the cloud, 8 employees would have had a productive day.

        • Itâ(TM)s called redundancy aka Starlink.
          • Itâ(TM)s called redundancy aka Starlink.

            That's a funny way to write "local software that doesn't require multiple internet subscriptions to work reliably."

        • Just think if construction crew cut your power by accident, that happens too. Guess you need your own nuclear reactor or wind farm with telsa storage packs eh?

          Or your water line could be cut and your toilets full of stinky smelly nastiness. Guess you need to drill a well and get enough maggots to eat feces and hmm, what drinks urine? A Watersports porn subsidiary?

          Cause you can't depend on the water and electricity cloud!

          Your argument against the cloud really doesn't have merit.

    • None of what you said invalidates the comment. Just because your assessment of something being stifling and dangerous doesn't mean it isn't a current trend.

      The current trend in Europe is to try and smuggling fireworks into stadiums. Being a stupid idea doesn't make it any less of a trend.

  • by caseih ( 160668 ) on Sunday July 07, 2024 @10:14PM (#64608339)

    Had to read that headline three times and even then it made no sense until I read the summary. Can you change it to read something more like Boots Linux using Google Drive as the root file system, or Boots up Linux from Google Drive or something?

    Anyway, Linux has always had the ability to boot off a network and use a variety of file systems. Distro net installer images were my primary way of installing Linux for a long time. DHCP, tftp, and installer pulled down from the web.

    The initial ramdisk has always been the primary tool to make booting off the network happen. I was booting RedHat Linux 6.2 on a little Sparc terminal workstation (wish I could remember what it was called) with nothing but dhcp, tftp and an nfs root decades ago. Still remember how crisp that monochrome screen was. In fact I found a bug in GTK when X was using 1bpp that actually got fixed.

    Fun that the young people are re-exploring this old territory.

    • The fun starts when you have a boot rom [ipxe.org] which can download kernels from web servers, or chainload a capable boot rom from the ubiquitous PXE boot rom.

  • If this was using the Google Drive File stream API, which permits sub-atomic updates, it would be very news worthy, but AFAIK the API used by the Google Drive for Desktop app isn't published. This appears just to use the vanilla object store like S3 (all or nothing).

  • Let me tell you of the wonder that is iPXE (note the 'i' which differntiates it from the old PXE). It's really a great boot ROM - and has supported booting over HTTP for many years now.
    So I don't quite see why this is sooo special?
  • I really need to give this a go. I have booted an ISO with GRUB before, this should be a fun weekend project.

  • While it was not completely normal, "root on nfs" has been a standard option to Linux kernels forever (https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt) and was quite important when disk space was more expensive.

  • by ClueHammer ( 6261830 ) on Monday July 08, 2024 @05:57AM (#64608847)
    Since google scrape and index everything they can, they now have the hashes for all your passwords and the computing power to break them.
  • my senior project was a bootloader for a PDP-11 that dialed up an HP3000 to download and kickoff Unix! And it was written on punched paper tape!
    now get off my lawn!
  • A good 20 years ago, I got to run a desktop PC at work with Linux. It was a test as an alternative to Exceed on Windows, and they gave me full control to play and test, including root access (I think I actually installed the system myself). My office mate wanted to try too, so I figured out how to make a boot floppy for his PC to boot Linux from my Linux PC. To deal with configuration differences, the file server on my system could feed clients a different file dependent on the client IP address, since the
  • How is this anything but a bad reinvention of thin clients or PXE-boot, except ridiculously slower and prone to failure due to Google Drive's largely asynchronous nature?

    Some of us have been using PXE or other Net-boot style systems for decades to "fix" this "problem", and there's nothing preventing you from having a router establish a VPN tunnel to your cloud environment and leveraging NFS from there if you just have to be in the cloud for this, and it will perform a hell of a lot better.

  • ...currently moving away form the cloud. Since, you know, the cloud is just someone else's computer.

Life is a whim of several billion cells to be you for a while.

Working...