Welcome!

Linux Authors: Carmen Gonzalez, Avi Rosenthal, Pat Romanski, Elizabeth White, Mike Kavis

Related Topics: Linux, Open Source

Linux: Article

A Closer Look at Damn Small Linux

The take-along operating system

In this article you will learn how to turn a blank CD and an inexpensive USB keydrive into a powerful, portable, take-along operating system complete with modern applications like Firefox, a Web server, and multimedia tools. All this can be done using free Open Source Linux software.

We'll start with the latest version of a distribution called Damn Small Linux (hereafter referred to as DSL) and work through the steps of getting and "burning" an image, booting it, setting up networking and applications, and saving customizations and files to the USB media. You can do all of this even with an old PC from yesteryear, turning it into something snappy and new. One possible outcome is what you see in Figure 1.

The resulting bootable CD and USB keydrive storage work great without having to install, partition, reformat, or even modify the hard drive on the host system. This highly portable computer system based on DSL will enable you to walk up to almost any PC and boot into your very own familiar Linux desktop, get on the Internet, send e-mail, blog, play games, even listen to Internet radio, and save your work, shut it down, and take it all of it with you without leaving a trace. It will be lightweight, fast to boot, and can breath new life into almost any computer, old or new. You can even use this technique to create low-cost Internet kiosks and Web servers, as an alternative to carrying a laptop, or just to impress your friends and colleagues.

The DSL distribution of Linux has long set the standard for fitting maximum functionality into a small 50MB footprint. The discipline of keeping the entire distribution to this size has resulted in a compact and versatile Linux (derived from the venerable Knoppix, itself based on Debian Linux) that can run efficiently even on older PCs while recognizing a wide assortment of hardware. Through the innovative "MyDSL" subsystem, nearly unlimited customization and system expansion are possible.

There's a lot to look at inside this unusual little operating system, not all of it beautiful. This article will help you find the best of DSL and ignore the rest. Best of all, you'll discover how to shape and customize DSL into something useful and appealing, perhaps even something unique.

Getting Started: Obtain, Burn, Boot
Get the Latest DSL Image
Downloading the latest stable version of DSL is free and easy. If you have a high-speed Internet connection it can be done in minutes. Simply follow these instructions:
1)  Visit the URL www.damnsmalllinux.org/download.html
2)  Click on one of the mirror sites under "where to download"
3)  Look for a directory called "current" and click on that to see its contents
4)  Look past most of what you see and download the file "dsl-<version>.iso"

Where I've written <version> above you'll see something like "2.4" depending on when you read this article. The current stable version is 2.3. Save your download in a place where you can find it as you move to the next step.

Burn the ISO onto CD
The file you just downloaded has an "iso" extension after the ISO standard format used on CD-ROMs. Some operating systems - such as OS X - can mount an image file like this and show you its contents. We don't really have to do that but if you're curious go ahead and see if your computer can mount the disk. You'll need a writable CD-R disk and a CD burner for the next step. Use your favorite CD-burning software to create a disk from this image.

One important note here. The DSL disk image is much smaller than the CD's capacity and that's expected. At only 50MB you could fit about 15 copies of DSL on a standard CD-R. DSL was originally configured to fit on the smaller 50MB "business card" CDs that were briefly popular. This size constraint now offers great advantages for this little operating system. As you'll see, DSL is so small that the entire operating system can boot up into the memory on just about any PC without even accessing the hard drive.

When you burn your CD remember that you're dealing with a bootable ISO image. Rather than just burning a copy of this file onto a CD (which won't boot properly in the next step), you'll want to instruct your CD burner to recognize the ISO and burn a disk image.

Boot from CD (or Use a Helper Floppy)
This step could be as simple as putting your newly minted DSL CD into the drive on your computer and rebooting. You should try that first before reading any further. By the way, many people get nervous about doing anything experimental with a working computer and rightly so. In my experience I've seen no risk in booting a PC into DSL. This little operating system will detect much of the hardware attached to your computer including your network, but it will completely ignore your hard drive and data until you tell DSL to do differently. If you're still not sure, just dig out that old PC in the closet and try DSL on that first. An old machine running DSL may surprise you as it comes back to life. Now let's get back to the boot. If your PC recognizes the CD as bootable and begins a boot sequence, skip to the next section.

