UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to boot backtrack (based on ubuntu) using the poor man's install method of booting the live image on the hard disk using grub. I have had success with knoppix and puppy linux using this method. The backtrack live dvd boots fine. Booting the image off the hard disk:
kernel panic - not syncing : attempted to kill init
Your menu entry indicates you have a Linux distribution installed and that it is using Grub Legacy, is that right?
I doubt you need (hd0,1) after kernel and initrd but it shouldn't matter.
Have you tried putting the casper directory in the / of sda2? rather than having /Backtrack/casper....?
Have you checked to see if the initrd file has a .gz extension or an .lz?
I don't have Backtrack available but I've booted at least one Ubuntu derivative (Peppermint) from Grub Legacy using the following entry. This of course is a Live CD on the hard drive in the / (root) partition of the system with Grub Legacy:
Quote:
title Peppermint One Live CD
kernel (hd0,7)/casper/vmlinuz file=/preseed/mint.seed boot=casper quiet splash --
initrd (hd0,7)/casper/initrd.lz
I initially tried this by putting the Peppermint directories/files in a Peppermint directory in the root of sda8. That did not work and I've read a number of posts in various locations that would indicate that at least the casper directory needs to be in root. I would suggest you put the casper directory in the root of sda1 and modify your menuentry to reflect that. If that doesn't work, post the entry from the isolinux.cfg file on the Backtrack iso or CD.
I tried moving casper to sda2/casper and edited grub entry with same error (gave up waiting for root device). I could not find an isolinux.cfg file in the iso or cd, but here is bt5 isolinux.cfg (bt5 will not boot on my box):
default vesamenu.c32
prompt 0
timeout 300
menu title BackTrack Live CD
menu background splash.png
menu color title 1;37;44 #c0ffffff #00000000 std
label DEFAULT
menu label BackTrack Text - Default Boot Text Mode
kernel /casper/vmlinuz
append file=/cdrom/preseed/custom.seed boot=casper initrd=/casper/initrd.gz text splash vga=791--
label STEALTH
menu label BackTrack Stealth - No Networking enabled
kernel /casper/vmlinuz
append file=/cdrom/preseed/custom.seed boot=casper initrd=/casper/initrds.gz text splash staticip vga=791--
label FORENSICS
menu label BackTrack Forensics - No Drive or Swap Mount
kernel /casper/vmlinuz
append file=/cdrom/preseed/custom.seed boot=casper initrd=/casper/initrdf.gz text splash vga=791--
label BackTrack noDRM - No NVIDIA drm driver
menu label BackTrack Text - Default Boot Text Mode
kernel /casper/vmlinuz
append file=/cdrom/preseed/custom.seed boot=casper initrd=/casper/initrd.gz text splash nomodeset vga=791--
I would suggest loop mounting the Backtrack iso and copying at least the casper and preseed directories to the / of sda2. I usually copy all directories/files but I don't think you need the files or the isolinux directory. Won't hurt to copy them too. In your case I believe you need the Backtrack directories in the / of the partition and not under "Backtrack". The grub entry in your last post doesn't look anything like the entries from your Backtrack isolinux.cfg file you posted. After moving your Backtrack directories/files to the / of sda2, try the entry below and report back:
title Backtrack
kernel (hd0,1)/casper/vmlinuz file=/preseed/custom.seed boot=casper text splash vga=791--
initrd (hd0,1)/casper/initrd.gz
Result:
kjournald starting: commit interval 5 seconds
ext-fs(sda2): mounted filesystem with writeback mode
ext-fs(sda3): mounted filesystem with writeback mode
ext-fs: barriers not enabled
ends with a busybox prompt
To clarify, the isolinux.cfg was from backtrack 5. Backtrack 4 does not have an isolinux.cfg. I included it in my post because I felt it might help in troubleshooting the problem.
If I am using a grub legacy, what would the grub entry look like for a backtrack iso loopback?
Also, I can not copy the /boot folder to / because my opensuse install already has /boot in sda2.
You would need some boot menu file on the Backtrack CD to boot it. If you don't have isolinux.cfg, syslinux.cfg??
Are you trying to install Backtrack 4? If so, loop mount it and post the directories/files in its /. The directories/files in the / of an Ubuntu iso are shown below. Are the Backtrack files/directories different? If so, how?
I don't know what Backtrack has in its /boot directory but the kernel and initrd as well as the squashfs file are usually in casper on Ubuntu derivatives. You may not need the boot directory from Backtrack. What files are in it? I've not seen a boot directory in any of the Ubuntu derivatives iso image?
Do you have the casper directory as well as the preseed directory from Backtrack in the / of Opensuse on sda2?
I don't believe a loopback entry will work with Grub Legacy but it does work with Grub2 on some distributions.
Have not tried loopback option yet and beginning to feel that bt4 may not be bootable this way (although not giving up just yet). Is it possible to boot from the raw iso file using grub? Running backtrack in a virtual machine works well, except do not like the added overhead on the pc. I also made a bootable usb key with backtrack 4 and grub menu installed that I will try on the box to see if can support usb booting.
No preseed directory under /, interesting. What's in the grub directory? I don't see any other boot files, usually there is an isolinux directory? It might be bootable with a loopback. Most Ubuntu derivatives I have tried have booted. I have Ubuntu 11.04 installed on sda5 of my system and have a remastered mint iso file in the / of that system which boots with no problems with this menuentry:
You would obviously have to modify it. Backtrack doesn't seeem to have the same directories/files as most other Ubuntu derivatives. I don't think this will be possible with Grub Legacy but I've never tried. The entry above is from a Grub2 grub.cfg file.
I am going to set this issue on the back burner for now. I searched and found nothing in regard to grub legacy and iso booting. I have to upgrade to grub2 for iso booting as you suggested earlier. For the time being, I am going to get by on this box with dvd booting and/or using virtual box. I have other boxes to test BT on. My preference is bt5, but the box does not boot it. BT5 does seem to have a dvd file structure similar to Ubuntu, but not bt4... Thanks for all the input. Will post back if I stumble on a solution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.