LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-06-2007, 01:27 PM   #1
moonlightcheese
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
trying to format using small linux install and lilo


i am building a tool that i can use to format any machine from within the operating system. the package will be a *.msi that will copy a small linux install to the root of the active partition, enters a new default entry in the windows 'boot.ini' file to boot from a lilo boot sector and the lilo boot sector will load the kernel image that boots linux. the linux install (from a ramdisk) will do nothing except format the hard drive.

at least... this is the project goal.

i've been able to write a lilo boot sector but have not been able to boot the tools i've been trying to use to format the drive. i've tried booting to Darik's Boot And Nuke and tomsrtbt with no success. i have several questions regarding this.

1) how can i ensure the OS is loaded into a ramdisk and does not at all use the drive during the format process?
2) is there a small distro i can boot from the hard drive with fdisk~ish tools available
3) is there some way i can boot to the aforementioned mini installs with lilo? (all have linux kernels)

any other information is of course welcome also

edit: oops, should have added this before

lilo.conf
Code:
boot=/dev/hda
map=/map
default=nuke
read-only
prompt
timeout=20

image=/boot/vmlinuz
initrd=/boot/initrd
label=SuSE_Linux
root=/dev/hda2
read-only

image=/nuke/kernel.bzi
initrd=/nuke/initrd.gz
label=NuKe
root=/dev/hda2

image=/tomsrtbt/bz2bzImage
label=tomsrtbt
root=/dev/hda2
addition:

tomsrtbt
Code:
Partition check:
 hda: hda1 hda2 hda3
NTFS version 000607
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly
Freeing unused kernel memory: 92k freed
Darik's Boot and Nuke
Code:
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 153k freed
VFS: Mounted root (cramfs filesystem).
Mounted devfs on /dev
cramfs: wrong magic
FAT: bogus logical sector size 0
Kernel panic: VFS: Unable to mount root fs on 03:02

Last edited by moonlightcheese; 02-06-2007 at 01:46 PM.
 
Old 02-07-2007, 07:46 AM   #2
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
Might be worth having a look at:
http://gparted.sourceforge.net/
 
Old 02-07-2007, 01:05 PM   #3
moonlightcheese
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
i already knew about that tool, but it's not going to solve the issue. basically, i need to boot a linux install that resides on an ntfs partition. can i do this?

Last edited by moonlightcheese; 02-07-2007 at 01:22 PM.
 
  


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
How to install damn small linux??? mirza DamnSmallLinux 15 12-31-2007 02:45 PM
CUPS prints only small landscape format geomatt Linux - Software 1 10-07-2005 12:41 PM
Damn Small Linux install?!? nub47 Debian 3 12-16-2003 06:45 PM
Damn Small Linux install?!? nub47 Debian 2 12-12-2003 04:59 AM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 04:50 PM


All times are GMT -5. The time now is 07:43 AM.

Main Menu
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