PDA

View Full Version : can not get poor mans install to boot



mrbojangles
09-27-2010, 02:12 AM
I am trying to get the knoppix dvd (adrian) to boot from hard disk using the poor mans install method. The system has a running opensuse 11.1 64bit os. I have installed puppy linux to hda0,2 and added it to the grub boot loader and it works fine. However, I can not use the same method with the knoppix dvd. The partitions are ext3. I read that knoppix needs it own partition using ext2. I have read the various how-to docs with no success. I do not want to boot a cd and use a cheat code to run the hard drive install of knoppix.

kl522
09-27-2010, 07:18 AM
Is this tested and proven ?

You have to differentiate two things, ie
1) The "hosting" file system - ie the file system which holds the knoppix files.
2) The knoppix compressed image ( loop mount ) file system.

For item 1, it can be VFAT, ISO9660, NTFS, EXT2, EXT3 and reiserfs.
For item 2, it can only be ext2.

For your case, what's relevant is item 1, and ext3 is a supported file system. It should be working.

mrbojangles
09-28-2010, 01:21 AM
If I understand your reply, the knoppix iso image is in ext2 file format. My hd file system is ext3. So the problem must be in how knoppix was installed? What I did was copy the contents of the iso file to the root of hda3 (the root of /home in opensuse) and made a knoppix entry in the grub boot loader. The error grub reported was that it could not find the file. I read later that the kernel and initrd files needs to be in a separate partition (root). Is that a workable solution to the poor mans install?

kl522
09-28-2010, 05:40 AM
No you don't seem to get me - but for now, the only thing you need to know is that knoppix poor man install is working on vfat, iso9660, ntfs, ext2, ext3 and reiserfs - that's assuming you are using >= 6.2.0. Can't say about older versions.

Now to solve the actual problem, you would have to post specifics. You have to post what you have done (wrong) in order to get it right. If you post no specific, I have no idea what you have done. :)

kl522
09-28-2010, 07:55 AM
I read later that the kernel and initrd files needs to be in a separate partition (root).

The location of kernel and initrd is totally dependent on the boot loader. Different boot loader and file system layout may have different considerations. Note that this is not something which is imposed by knoppix. Just check how the opensuse is doing it now and do the same. Once you sorted out the booting ( linux and minirt.gz ), the rest is simple, as knoppix auto detect for presence of knoppix files.

mrbojangles
09-28-2010, 11:57 PM
Here is my grub entry:

