LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2008, 11:58 AM   #1
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Rep: Reputation: 31
Is it possible to make a LiveCD that will not be able to access the hard disk?


I want to create a puppy linux-based liveCD that will boot the entire system to RAM and access the wireless card to act as a router, without any possibility of accessing the hard disk. I am using an Atheros based wifi card which supports turning the card into a wireless access point, which we used the other day for a reletively small game of Wolfinstein: Enemy Territory.
I would prefer that the live environment has as little access to the hard disk as possible, i.e., no ability whatsoever to mount /dev/(s/h)dax, both for my own security and to assure whoever else has such a card that absolutely nothing can happen to their hard disk.
So is there any kernel parameter or boot script I should modify to make this happen?
 
Old 11-10-2008, 01:46 PM   #2
Slick666
Member
 
Registered: Feb 2006
Distribution: Ubuntu 8.04; Debian Etch
Posts: 167

Rep: Reputation: 33
I'm not too familiar with puppy but I know Fedora has "livecd-creator". This might have some turn-key options for you.

I think you could easily remove the options to mount any drives by default. That way the drive wouldn't be mounted but if need be you could. If your really interested in keeping the user from accessing the hard drive I think you would have to remove hardware support for all IDE and SCSI controllers. The issue I see with that is that you need an IDE/SCSI controller to access the live CD.

As an alternative...
You might try a live USB thumb drive. This would allow you to remove all support for SCSI and IDE from the kernel but still be able to access USB devices (i.e. your disk) and escape the problem above.
 
Old 11-10-2008, 06:10 PM   #3
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
You could modify the hardware detection software in your live-CD to ignore all hard drives.

Or replace 'mount' with a custom application using the same name, that ignores hard drives. You could till keep a copy of the original 'mount' under a different name, so that at least you could mount anything in case of need.

I'm not sure if removing 'mount' completely will work - some tools will certainly depend on it's existence.

Linux Archive

Last edited by salter; 12-20-2008 at 11:48 AM.
 
Old 11-10-2008, 06:21 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you will only be using this computer as a router, and it will always boot up from the CD, you could simply remove the drive.

What kernel module is needed to access the drive. For example, if it uses sata_nv, then you could rebuild the kernel without sata_nv support.

A router will often use a 2.4 kernel and producing a flat kernel without module support may make sense. As a bonus, without LKM support, an LKM rootkit can't be loaded.
 
  


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
How can I install lfs livecd on hard disk? bhxs1809 Linux From Scratch 3 02-25-2009 04:13 AM
liveCd from hard disk markus123 Linux - Newbie 1 09-05-2008 03:04 PM
how to access hard disk with linux livecd and pxe-e61 error carmellie Linux - Newbie 10 02-22-2008 07:01 AM
how to access hard disk with linux livecd and pxe-e61 error carmellie Linux - General 2 02-21-2008 06:55 PM
Install LiveCD to Hard Disk ficklefun Linux From Scratch 1 02-19-2008 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:58 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