Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Knoppix boot from different partitions

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Oct 2008
    Posts
    13

    Knoppix boot from different partitions

    If you have copied Knoppix 6.2.1 files to a partition on your HDD and you try to boot from a 6.2.1 USB key, it will somehow switch over to loading and mounting everything from the HDD copy.

    Is there any way to disable this, to force Knoppix to boot from a particular partition, or from a particular KNOPPIX/ directory, when there are multiple versions lying around?

    Can we have a KNOPPIX6.2.1 and KNOPPIX6.4.3 directories each containing the relevant Knoppix files in different partitions and choose which one to boot from a Grub menu.lst? I'm trying this right now and at the moment, 6.4.3 strangely seems to boot the 6.2.1 partition (I put on 6.2.1 first). It also takes very much longer when it does this, sticking for a while at a "Probing EDD..." prompt.

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    If you have copied Knoppix 6.2.1 files to a partition on your HDD and you try to boot from a 6.2.1 USB key, it will somehow switch over to loading and mounting everything from the HDD copy.
    ... are you sure your BIOS can boot from USB-Stick? Otherwise BIOS will switch to second bootable device and boot from HD.

    Can we have a KNOPPIX6.2.1 and KNOPPIX6.4.3 directories each containing the relevant Knoppix files in different partitions and choose which one to boot from a Grub menu.lst?
    If different OS are on different partitions you can select which OS to start. Can you post '/boot/grub/menu.lst' and the output from "df -h"

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    "Build personal Recovery-CD with Knoppix (Knoppix remaster)"

  3. #3
    Junior Member registered user
    Join Date
    Oct 2008
    Posts
    13
    I'm fairly sure it is booting the isolinux on the USB drive (when the big penguin appears, that is the from the USB drive), and at some point after, it searches for appropriate files on the HDD and switches to them if it finds them. I remember I had problem booting 6.2.1 from the USB drive while I had the files for 6.0.1 on my HDD until I went in and disabled 6.0.1 by renaming KNOPPIX to KNOPPIX_disabled. (the version numbers may not be accurate, but the gist is correct). Then it boot properly from the USB key, and I wasn't playing around with the BIOS. Prior to that it was dropping me to limited shell from which I could see using df -h, that it had started mounting stuff from Knoppix 6.0.1.

    In general, I thought this was a nice feature, because I could copy KNOPPIX/ from the iso image to a partition on my HDD, boot from the USB key, and pull the USB key out a few seconds later and the booting would continue and complete from the HDD partition. But in this case with multiple versions of Knoppix lying on different partitions, it is making it difficult.

    The setup I am trying to bring about is Knoppix 6.2.1 on /dev/sda5, Knoppix 6.4.3 on /dev/sda6, Ubuntu 10.4 on /dev/sda7, all bootable from Grub. Here is menu.lst:
    Code:
    default 0
    timeout 10
    
    title Knoppix_6.2.1
    root (hd0,4)
    kernel /boot/syslinux/linux ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=791 initrd=minirt.gz nomce quiet loglevel=0 tz=localtime no3d noprompt screen=1920x1080
    initrd /boot/syslinux/minirt.gz
    boot
    
    title Knoppix_6.2.1_noimage
    root (hd0,4)
    kernel /boot/syslinux/linux ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=791 initrd=minirt.gz nomce quiet loglevel=0 tz=localtime no3d noprompt noimage screen=1920x1080
    initrd /boot/syslinux/minirt.gz
    boot
    
    title Knoppix_6.4.3
    root (hd0,5)
    kernel /boot/isolinux/linux ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off video=vga16fb:off initrd=minirt.gz nomce loglevel=1 tz=localtime no3d noprompt
    initrd /boot/isolinux/minirt.gz
    boot
    The ubuntu partition is not set up yet, as I am not getting 2 versions of Knoppix dual booting properly. At the moment I just want to keep 6.2.1 around for legacy reasons, I hope that I should be able to switch to 6.4.3. I need Ubuntu for the 64 bit OS from time to time, but prefer the Knoppix environment.

    This is the output from df -Th
    Code:
    $ df -Th
    Filesystem    Type    Size  Used Avail Use% Mounted on
    /dev/sda6     ext3     37G  3.6G   32G  11% /mnt-system
    tmpfs        tmpfs    2.0G   49M  2.0G   3% /ramdisk
    /dev/cloop iso9660    8.1G  8.1G     0 100% /KNOPPIX
    unionfs       aufs    2.0G   49M  2.0G   3% /UNIONFS
    unionfs       aufs    2.0G   49M  2.0G   3% /home
    tmpfs        tmpfs     10M   64K   10M   1% /UNIONFS/var/run
    tmpfs        tmpfs     10M     0   10M   0% /UNIONFS/var/lock
    tmpfs        tmpfs    100M   64K  100M   1% /UNIONFS/var/log
    tmpfs        tmpfs    2.0G  228K  2.0G   1% /tmp
    udev         tmpfs     20M  420K   20M   3% /dev
    tmpfs        tmpfs    2.0G  4.0K  2.0G   1% /dev/shm
    /dev/sda6     ext3     37G  3.6G   32G  11% /media/sda6
    /dev/sda5     ext3     37G  4.7G   31G  14% /media/sda5
    /dev/sda7     ext3     37G  177M   35G   1% /media/sda7
    /dev/sda8     ext3     37G  177M   35G   1% /media/sda8
    When booting the 6.4.3 partition, it does something for a very long time while it is "Probing EDD..." after which it eventually boots 6.2.1. If I "disable" 6.2.1 by renaming KNOPPIX to KNOPPIX_disabled in that partition, then it boots to 6.4.3.

  4. #4
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by chah View Post
    Is there any way to disable this, to force Knoppix to boot from a particular partition, or from a particular KNOPPIX/ directory, when there are multiple versions lying around?
    You can try to use the knoppix cheatcode knoppix_dir=KNOPPIX.

    Basically you copy the knoppix files to different directories, and then you specify the knoppix_dir=KNOPPIX inside your menu.lst entries.

  5. #5
    Junior Member registered user
    Join Date
    Oct 2008
    Posts
    13
    Quote Originally Posted by kl522 View Post
    You can try to use the knoppix cheatcode knoppix_dir=KNOPPIX.

    Basically you copy the knoppix files to different directories, and then you specify the knoppix_dir=KNOPPIX inside your menu.lst entries.
    Is there anyway to specify which partition is boot from? But I can also choose a unique name for each directory on each partition which will allow a specific boot for each version of Knoppix. Thanks for the tip.

    I am in doubt this will be the behaviour of an USB-Stick which you build without any hacks and start without any cheatcodes.
    It does happen though. Give it a try, copy the KNOPPIX/ directory from the USB stick onto the root of a partition on your hard drive (maybe you need the boot/ directory too), boot from the USB without any cheat codes and when the system is running, take a look at df -h to see which partition is mounted on /mnt-system/. During the booting process, it will also tell you which partition it is using, just under the penguins indicating the number of cores your computer has. If it is using the one on the HDD, you can immediately pull the USB out and booting will continue to completion from the HDD.

    This happens without flutzing around with the BIOS or the MBR, just so long as you can boot from the USB.

  6. #6
    Junior Member registered user
    Join Date
    Oct 2008
    Posts
    13
    I used to think that when you boot from your own USB, you are assured of a working, uncorruptible KNOPPIX system. I found this is not necessarily true. If you have a copy of KNOPPIX on the HDD, it will switch over to that system, often unbeknownst to the user.

    There are several places that Knoppix takes updates/modifications from while booting that will cause it to be different from the clean system that Klaus gives us. The first is obviously if you create a persistent knoppix.img in KNOPPIX/, modifications will be mounted from there. Secondly if you have a knoppix.sh in KNOPPIX/ subdirectory, it will be executed as root just before you get a working system, you can put whatever additional modifications you want to happen in that file (untar additional files, start daemons).

    Thirdly, and in my opinion, most dangerously, if there is a copy of KNOPPIX/ on your HDD, Knoppix will switch over to that early on during the booting process. It will say it right below the penguins as mentioned, but if you don't read it, and you don't check with df -h, you may not know you are working on a possibly modified system.

  7. #7
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Quote Originally Posted by chah View Post
    It does happen though. Give it a try, copy the KNOPPIX/ directory from the USB stick onto the root of a partition on your hard drive (maybe you need the boot/ directory too), boot from the USB without any cheat codes and when the system is running, take a look at df -h to see which partition is mounted on /mnt-system/. .
    First of all, i don't like to experiment with older versions of Knoppix; the actuell version is KNOPPIX_V6.4.3CD-2010-12-20-EN.iso

    I have build an USB-Stick without any hacks.

    I copied /Knoppix and /boot/syslinux to an HD with Ubuntu-installation.

    At first I mounted Knoppix USB-Stick as /dev/sda and Ubuntu HD as /dev/sdb and get while booting from USB-Stick the message: "Knoppix 6 found at: /dev/sda1"


    Then I mounted Knoppix USB-Stick as /dev/sdb and Ubuntu HD as /dev/sda and get while booting from USB-Stick the message: "Knoppix 6 found at: /dev/sdb1"

  8. #8
    Junior Member registered user
    Join Date
    Oct 2008
    Posts
    13
    Can you clarify, what you mean by "I mounted Knoppix USB-Stick as /dev/sda and Ubuntu HD as /dev/sdb and get while booting...."? When booting 6.4.3, I just put the thumbdrive in the USB port, turn the computer on then press return at the big penguin screen without mounting anything, I don't have any choice over which device becomes /dev/sda and which /dev/sdb. Are you somehow able to choose which is sda and which is sdb during booting?

    When you copy KNOPPIX/ and boot/ to the Ubuntu partition, did you put it in the root directory of the partition?

  9. #9
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    ... you can install a HD as master or slave in your computer. And independent of this you can change BIOS setting to boot from HD or USB-drive. BIOS must be able to accept an USB-Stick as an USB-drive.

    When you copy KNOPPIX/ and boot/ to the Ubuntu partition, did you put it in the root directory of the partition?
    Yes, of course.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    "Build personal Recovery-CD with Knoppix (Knoppix remaster)"

  10. #10
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    ... first case:
    Code:
    # df -Th
    Filesystem    Type    Size  Used Avail Use% Mounted on
    /dev/sda1     vfat    965M  963M  1.2M 100% /mnt-system
    tmpfs        tmpfs    2.0G     0  2.0G   0% /ramdisk
    /dev/cloop iso9660    1.9G  1.9G     0 100% /KNOPPIX
    /dev/loop0    ext2    257M  3.6M  254M   2% /KNOPPIX-DATA
    unionfs       aufs    257M  3.6M  254M   2% /UNIONFS
    unionfs       aufs    257M  3.6M  254M   2% /home
    tmpfs        tmpfs     10M   68K   10M   1% /UNIONFS/var/run
    tmpfs        tmpfs     10M     0   10M   0% /UNIONFS/var/lock
    tmpfs        tmpfs    100M   48K  100M   1% /UNIONFS/var/log
    tmpfs        tmpfs    2.0G  8.0K  2.0G   1% /tmp
    udev         tmpfs     20M  356K   20M   2% /dev
    tmpfs        tmpfs    2.0G  4.0K  2.0G   1% /dev/shm
    /dev/sdb1     ext4    7.4G  5.9G  1.1G  85% /media/sdb1
    second case:
    Code:
    # df -Th
    Filesystem    Type    Size  Used Avail Use% Mounted on
    /dev/sdb1     vfat    965M  963M  1.2M 100% /mnt-system
    tmpfs        tmpfs    2.0G     0  2.0G   0% /ramdisk
    /dev/cloop iso9660    1.9G  1.9G     0 100% /KNOPPIX
    /dev/loop0    ext2    257M  4.8M  252M   2% /KNOPPIX-DATA
    unionfs       aufs    257M  4.8M  252M   2% /UNIONFS
    unionfs       aufs    257M  4.8M  252M   2% /home
    tmpfs        tmpfs     10M   68K   10M   1% /UNIONFS/var/run
    tmpfs        tmpfs     10M     0   10M   0% /UNIONFS/var/lock
    tmpfs        tmpfs    100M   48K  100M   1% /UNIONFS/var/log
    tmpfs        tmpfs    2.0G  8.0K  2.0G   1% /tmp
    udev         tmpfs     20M  356K   20M   2% /dev
    tmpfs        tmpfs    2.0G  4.0K  2.0G   1% /dev/shm
    /dev/sda1     ext4    7.4G  5.9G  1.1G  85% /media/sda1
    If I have a look at init-script I can not find any line which could explain the curious behavior of Knoppix USB-Stick you told us.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    "Build personal Recovery-CD with Knoppix (Knoppix remaster)"

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot

$80.39



SAMSUNG SM961 SERIES 1TB MLC PCIE 3.0 X4 NVME M.2 2280 INTERNAL SSD | MZ-VKW1T00 picture

SAMSUNG SM961 SERIES 1TB MLC PCIE 3.0 X4 NVME M.2 2280 INTERNAL SSD | MZ-VKW1T00

$64.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$109.99



Micron 1300 MTFDDAK1T0TDL-1AW1ZABYY 1TB 2.5

Micron 1300 MTFDDAK1T0TDL-1AW1ZABYY 1TB 2.5" 6Gb/s SATA Solid State Drive

$39.99



1TB Samsung 850 Pro Series 2.5

1TB Samsung 850 Pro Series 2.5" SATA 3 SSD MZ-7KE1T0BW HDD hard drive MZ-7KE1T0

$59.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$13.99



Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive picture

Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive

$67.99



SEAGATE 1TB 2.5

SEAGATE 1TB 2.5" SATA HDD 5400 RPM "GRADE A" ST1000LM035-1RK172 SKU 7838

$13.95



SanDisk 1TB SSD Plus, Internal Solid State Drive - SDSSDA-1T00-G26 picture

SanDisk 1TB SSD Plus, Internal Solid State Drive - SDSSDA-1T00-G26

$43.15



Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot picture

Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot

$73.29