title Knoppix 6.2 dvd ISO scan ramdisk=32MB
kernel (hd0,2)/knoppix/linux ramdisk_size=100000 initrd=minirt.gz lang=us apm=power-off vga=791 nomce quiet fromhd=/dev/hda3/knoppix bootfrom=/knoppix/*.iso config=scan home=scan ramdisk=32768 noprompt
initrd (hd0,2)/knoppix/minirt.gz
boot

I have linux, minrt.gz and knoppix.iso in hda3

It can boot part way where it seems to be searching for usb and stops with:
could not mount disk to /mnt-system. Starting debugging shell.....

box is amd 3500+ 1gig ram opensuse 11.3

kl522
09-29-2010, 02:24 AM
fromhd=/dev/hda3/knoppix bootfrom=/knoppix/*.iso config=scan home=scan


Firstly, the good news portion. You have done all that is required by the boot loader.
What you did not do correct is only the second part, the copying of knoppix files.

It appears to me that you are copying the raw image of knoppix as a *.iso. I read somewhere someone has modified the minirt.gz to get this configuration working, but that's a 60 over pages of posts which I don't have the patience to follow.

What you should have copied, is the 'KNOPPIX' directory, as it appeared to you when you mount the CD/DVD. The directory has a few important files, one of them is KNOPPIX/KNOPPIX, another is the folder KNOPPIX/modules, and a few htmls/pictures.

Also I have no idea of the significance of the cheatcode you used, as quoted above. Someone who is familiar with knoppix cheatcode can help explain that. But I think they are not necessary. You can remove them. As far as I know knoppix auto detects the presence of knoppix files, until someone proves me wrong that the autodetect is flawed. :)

mrbojangles
09-30-2010, 02:12 AM
Ok, I cleaned up the cheatcodes and copied the knoppix/knoppix folder to the hard drive hda3. It looks like it does a scan over and over like this:
/dev/sda1
/dev/sda2
/dev/sda3
until it stops with: 'could not mount disk to /mnt-system. Starting debugging mode...'

I am confused between the fromhd= and bootfrom= cheatcodes. Do I need them? I feel that I am close to getting it to boot, but need some clues.

kl522
09-30-2010, 02:42 AM
Ok maybe indeed there is a flaw in the autodetect, based on the output, it seems to only scan /dev/sdaX and did not scan /dev/hdaX.

You might need one of those cheatcode fromhd thingie. Maybe you can try fromhd=/dev/hda3. But the problem might be more complicated than this, as the device files /dev/hdaX might not be present in the knoppix system. Looks like you need a patched minirt.gz.

At the debug shell, try this :-

# ls -al /dev/hd*

To check if the device files are present.

If not, try this :-

# mknod /dev/hda3 b 3 3

After that :-
# mount /dev/hda3 /mnt-system
# exit

kl522
09-30-2010, 09:48 AM
I changed my mind, somewhat. It seems from the output, the kernel is treating hda as sda, so it is able to scan upto sda3.

So yet another possibility is that you still did not copy the knoppix files correctly, ie the path is not what is expected by knoppix.

When you view the copied files under opensuse, it should be something like this :-

/mount_point/KNOPPIX <---- this is a directory
/mount_point/KNOPPIX/KNOPPIX <----- this is a huge file
/mount_point/KNOPPIX/modules <---- this is a directory
/mount_point/KNOPPIX/moduldes/aufs.ko <--- this is a file
.... so on and so forth

If the hda3 is your root file system, then there is no mount point, the file organization will be :-

/KNOPPIX <---- this is a directory
/KNOPPIX/KNOPPIX <----- this is a huge file
/KNOPPIX/modules <---- this is a directory
/KNOPPIX/moduldes/aufs.ko <--- this is a file
.... so on and so forth

mrbojangles
09-30-2010, 04:35 PM
Ok, here are some results:

ls -al /dev/hd* produced results that scrolled past the screen. I typed ls -al /dev/hda* and had seen that hda3 was listed. I did type the mknod /dev/hda3 b 3 3, but did not realize until after the fact that was to be done if no results were seen for ls -al /dev/hd*.

mount /dev/hda3 /mnt-system produced 'no such device or address'

ls <enter> lists the file system and mnt-system is there. Since both hda3 and mnt-system are listed, I am not sure what the device or address is that can not be found.

I put the knoppix folder under /home in hda3. That seems to be the highest point I can go in that partition and that is where the puppy linux folder is located as well.

klaus2008
09-30-2010, 06:37 PM
kernel (hd0,2)/knoppix/linux ramdisk_size=100000 initrd=minirt.gz lang=us apm=power-off vga=791 nomce quiet fromhd=/dev/hda3/knoppix bootfrom=/knoppix/*.iso config=scan home=scan ramdisk=32768 noprompt
initrd (hd0,2)/knoppix/minirt.gz
If you put the KNOPPIX files in a subdirectory then you must use the cheatcode knoppix_dir to describe the location. In the following example I assume that the large KNOPPIX file resides in the directory /home/KNOPPIX on the third partition of the first hard disk drive.


kernel (hd0,2)/knoppix/linux fromhd=/dev/sda3 knoppix_dir=home/KNOPPIX ramdisk_size=100000 lang=us vt.default_utf8=0 apm=power-off vga=791 nomce quiet loglevel=0
initrd (hd0,2)/knoppix/minirt.gz

mrbojangles
10-01-2010, 05:11 PM
I am now posting from the knoppix poor mans install! The kernel and initrd grub statements fixed some errors I had. My other error was in not having all the necessary files from the dvd in the hard drive. I also had to tweek the path in grub to be more direct as to where the knoppix files are located. I found from trial and error that knoppix did not work with /home in the path. Question: I am prompted if I want to make a personal file and at what size. Will that make a persistant home directory?

mrbojangles
10-03-2010, 05:48 PM
I should have posted my grub entry. And thanks for the help klaus2008 and kl522. This worked for me for those who wish to try this type of install:

title Knoppix 6.2 dvd ISO
root (hd0,2)
kernel (hd0,2)/knoppix/boot/isolinux/linux fromhd=/dev/sda3 knoppix_dir=knoppix/KNOPPIX ramdisk_size=100000 lang=us vt.default_utf8=0 apm=power-off vga=791 nomce quiet loglevel=0
initrd (hd0,2)/knoppix/boot/isolinux/minirt.gz
savedefault
boot