Most PCs can boot from a CD (the CD booting standard has been out for over 10 years), but they may not be configured to do so. To find out you'll have to get into the BIOS settings at boot time and check. As your machine starts up, look for a message that says something like "Press F-10 for BIOS Settings" and use whatever key you are instructed to press.

Next, while in the text-based BIOS menu system, look for a section on boot devices and boot order. Make sure that the CD-ROM is somewhere in the order of boot devices ahead of the hard drive (usually it goes in the order of floppy, CD, then hard drive). Find a way to put the CD-ROM in the boot sequence, save your changes then try a reboot.

At this point I should mention that one of the machines I used to prepare this article (and even write some of it) is a 10-year-old Pentium 150MHz with only 96MB memory. It can't boot from a CD so I used a helper floppy that can recognize and boot the CD. If you need such a thing, you can create one by following these steps:
1)  Download the boot floppy boot image file for DSL
Download: bootfloppy.img
From Site: ftp://ibiblio.org/pub/Linux/distributions/damnsmall/current
Save As: boot.img
2)  Create a boot floppy using a blank 1.44MB floppy disk
If running Windows
Download: rawrite.exe (or other suitable variant for your OS)
From Site: www.fdos.org/ripcord/rawrite/
Run Command: rawrite -f boot.img -d A
If already running a version of Linux:
Run Command: dd if=boot.img of=/dev/fd0 bs=1440k

Once your computer is booting from the CD (or a combination of floppy/CD) you're ready to begin exploring the world of DSL, customizing it to your liking, and creating a configuration that you can easily return to on your next boot.

Advanced Topic: Bootable USB Keydrive
(aka Pendrive, Flashdrive, Etc.)
You may have heard about bootable USB keydrives or know someone who has one. With DSL there are at least two ways to get your USB-capable computer to boot from a keydrive. The first works without having to reformat the keydrive. The second approach will dedicate the entire USB keydrive to running DSL by creating a boot partition and a data partition.

You can skip this section entirely or return to it later if you decide that booting from a keydrive is for you. Regardless of how you end up booting, the rest of this article will assume that you're simply booting from a read-only device and intend to use a keydrive for take-along storage. This way everyone can come along with or without a bootable USB drive.

Quick and Easy Install to Keydrive
(Requires Helper Floppy)
The simplest and least disruptive approach to booting from a keydrive is just to make the keydrive look like the CD you used to get started. I made this work by copying all of the files from the DSL CD (mounted as /mnt/cdrom) to the root directory of a keydrive (it will have to be mounted as /mnt/sda1, as shown below) already formatted with the MS-DOS file system. Of course you'll need at least a free 50MB on the USB keydrive before you copy the files.

If you don't know how to copy files in Linux, first bring up a terminal window by clicking on "ATerminal" on the DSL desktop. Next type the following:

