LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-13-2009, 08:36 AM   #1
matt_heys
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Rep: Reputation: 0
Help creating a tiny custom distro


Hi peeps.

I was wondering if anybody had some info on creating a custom boot disk.

At work we need to shred our drives on our PC's before we send them back, we were using Autoclave (http://staff.washington.edu/jdlarios...-discontinued/) which is just a boot disk, shred and some scripts.

It's very old and doesn't support SATA drives, I managed to bodge an updated kernel on it but the shell scripts, fdisk and hdparm still don't support SATA, so it's not as easy as it used to be for my non Linux friendly co-workers.

I would like to create myself a small USB based Linux OS that I can customise myself, one that after it has been booted you can remove the USB key, I am guessing this will be some sort of cross compiling and initramfs based system.

If you have any ideas or even better know of any guides on the internet I would really appreciate it.

I've tried to use uClibc and Buildroot but it seems to be out of date and keeps failing, anyway it would be nice to know how to do it myself, I think LFS is going to be too much but if you think it is the right starting point let me know.


Thanks in advance.
Matt.
 
Old 01-13-2009, 09:53 AM   #2
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Things like that actually exist - and most of them come with all tools needed to customise them further. One of my favourites in this respect is Finnix, but for your purpose SystemRescueCD might work even better. Finnix doesn't offer a GUI like SysRescCD, but it comes with all the tools necessary for system maintenance and is (IMHO) easier to customise (but I'm biased). Both distributions offer methods for USB installation.

If you need something "bigger" (that can still be very small, given the right ingredients), try Ubuntu Customization Kit. You may want to start from a server version with that...

And then, of course, there's DBAN, but that's for shredding exclusively - an older version is still available as a bootable floppy (don't know if that one does SATA, though). And if you're really into boot discs (floppy!), try TOMSRTBT (but that won't work with SATA...).

It'd be also interesting to see how far Puppy Linux or DamnSmallLinux could take you. DSL's more compact, but Puppy offers a lot in terms of system maintenance.

M.

Last edited by MoonMind; 01-13-2009 at 10:00 AM. Reason: Added information...
 
Old 01-13-2009, 10:12 AM   #3
matt_heys
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for the reply, very helpful. I tried using the mini cd version of Ubuntu to just put the base operating system on, however after I removed "login" it threw a wobbly and still asked to login. I've done that with Debian in the past and it went straight to bash as root.

I will probably check the customisation kit out anyway as I have just built a MythTV box that could be better.

I will give Finnix a go, my plan is to write a shell script to enumerate the drives give some details of each and then just get people to press 1,2,3... etc so it should do the job I think.

I was looking at DBAN but a home grown solution would be nice as it would be easier to update the Kernel for new hardware as and when required or add different features.
 
Old 01-13-2009, 10:25 AM   #4
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
You're right about home grown - Debris Linux has a custom installer that works the way you intend to go (a sort of ancient, but efficient "press 1" menu - still an all times favourite, and still in use - like smxi in sidux. That said, I think you'll like Finnix - it's straight to the point, everything you need is there and it's pretty compact - not as small as the mini distros, but it packs more punch in terms of admin tools; it beats Debian proper in that respect, some say it's what a minimal Debian (sid) really should be (but I think Ryan would disagree ).

Oh, and another Debian based distro that invites further customisation is grml - it's not as compact as Finnix, but it's very adaptable and packs a real punch. It's a true geek tool, though - which isn't any kind of judgement, just a hint at what awaits you. There are also core versions without much fat available.

M.
 
Old 01-13-2009, 10:38 AM   #5
oposit
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Rep: Reputation: 1
PClinux Minime or Puppy Linux can be easily remastered. They're small, easy to use, can start from USB and work with SATA drives. Just try them with actual systems to be sure, add the tools you need, change the look to make easy to find the shred tools, and remaster.

Last edited by oposit; 01-13-2009 at 10:47 AM.
 
Old 01-14-2009, 06:55 AM   #6
matt_heys
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Finnix looks good and I like the tutorial on remastering, I may use it for some other stuff I want to do, but you need to keep the CD/USB in whilst using it, when we have 100+ machines to wipe in a weekend that's a lot of CD's to be burnt. I might try and make a Citrix Thin Client boot disk from it however.

I think in the mean time I am going to read this http://www.linuxjournal.com/article/4395 and and use this http://www.mythi.cx/blog/bimages/bui...box_initrd.txt to build a busybox based setup and compile shred manually and copy it over.

Puppy & PClinux are too bloated for what I want (seems funny writing that) but I really don't need to have an Xserver running, maybe a Framebuffer (I think that's what it's called) of 1024*768.

I've heard of grml before and will download the ISO and take a look, it might be that I can create a generic recovery tool for my co-workers as well as a specific shredding tool.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Technical Help - for creating custom Linux Distro kiran_cyberpro Linux - Software 2 10-17-2008 03:12 AM
Creating custom headers to match a custom kernel utanja Debian 2 06-08-2007 04:15 PM
Creating custom distro from RH9 ? DJ Shaji Red Hat 2 03-08-2005 02:19 PM
Creating a custom bootable distro Boffy Linux - General 2 08-28-2004 07:26 PM
Creating a custom Morhpix distro (morphix is a derivative of knoppix) Cobra133 Linux - Distributions 0 06-22-2004 02:20 PM


All times are GMT -5. The time now is 08:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration