LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2009, 04:56 PM   #1
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Rep: Reputation: 16
Recommend a Live Distro with readonly filesystem, very fast boot time and x11?


Hi

For an embedded system I am working on (using a PC/104 module which is basically a stripped down PC), I need a linux distribution that can boot very quickly and has a read only filesystem. It needs to be read only so that when the user turns off power (without using shutdown -h now) there will be no problems with the system. There is actually no non-volatile storage on the board aside from flash memory which will be used to store the operating system.

Also, it preferably should have x window system (or the capability for me to add it as a package) with some graphics hardware acceleration so that I can run an opengl graphical program over the top of it. Does anyone have any ideas? Most of those requirements are probably ok but the fast boot time one really makes my decision harder without having the experience of using these distributions in the past...

Any help appreciated, thanks.
 
Old 02-24-2009, 06:17 PM   #2
cheftec
Member
 
Registered: Jan 2009
Location: Pennsyltucky
Distribution: Debian, Ubuntu, DeLiLinux, others
Posts: 144

Rep: Reputation: 19
I don't know how 'embedded' you're going here, but KNOPPIX sounds like it would fit your bill.
 
Old 02-24-2009, 06:22 PM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Accelerated Knoppix-

Try this link-it's a slow download HTTP, maybe try bittorrent?
Make sure you read about the cheatcode for ENGLISH!

http://www.alpha.co.jp/biz/rdg/ac-knoppix/index_en.html
 