$ sudo mount /dev/sda1
$ cp -r /mnt/cdrom/* /mnt/sda1

If you're allergic to the command line, these two steps can be carried out intuitively using the "Emelfm" file manager also available on the DSL desktop.

This approach to booting will preserve the data you already have on the keydrive. It won't make the drive into a genuine Linux boot disk (we'll do this in the next section), so you will need a helper floppy to get the machine booting from this USB keydrive. I made a USB boot floppy while running DSL itself. This is simpler than the manual approach described above but note that you'll need a different boot image (bootfloppy-usb.img) than we used before.


More Stories By Russ Ethington

Russ Ethington is an enterprise software architect and developer with 15 years of experience in numerous programming languages on Unix and other platforms. His technical interests include distributed computing, programming languages, and music synthesis.

Comments (4) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
manmathsahu 09/09/07 11:47:48 PM EDT

DSL is a good minimalist distro. If you are looking for a more usable distro you should try a lighter PCLinuxOS versionsuch as PCLinuxOS Junior or PCLinuxOS TinyMe.

charles 08/27/06 03:11:52 AM EDT

this is grait but what if you want to use a disk on chip?

Linux News Desk 07/11/06 03:01:15 PM EDT

In this article you will learn how to turn a blank CD and an inexpensive USB keydrive into a powerful, portable, take-along operating system complete with modern applications like Firefox, a Web server, and multimedia tools. All this can be done using free Open Source Linux software.

Linux News Desk 07/11/06 02:00:26 PM EDT

In this article you will learn how to turn a blank CD and an inexpensive USB keydrive into a powerful, portable, take-along operating system complete with modern applications like Firefox, a Web server, and multimedia tools. All this can be done using free Open Source Linux software.

@ThingsExpo Stories
DevOps Summit 2015 New York, co-located with the 16th International Cloud Expo - to be held June 9-11, 2015, at the Javits Center in New York City, NY - announces that it is now accepting Keynote Proposals. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait for long development cycles that produce software that is obsolete at launch. DevOps may be disruptive, but it is essential.
“In the past year we've seen a lot of stabilization of WebRTC. You can now use it in production with a far greater degree of certainty. A lot of the real developments in the past year have been in things like the data channel, which will enable a whole new type of application," explained Peter Dunkley, Technical Director at Acision, in this SYS-CON.tv interview at @ThingsExpo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that Windstream, a leading provider of advanced network and cloud communications, has been named “Silver Sponsor” of SYS-CON's 16th International Cloud Expo®, which will take place on June 9–11, 2015, at the Javits Center in New York, NY. Windstream (Nasdaq: WIN), a FORTUNE 500 and S&P 500 company, is a leading provider of advanced network communications, including cloud computing and managed services, to businesses nationwide. The company also offers broadband, phone and digital TV services to consumers primarily in rural areas.
The major cloud platforms defy a simple, side-by-side analysis. Each of the major IaaS public-cloud platforms offers their own unique strengths and functionality. Options for on-site private cloud are diverse as well, and must be designed and deployed while taking existing legacy architecture and infrastructure into account. Then the reality is that most enterprises are embarking on a hybrid cloud strategy and programs. In this Power Panel at 15th Cloud Expo (http://www.CloudComputingExpo.com), moderated by Ashar Baig, Research Director, Cloud, at Gigaom Research, Nate Gordon, Director of T...
The Internet of Things is not new. Historically, smart businesses have used its basic concept of leveraging data to drive better decision making and have capitalized on those insights to realize additional revenue opportunities. So, what has changed to make the Internet of Things one of the hottest topics in tech? In his session at @ThingsExpo, Chris Gray, Director, Embedded and Internet of Things, discussed the underlying factors that are driving the economics of intelligent systems. Discover how hardware commoditization, the ubiquitous nature of connectivity, and the emergence of Big Data a...

ARMONK, N.Y., Nov. 20, 2014 /PRNewswire/ --  IBM (NYSE: IBM) today announced that it is bringing a greater level of control, security and flexibility to cloud-based application development and delivery with a single-tenant version of Bluemix, IBM's platform-as-a-service. The new platform enables developers to build ap...

"BSQUARE is in the business of selling software solutions for smart connected devices. It's obvious that IoT has moved from being a technology to being a fundamental part of business, and in the last 18 months people have said let's figure out how to do it and let's put some focus on it, " explained Dave Wagstaff, VP & Chief Architect, at BSQUARE Corporation, in this SYS-CON.tv interview at @ThingsExpo, held Nov 4-6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that IDenticard will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. IDenticard™ is the security division of Brady Corp (NYSE: BRC), a $1.5 billion manufacturer of identification products. We have small-company values with the strength and stability of a major corporation. IDenticard offers local sales, support and service to our customers across the United States and Canada. Our partner network encompasses some 300 of the world's leading systems integrators and security s...
"People are a lot more knowledgeable about APIs now. There are two types of people who work with APIs - IT people who want to use APIs for something internal and the product managers who want to do something outside APIs for people to connect to them," explained Roberto Medrano, Executive Vice President at SOA Software, in this SYS-CON.tv interview at Cloud Expo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Nigeria has the largest economy in Africa, at more than US$500 billion, and ranks 23rd in the world. A recent re-evaluation of Nigeria's true economic size doubled the previous estimate, and brought it well ahead of South Africa, which is a member (unlike Nigeria) of the G20 club for political as well as economic reasons. Nigeria's economy can be said to be quite diverse from one point of view, but heavily dependent on oil and gas at the same time. Oil and natural gas account for about 15% of Nigera's overall economy, but traditionally represent more than 90% of the country's exports and as...
The Internet of Things is a misnomer. That implies that everything is on the Internet, and that simply should not be - especially for things that are blurring the line between medical devices that stimulate like a pacemaker and quantified self-sensors like a pedometer or pulse tracker. The mesh of things that we manage must be segmented into zones of trust for sensing data, transmitting data, receiving command and control administrative changes, and peer-to-peer mesh messaging. In his session at @ThingsExpo, Ryan Bagnulo, Solution Architect / Software Engineer at SOA Software, focused on desi...
"At our booth we are showing how to provide trust in the Internet of Things. Trust is where everything starts to become secure and trustworthy. Now with the scaling of the Internet of Things it becomes an interesting question – I've heard numbers from 200 billion devices next year up to a trillion in the next 10 to 15 years," explained Johannes Lintzen, Vice President of Sales at Utimaco, in this SYS-CON.tv interview at @ThingsExpo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
"For over 25 years we have been working with a lot of enterprise customers and we have seen how companies create applications. And now that we have moved to cloud computing, mobile, social and the Internet of Things, we see that the market needs a new way of creating applications," stated Jesse Shiah, CEO, President and Co-Founder of AgilePoint Inc., in this SYS-CON.tv interview at 15th Cloud Expo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that Gridstore™, the leader in hyper-converged infrastructure purpose-built to optimize Microsoft workloads, will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. Gridstore™ is the leader in hyper-converged infrastructure purpose-built for Microsoft workloads and designed to accelerate applications in virtualized environments. Gridstore’s hyper-converged infrastructure is the industry’s first all flash version of HyperConverged Appliances that include both compute and storag...
Today’s enterprise is being driven by disruptive competitive and human capital requirements to provide enterprise application access through not only desktops, but also mobile devices. To retrofit existing programs across all these devices using traditional programming methods is very costly and time consuming – often prohibitively so. In his session at @ThingsExpo, Jesse Shiah, CEO, President, and Co-Founder of AgilePoint Inc., discussed how you can create applications that run on all mobile devices as well as laptops and desktops using a visual drag-and-drop application – and eForms-buildi...
We certainly live in interesting technological times. And no more interesting than the current competing IoT standards for connectivity. Various standards bodies, approaches, and ecosystems are vying for mindshare and positioning for a competitive edge. It is clear that when the dust settles, we will have new protocols, evolved protocols, that will change the way we interact with devices and infrastructure. We will also have evolved web protocols, like HTTP/2, that will be changing the very core of our infrastructures. At the same time, we have old approaches made new again like micro-services...
Code Halos - aka "digital fingerprints" - are the key organizing principle to understand a) how dumb things become smart and b) how to monetize this dynamic. In his session at @ThingsExpo, Robert Brown, AVP, Center for the Future of Work at Cognizant Technology Solutions, outlined research, analysis and recommendations from his recently published book on this phenomena on the way leading edge organizations like GE and Disney are unlocking the Internet of Things opportunity and what steps your organization should be taking to position itself for the next platform of digital competition.
The 3rd International Internet of @ThingsExpo, co-located with the 16th International Cloud Expo - to be held June 9-11, 2015, at the Javits Center in New York City, NY - announces that its Call for Papers is now open. The Internet of Things (IoT) is the biggest idea since the creation of the Worldwide Web more than 20 years ago.
As the Internet of Things unfolds, mobile and wearable devices are blurring the line between physical and digital, integrating ever more closely with our interests, our routines, our daily lives. Contextual computing and smart, sensor-equipped spaces bring the potential to walk through a world that recognizes us and responds accordingly. We become continuous transmitters and receivers of data. In his session at @ThingsExpo, Andrew Bolwell, Director of Innovation for HP's Printing and Personal Systems Group, discussed how key attributes of mobile technology – touch input, sensors, social, and ...
In their session at @ThingsExpo, Shyam Varan Nath, Principal Architect at GE, and Ibrahim Gokcen, who leads GE's advanced IoT analytics, focused on the Internet of Things / Industrial Internet and how to make it operational for business end-users. Learn about the challenges posed by machine and sensor data and how to marry it with enterprise data. They also discussed the tips and tricks to provide the Industrial Internet as an end-user consumable service using Big Data Analytics and Industrial Cloud.