LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-22-2009, 02:54 PM   #1
BLuFeNiX
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
Mount ISO as specific device (ie: /dev/sda1) with GRUB2 to boot KNOPPIX live cd iso


I'm trying to make grub2 boot a bitdefender rescue cd (knoppix based). During the boot up it tries to find where the cd is mounted (it checks a bunch of devices like /dev/sda1), but fails.

here is my grub.cfg:
Code:
menuentry "Bitdefender Rescue CD" {

    set isofile="/boot/iso/bitdefender_rescue.iso"

    loopback loop $isofile

    set gfxpayload=1024x768x16,1024x768

    linux (loop)/boot/isolinux/linux ramdisk_size=131072 init=/etc/init lang=us apm=power-off nomce loglevel=0 quiet BOOT_IMAGE=KNOPPIX

    initrd (loop)/boot/isolinux/minirt.gz

}
I get a message that KNOPPIX filesystem cannot be found and it drops me to a limited shell.

how would I change grub.cfg to mount the loopback to /dev/sda1? (or any directory for that matter)

I'm also not sure about the "BOOT_IMAGE=KNOPPIX" part, but I'll fix that next.
 
Old 12-22-2009, 04:35 PM   #2
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
knoppix cheatcode

Quote:
boot=/dev/hda1
(after you load kernel and run ramdisk startup stuff (minirt.gz) however you may choose)
Then continue starting up from hda1/KNOPPIX/KNOPPIX . This is an easy way to free up your CD drive--you don't even need the CD at all, to boot, if you boot using loadlin, and have the 'linux' file and 'minirt.gz' file being loaded from the hard drive with loadlin. just copy the cd compressed contents to the root directory of a partition. then load knoppix with loadlin or however, passing this code in addition to the others, as you start up.
This was tested to work on a fat32 partition, in knoppix 3.4. --gh78 May 20 2006
from here

http://www.knoppix.net/wiki/Cheat_Codes

Look at all this
http://www.knoppix.net/forum/viewtopic.php?t=11796

http://www.linuxquestions.org/questi...d-disk-294744/

http://www.experts-exchange.com/OS/L..._24820743.html

http://www.knoppix.net/forum/viewtop...=121620#121620

http://www.knoppix.net/forum/viewtop...?p=99669#99669

http://www.knoppix.net/forum/viewtop...?p=98279#98279
 
Old 12-23-2009, 01:31 AM   #3
BLuFeNiX
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Original Poster
Rep: Reputation: 0
alright...

I tried a bunch of different cheat codes and grub commands--to no avail. One interesting thing I read in one of those linked pages was that the KNOPPIX filesystem had to be on a different partition, so I copy the KNOPPIX folder from the iso on the first thumb drive, onto another thumb drive and have it present during boot. here's what happens:
Code:
Welcome to KNOPPIX CD RESCUE!
booting kernel 2.x.y!
checking for usb devices.
...
checking for KNOPPIX filesystem in:
/dev/hda1
/dev/hda2
/dev/hda3
...
...
/dev/sda1
FOUND IN /dev/sda2

Welcome to KNOPPIX CD RESCUE!
booting kernel 2.x.y!
checking for usb devices.
...
checking for KNOPPIX filesystem in:
/dev/hda1
/dev/hda2
/dev/hda3
...
...

could not find KNOPPIX filesystem...
??? It loads itself and then fails to find itself again... I am thoroughly confused, as I do not know much about the linux boot process.

Any ideas?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount as a device: mount dvd-iso file in /dev/dvd sadarax Linux - General 21 02-02-2011 11:59 PM
Anyone tried grub2 to boot of an iso? niravshah Linux - Newbie 12 08-03-2010 09:53 AM
Modifying distros iso images to boot with grub2 NightHorse Linux - Distributions 3 10-12-2009 06:46 PM
Grub2 and iso boot ---- Again niravshah Linux - Newbie 6 09-18-2009 03:32 PM
KNOPPIX q's: *SwapSpace *AddSoftware *boot Iso on /dev/hda1 qwijibow Linux - Distributions 1 02-26-2004 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:47 AM.

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