Slashdot Mirror


Running Unix Entirely from CD?

Dasein asks: "I am working as a Tech Support Developer, and I had a wonderful idea a few months ago. After stumbling upon Trinux, I modified it so that I could run Linux on any PC with a floppy. By doing this, I was able to backup on our network valuable data on users' computers when their OS failed. This summer I wanted to develop a similar idea but this time with a CD. I was having trouble finding Linux/BSD distributions that could run solely off a CD, and I'm a bit scared to start one from scratch because I wouldn't know where to begin. Does anyone have any suggestions?" nik suggests: On the BSD front, there's the LiveCD project, which seems to do exactly what you want.

54 comments

  1. Tom's root boot -- not exactly a CD by djn · · Score: 3, Informative

    You mention Trinux in the article, which by default requires extra floppies or a network connection to work, it seems. Another great floppy-based "distro" is Tom's Root Boot. It's saved me several times. It has support for almost any device you could imagine, all packed on one floppy. Not quite a CD-based distro, but still very cool.

    1. Re:Tom's root boot -- not exactly a CD by djn · · Score: 2, Informative

      A little more checking reveals that you can easily burn a bootable CD with Tom's Root Boot. check it out. It's a great emergency "distro" and has saved me numerous times.

  2. superrescue and isolinux by xFallenAngel · · Score: 3, Informative
    I have a good link for a Linux System off CD...

    check out superrescue

    I guess using that as a base, it wouldn't be too hard to create a bsd system or other.

    If you still want to create your own system from scratch, isolinux is helpful. It takes care of the booting. The only other thing you would have to manage is to mount a ramdisk for /var and maybe /etc (anything that needs rw).

    have fun :)

  3. choices by LinuxGeek8 · · Score: 5, Informative

    There are several distro's that can run from cd.
    There's Demolinux, which is quite nice. It comes with gnome and kde and so.
    There's the Linuxcare cd, which is like 100 or 200 Mb in size I believe.
    There's also the Suse live evaluation cd, which I have no experience with. Suse also offers custom firewalls running from cd.

    --
    Well, don't worry about that. We can get you back before you leave. (Dr. Who)
    1. Re:choices by hgc · · Score: 1
      Also, the RedHat Install CD's can be booted using 'linux rescue' at the initial boot prompt. You wind up in run level 1 with ramdisks providing root fs from a root image on the CD.

      As far as I can tell, the kernel is rather full featured and should be able to mount vfat fs, although I have not tried it. I know I can mount my ATA RAID and get the network up because I have done that.

      --
      -- hgc
      Linux: There is no infringing code.
    2. Re:choices by Yottabyte84 · · Score: 1

      The linuxcare CD is 50 MB, as is lnx-bbc. They fit on Business card CDRs.

  4. Two linuxes... by Mr.Ned · · Score: 5, Informative

    Demolinux (http://www.demolinux.org/) runs Linux + KDE/GNOME off a CD. It can optionally write to the hard drive in what they call an "anchor file".

    Devil-Linux (http://www.devil-linux.org/) is a distribution targeted at servers with a need for security. The /etc is a write-protected floppy disk, and all programs are loaded off CD-ROM.

    I remember a Slashdot thread that I can't find about floppy-disk distros - some people chimed in about a Super-Rescue CD from kernel.org.

  5. Gentoo by iangoldby · · Score: 3, Interesting

    The Gentoo boot CDROM gives you a usable Linux system booting from CDROM. You can download the iso at http://www.ibiblio.org/pub/Linux/distributions/gen too/releases/build/1.2/gentoo-ix86-1.2.iso

    I'm not sure how this differs (if at all) from Tom's Root Boot mentioned by 'djn' earlier. You may find this is all you need - burn the CD, insert and switch on computer.

  6. The best by Anonymous Coward · · Score: 3, Interesting

    Knoppix owns them all. It boots straight into KDE without asking questions, detects most other hardware automatically aswell and comes with an incredible amount of software ready to use.

  7. virtual-linux by heimotikka · · Score: 1

    I've also been looking for cd-only-linux-distro also and next one I'll try out is Mandrake 8.1 based Virtual-Linux

  8. GIbraltar by dalutong · · Score: 1

    Gibraltar is a nice debian boot-from-CDrom/run-off-CDrom distribution geared towards firewalls.

    Hope this helps

    David

    --

    What comes first, finding a teacher or becoming a student?
  9. Knoppix by MGKaiser · · Score: 1, Redundant

    There is a system that boots from cd called Knoppix.
    I never used it, but it seems to be quite mature and usable. It even uses swap partitions on the hdd, if there are any.

    Regards,
    mgk

  10. Slackware live disc by evalhalla · · Score: 1

    I know that the 4cd sale version of Slackware Linux comes with a "Bootable live disc, the Ultimate Linux rescue and demo disc!" (as they describe it on the website). I've never actually tried it, but I've never had problems with slackware products.

    1. Re:Slackware live disc by Vinson+Massif · · Score: 2, Informative

      It's _fantastic_. Boots from cd to a fully live system. The supplied X setting work well. I've saved a few users data when NT decides it doesn't want to work.

      --
      "Remember, any tool can be the right tool." -- Red Green
    2. Re:Slackware live disc by chrysrobyn · · Score: 2
      I'd love to find an .ISO for you to download (or provide it myself), but I believe that they deserve the money. Sure, it's all GPL, and we could legally distribute it, but it's worth the $40.

      My Win2k hard drive recently died in my Thinkpad. I don't know much about Windows, but I have to use it for work. I took it to my local support guy, explained the problem ("It gets halfway through the pretty 'windows 2000' screen and never finishes"). He tried it for himself, and got the same resutls. To get any data off of it, there were two steps -- he could put it in another machine, or try to install win2k over the old version and boot on its own. The other machine would freeze in the same place every time it tried to boot with my drive in, too. The win2k installer gave wacky messages (different every time), and never in 10 attempts did start to install. His diagnosis: A partition table too corrupt to permit any use.

      I told him that I wouldn't give up, but I'd take it home and wack at it with Linux. After a very pessimistic look and explanations that my data was very likely deep in the bit bucket, I was permitted to do so. Once home, I snagged my Slackware 8.0 bootable live CD, booted it up and off we went. I loaded the NTFS module, the module for my net card, and FTPed all the files I wanted to my Mac OS X machine. Say what you want about Slackware's package manager, but it's a slick distro that gets the stuff done. Don't get me wrong, booting off the CD (and loading X, which I did for kicks alone -- worked right away) can be a slow process.

    3. Re:Slackware live disc by Anonymous Coward · · Score: 0

      Sounds like your "local support guy" wasn't too bright.

      First, it's obviously not a corrupted partition table because that would die before the boot loader even got started.

      Second, if you had turned off the "pretty windows 2000 screen" and watched the text bootup messages, it would probably have told you what the problem is.

      Third, trying to boot in another machine or reinstall is almost never going to work. The right way to recover is to do exactly what you did in the end. You stick the drive as a non-boot drive in another machine and copy the data off. Anything that can read ntfs will do although you may have to stick it in another windows machine if your unix ntfs driver doesn't handle an option you used (like encrypted partitions or non-basic volumes).

  11. Slightly different requirement... by Jim+Buzbee · · Score: 1

    I'd also like to run Linux off a CD, but my requirements are slightly different.

    I have a (very) low-end laptop with a dead hard drive. It does not have the ability to boot of a CD, only a floppy. I would like to boot off the floppy and then root over to the CD. I would use it for a firewall, router, etc. I haven't been able to cram pcmcia pppd and the rest on just a floppy. So If I could utilize the CD I'd be home free.

    Does anyone know if any of the above mentioned CD solutions support booting off a floppy?

    1. Re:Slightly different requirement... by frank_abacus · · Score: 1

      Slackware - http://www.slackware.com/. The latest version 8.1 has just come out in the last few days, but the older versions will all do this. There are boot and root floppies, and the second CD is a bootable standalone system. If you boot from the standard bootable floppy you can from the boot: prompt tell it that you want the CD (/dev/hdb, or /dev/hdc or what ever) as the root - and away you go! Good luck

      --
      Sorry, nothing profound to put here! (http://www.abacus4.com/
    2. Re:Slightly different requirement... by Kz · · Score: 1
      Just take a bootable CD and copy the kernel to a raw floppy:
      dd if=/boot/bzLinux of=/dev/fd0
      That's it! no filesystem, no LILO, nor anything, just the kernel
      --
      -Kz-
    3. Re:Slightly different requirement... by mmp · · Score: 1
      I have the exact same situation--dead hard drive on old 133Mhz machine that I'm using for a firewall. I ended up using the Dachstein distribution--see the home page for the linux firewall project.

      It's quite a slick setup--they've built a nice system! It boots off of the CD, loads configuration data from a floppy (basically stored as diffs from the configuration files on the CD), seems to be pretty secure, runs a 2.4 kernel, etc, etc. After it has booted, everything is loaded into RAM and it doesn't access the CD any more.

      -matt

    4. Re:Slightly different requirement... by sir99 · · Score: 1

      (Nearly?) all bootable CDs allow you to do this. They have a 1.44MB floppy image on the CD that you can write to a floppy using dd in Linux, or with the supplied rawrite2 in Windows. Then you can boot the floppy and it will start Linux from the CD. I know at least the Debian and RedHat boot cds, Knoppix, and DemoLinux all have this. I recommend Knoppix, BTW; it was only a month out of date last time I checked.

      --
      The ocean parts and the meteors come down
      Laid out in amber, baby.
    5. Re:Slightly different requirement... by Anonymous Coward · · Score: 0

      FREESCO (freesco.info) absolutely kicks ass. i didn't have any experience setting up a router/firewall when i started with it, but it was a peice of cake to setup. minimum requirements are a 386 with 8 megs ram. it can run just as a NAT firewall/ethernet bridge/etc, print server, small web server, can do a paranoid firewall, DNS server, DHCP server, telnet server, ssh server, has tons of other packages available, such as IRC server...

      there are some other things like this available, such as ipcop, closedbsd (or is it openbsd?) and the linux router project. ipcop is supposed to be good, but i suggest freesco. configuration is easy as pie. help is fast and of high quality on the dedicated message board.

      check it out!
      Dan

  12. Make Your Own Debian Live CD by mwr · · Score: 1

    This page has a tarball of scripts that let you take a running Debian system and make a Live-CD version of it.

    Last time I used it, I managed to get a kernel and enough of a root filesystem together to run an MP3 player out of a ramdisk. With a full CD of space, you could do much, much more.

    1. Re:Make Your Own Debian Live CD by fialar · · Score: 1

      Sorry this link is dead.. Google cache will bring it up, but I can't get to the script itself.

      Anyone have a mirror? I'd love to have this!

      -F-

  13. plan9 by DrSkwid · · Score: 2

    not linux but may as well mention it

    http://plan9.bell-labs.com/plan9

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  14. Linux From Scratch by autocracy · · Score: 2

    www.linuxfromscratch.org - They'll be glad to help you desing your own setup and guide you through the steps required to run off of a read-only medium. Most of the info is in the hints archive, I believe.

    --
    SIG: HUP
  15. Bootable Dedicated Game Servers by RevAaron · · Score: 5, Interesting

    I'm not a big gamer, but I've been to a handful of LAN parties.

    Inevitably, at least at the ones I've been to, there is always someone spending half or a third of the day futzing with their spare machine to get a dedicated game server going. Which got me thinking... There are a bunch of these games with a dedicated server versions for Linux. Wouldn't it be sweet if you had, on a bootable CD, a barebones Linux install that booted straight into a pre-configured, and chock-full of maps, game server? You'd need a seperate CD for each game of course. Some games wouldn't even fit on a CD. Perhaps a bootable DVD is the answer? Or swapping CDs with 'mappacks?'

    --

    Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
    1. Re:Bootable Dedicated Game Servers by cant_get_a_good_nick · · Score: 1

      From what I remember, the DreamCast did this. WHne you turned the machine on, it booted into an OS off the disk. I think it had to be Linux or WinCE, just because those were the OSes that they ported the APIs to.

  16. Previous Slashdot article by skware · · Score: 2, Informative

    There was a similar article several months ago with a run down on the various floppy / cd based systems. It is probably well worth your while to check out that previous thread. I've seen a couple of good CD based ones around, especially the ones arranged such that they fit on a business card sized CD-R and hence provide you with the ability of a nice in wallet rescue disk. Checkout linuxcare's offering

  17. Check the HOWTO by Sits · · Score: 2

    There is a Diskless Nodes HOWTO which basically covers your question. It seems there are lots of Live Linux distributions out there but I have personally only tried a version of SUSE Live Linux, which worked well.

  18. Slackware Zipslack by rogerl · · Score: 1

    Zipslack (http://www.slackware.com/zipslack/) from Slackware (http://www.slackware.com/) may be a step in the right direction.

  19. Done it with OpenBSD by DieNadel · · Score: 2, Interesting

    I've done it with OpenBSD. It's actually quite simple and easy to set up.
    One thing I've found helpful was to do it first on a harddrive set only for this (trying to boot it, recompiling and all), and then burning the CD. The first time I tried it, I was making it on top of another intallation and that got me tunning the former installation, which had nothing to do with my intended CD, just to cleanly compile it all.
    Take a look at this article and man mfs.

    --
    Utinam logica falsa tuam philosophiam totam suffodiant!
  20. Check the distribution list by kearneyj · · Score: 1

    Linux Weekly News's distribution list has several CD-based distros on it.

  21. Easily make your own, custom... by FreeLinux · · Score: 1

    Take a look at this.

    From the web site: BBLCD is a toolkit for building your own bootable Linux CD from your favorite (and possibly customized) distribution. It is more or less an intelligent cp -a / /dev/cdrom (with Linux, it's not that simple, but with Windows, it's impossible). I have created this toolkit because these single-floppy Linux systems have three major drawbacks: floppies are slow, errorprone and always too small.

    The current stable version is fully functional. I have tested it with SuSE 7.x, Red-Hat 7 and Debian 2.2. I have user reports that it also works with Red-Hat 6.2. In fact, it would surprise me if it didn't work with any distribution, but there are so many around, so you never know.

  22. Knoppix by Stillman · · Score: 2, Informative

    This one blew me away.

    Germans never cease to amaze me! :)

    So go try knoppix now!

    It's autodetection is incredible, you can save state/prefs to floppy between boots, and it's very VERY up-to-date.

    --
    Prisoner #655321
  23. ClosedBSD by noz · · Score: 1

    Have a look at the ClosedBSD web site. Fits the bill much like LiveCD does.

  24. Telemetrybox by mahonri · · Score: 1
    There is a pretty neat bootable cd option at telemetrybox.org that has a lot of network tools packed in.

    I recently used it to change permissions on a directory that got screwed up on a linux based NAS unit. I was very pleased.

    --

    Mormon news and discussion at Mahonri.org

  25. I rolled this myself a few months ago by jbridge21 · · Score: 2

    I did something similar to this back in February, starting with Slackware, but it should be easy enough to use another distro. Basically, you use tmpfs for /etc, /var, /tmp, or whatever you want to be writable, and fill in the contents at boot time from static copies of those locations. Then you can just run the thing as usual.

    You'll need some custom init scripts that don't require /etc to start up, basically all you need to do is mount /etc /var /tmp, cp files in, and then start up normal system init, or whatever.

    This isn't very detailed, but it should get the point across on how to go about implementing.

  26. linux on a cd by froseph · · Score: 0

    http://www.demolinux.org/ has a disto that boots from cd, and doesnt modify your hard drive.

  27. LNX-BBC by io333 · · Score: 1

    There's this distribution:

    http://www.lnx-bbc.org/

    that is designed to fit in your wallet!

  28. Knoppix by marind · · Score: 1

    Knoppix is a very nice project:

    http://www.knopper.net/knoppix/index-en.html

  29. Jesus christ. by Wakko+Warner · · Score: 2

    Doesn't anyone know how to use Google anymore?

    Or has Ask Slashdot become "Ask Slashdot For Help Using a Search Engine"?

    - A.P.

    --
    "Remember when the U.S. had a drug problem, and then we declared a War On Drugs, and now you can't buy drugs anymore?"
    1. Re:Jesus christ. by Strog · · Score: 1

      While you are offtopic here, I will still give an answer.

      Google is great and I use it all the time. Sometimes it is better to have a discussion about people's experiences. Sure he/she could have used Google but would some of the solutions discussed have been found? It's always good to get some good tips in one place which is something that Google doesn't do.

      The results would show a bunch of straight-forward CD-booting distros but wouldn't have come up with any of the more creative solutions. Google has a HUGE number of websites indexed but it is by no means complete.

  30. Been done lots of times by dheltzel · · Score: 1

    As other posters have mentioned, this has been done lots of times. I did it myself back in the RedHat 5.2 days and had a nice little Network Computer that ran entirely off a CD. At the time, I started with diskettes from the Linux Router Project (LRP), but if I were doing it again today, I think I'd choose a project that already worked from a CD, to avoid reinventing stuff. Mindi Linux comes to mind. It is part of the Mondo Rescue porject and sounds like it is already close to what you are trying to accomplish.

  31. SuSE Live Eval CD ROCKS! by Bake · · Score: 2

    The SuSE live evaluation CD is amazing! I ran my laptop, which also doubles as a home machine, of it for 2 weeks non-stop when the HD died. Every piece of HW in my laptop was supported. The only thing I had to do to make it usable for every day tasks was to create a user, and mount my $HOME over NFS from my home server. Granted, running KDE was just a bit slow, but that's to be expected when every file you read or write is located on another machine with only a 10Mbit ethernet connection between.

  32. How do you mount rw /var and /etc on top of ro / by ecloud · · Score: 2

    Seems to me that rescue disks always use a ramdisk for the root partition,
    because you can't mount a read/write /etc or /var on top of a
    read-only root. Am I missing something here?

    I want to do the same thing with compact FLASH for various
    embedded applications (the car MP3 player I want to build, etc.)
    That is writeable but it has limited life, so it would be best to
    mount it read-only most of the time.

  33. Make your own by Shemp · · Score: 1

    Most of the comments have focused on rescue-type environments. If you want to make your own cd-based linux distro, check out The BBLCD Toolkit. It's the toolkit that was used to make the linuxcare bootable cd.

    Basically, you set up a partition with a linux distro, customize it all you want, make sure it's smaller then 650M, and tell the program to burn it to a cd.