Old 02-24-2009, 06:57 PM   #4
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
Knoppix is a good choice due to it's excellent support for all kinds of hardware. Unfortunately it's also quite bloated with software (it has to be, it is meant to be the swiss army knife among the Linux distro's), so you would have remove a lot of packages to create your own custom version of Knoppix. Knoppix is quite flexible and has good documentation on all technical topics.

But if you do not not want ending up spending a lot of time by reassembling Knoppix, you could also try DSL (Damn Small Linux - http://damnsmalllinux.org/). A core DSL installation takes 50 MB, so it's fits neatly on older USB sticks, it can also boot from within another OS (usually Windows). It supports X11 with some lightweight window manager. This could be more of an out-of-the-box solution for an embedded computer.

linux

Last edited by gergely89; 02-27-2009 at 10:58 PM.
 
Old 02-24-2009, 07:03 PM   #5
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Fedora Live CDs are much slower than Fedora, but you can make custom spins very easily. All you need to do is to edit /write a kickstart file ...
 
Old 02-24-2009, 08:58 PM   #6
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
I think the previous posters didn't pay attention to your question & the hardware your using. You need a fast X windows environment with X. I would suggest Damn Small Linux & Parted Magic. (Which BTW I am using now to edit my partitions.) Both very light weight and have all the necessary tools for networking and harware.

Parted Magic

Damn Small Linux


Hope this helps...

And set the boot parameters for a read only FS.


EDIT:
Might be easier to just build a custom gentoo build, with a minimal X. Like flux, or JWM. And then create an install cd for your new build. If you have a network, you can always distcc your builds, and your compile times would be minimal. Or even go with a OpenVZ solution If you have multiple nodes, super fast. I'd have all your nodes PXE boot off the server.

KT

Last edited by manwithaplan; 02-24-2009 at 09:28 PM.
 
Old 02-24-2009, 09:26 PM   #7
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Original Poster
Rep: Reputation: 16
Thanks for the help everyone. I had already tried DamnSmallLinux but it is based on the 2.4 kernel and doesn't have support for the onboard NIC which I couldn't find a driver for..

I want to give Knoppix and Fedora a try but they are 700MB images.. ie. huge. Accelerated Knoppix looks interesting but it seems to be accelerated by optimising the seek times of a CD - I will actually be booting from flash ROM so will not see an improvement in speed.

I will keep searching but I appreciate everyone's help.

EDIT: sorry manwithaplan, I missed your edit. Are you saying that making a partition readonly is all I need to do? Do you mean choose squashfs or similar, or can I set a standard ext2/3 partition to readonly too? Does this cause any problems with a standard installed linux? Can I set it to read only after I have installed linux (otherwise it wouldn't install obviously!)

Last edited by coffeecoffee; 02-24-2009 at 10:19 PM.
 
Old 02-24-2009, 11:23 PM   #8
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Quote:
Are you saying that making a partition readonly is all I need to do? Do you mean choose squashfs or similar, or can I set a standard ext2/3 partition to readonly too? Does this cause any problems with a standard installed linux? Can I set it to read only after I have installed linux (otherwise it wouldn't install obviously!)
Yes... you could create a squashfs, or cramfs install. This would be ideal, and you could do it with a chroot install. First creating a squashfs file, mount it, and chroot a gentoo install, and make it lightweight. Then load grub to your ROM or FLASH device and pass the boot arguments through grub. e.g. Like when you copy a Livecd squashfs files to a hdd partiton and load from grub. I do this with a Sabayon Livecd on one of my HDD partitions. Totally read only... unless I specify differently.

As for a standard ext partitions, you can make them read only through a fstab entry. After an install of course. You can even specify the umask, gid values to prevent any access to the partitions. Completely customizable.


BTW, whats the disk size your using for an install? I have an idea...
 
Old 02-24-2009, 11:33 PM   #9
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Original Poster
Rep: Reputation: 16
Wow, those instructions are GOLD to me, thanks for that!

In terms of size of the flash disk, I can go anywhere from 128MB to 1GB modules.. obviously bigger size == more expensive so I was hoping I could do, say, a fedora install and then remove all the bloat packages to as low as possible.

Last edited by coffeecoffee; 02-24-2009 at 11:34 PM.
 
Old 02-24-2009, 11:49 PM   #10
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
My idea .. was to choose whatever livecd distro you want, and copy the squashfs file to your 1GB module. Then load grub on the module and pass the arguments through grub to boot the squashfs file, of any distro you want. I would go with the smallest file size... because it does expand and uses ram.

e.g. The !#Crunchbang distro has a squashfs file size of 678MB. You'd have to test which distro you prefer, and check with there documentation or there user forums to boot the file image. Its pretty neat. I use my Livecd hdd partition for diags and tools, or to fix problems.

Though Sabayon's file size exceeds 1GB, here's an example of what I mean by loading a squashfile from hdd. BTW I also do this with System Rescue CD, and Clonzilla.

Here's the site for Sabayon's instructions as an example.

Here & Here

Glad I could help


EDIT: If you dont mind installing Fedora on a seperate machine, then remove all the bloat you dont want. There's a tool called Remastersys, that builds a custom Livecd (squashfs) with your current install. It saves all customizations, toolbars, applets, wallpaper... etc ...etc. This allows you to slim everything down. You then can boot off the image from grub... And the great thing is its all readonly... changes dont stay unless specified directly.

Last edited by manwithaplan; 02-25-2009 at 12:02 AM.
 
Old 02-25-2009, 12:52 AM   #11
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Original Poster
Rep: Reputation: 16
thanks mate, that's a great help. If that remastersys program saves literally everything (apps, scripts etc) then I'm definitely going to research that more. but does squashfs compress files by much? it may be wiser for me to just mount an ext partition as readonly, saving step of having to use remastersys.
 
Old 02-25-2009, 01:43 AM   #12
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Remastersys, does compress considerably. It takes an actual snapshot of your current install, scripts, filesystem and configuration you currently have installed and configured. (Really nice for custom live disks).

I used to use the program to create an Ubuntu LiveDVD with a bunch of tools for a rescue disk. I removed all the stuff I didnt need. And loaded all the programs I did need, for a tech disk. Though it did exceed 700mb. So I burned it to a DVD.

Then I just started to use my new hi-speed USB to save from burning DVD's. I had enough space so I stopped making my liveDVD's and just downloaded complete Live disks and loaded grub to my USB and booted the different tools I needed. Very handy.

Though in your case its different. You need minimum. So, I recommend installing Fedora onto a regular PC and slim it down... as much as possible. Don't worry, using Remastersys saves all changes, then squashes the filesystem and creates a bootable image (iso). You might have to run Remastersys a couple of times to get it to the right size you want... I guess if you thinned it out, you could get it around 400-600MB iso, maybe smaller... FYI I've never tried this with Fedora.

After you've created the .iso image, you can then mount the loop and extract the squashfile to your module. Then follow up with loading grub and configuring to boot the squashfile.

Here's info on the squashfs compression here

BTW, Fedora 11 is looking great.

Last edited by manwithaplan; 02-25-2009 at 01:52 AM.
 
Old 02-25-2009, 04:56 PM   #13
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Original Poster
Rep: Reputation: 16
I'm definitely going to do what you said, but I'm not sure about using squashfs because I just realised that there will be a slower boot time as the filesystem is uncompressed and unsquashed on boot.. if I want the fastest boot time, maybe I should keep it uncompressed and just mount a standard ext partition as readonly. Then it becomes a cost vs speed issue..
thanks for your help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My filesystem is readonly , how can do read and write raghuveer520 Linux - Newbie 12 06-30-2017 05:57 AM
Best filesystem for readonly data? pxumsgdxpcvjm Linux - General 1 03-27-2007 10:43 PM
how to detect readonly filesystem using C edenCC Linux - General 2 12-30-2006 06:35 AM
mounted fat32 filesystem becomes readonly after sometime, wierd? koodoo Linux - Newbie 6 11-23-2005 11:34 PM
Recommend a Live bootable Distro for Reverse Engineering? bungerScorpio Linux - Distributions 3 03-16-2004 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration