MSFN Forum: Linux and Multi-Boot - MSFN Forum

Jump to content


  • 6 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

Linux and Multi-Boot Rate Topic: -----

#81 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 01 March 2007 - 05:28 PM

Quote

btw: If you are a syslinux-Yoda, you could creat a little Basic-HowTo. angel.gif


The reason I called Jet Yoda is because way back when this topic started he convinced me to switch from CDShell to Isolinux and now it seams everyones doing the samething.

Just a bit of banter really!

However, you do have a point, a future isolinux guide would probably be quite useful. Saying that though, if you can use the CDShell system it's pretty easy to switch.


#82 User is offline   LeveL 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 551
  • Joined: 30-September 05

Posted 20 August 2007 - 11:21 PM

AAAAAAAAAGH!

OK now thats over with, heres the problem:

I want to multi-boot Slax (the live one from HERE along with DSL from HERE)

I am using cdshell.ini to chain these.

The problem is, whatever I do it is always booting into DSL!

The Slax CD comes with 2 folders "boot" and "slax".

I put the Slax folder on the root of my multi-boot CD.

(Knoppix is already there for DSL)

Now, to boot DSL, I did not have to modify anything, it just worked with the command in cdshell.ini saying this:

if $lastKey == key[1]; then bcdw Boot isolinux\isolinux.bin

So, I made a sub-directory INSIDE the multi-boot CD's BOOT folder called "slax" and inside that slax folder, I put all the slax boot files.

So, this slax comes with its own "isolinux.cfg" file in its own isolinux folder.

I have altered all the options in this "isolinux.cfg" file, where it used to say for example "KERNEL /boot/vmlinuz"
it now says "KERNEL /boot/slax/vmlinuz" because what used to be the "boot" folder for the Slax CD is now "BOOT/slax" on the multi-boot CD.

So my isolinux.cfg file (now inside "boot/slax") is like so:

PROMPT 0
TIMEOUT 200
DEFAULT /boot/slax/vesamenu.c32

LABEL xconf
MENU LABEL Slax Graphics mode (KDE)
KERNEL /boot/slax/vmlinuz
APPEND vga=769 initrd=/boot/slax/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;kdm

LABEL pchanges
MENU LABEL Slax Graphics mode with Persistent Changes
KERNEL /boot/slax/vmlinuz
APPEND vga=769 initrd=/boot/slax/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw changes=/slax/slaxsave.dat autoexec=xconf;kdm

LABEL copy2ram
MENU LABEL Slax Graphics mode, Copy To RAM
KERNEL /boot/slax/vmlinuz
APPEND vga=769 initrd=/boot/slax/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw copy2ram autoexec=xconf;kdm

LABEL startx
MENU LABEL Slax Graphics VESA mode (1024x768)
KERNEL /boot/slax/vmlinuz
APPEND vga=769 initrd=/boot/slax/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw autoexec=kdm

LABEL slax
MENU LABEL Slax Text mode
KERNEL /boot/slax/vmlinuz
APPEND vga=normal initrd=/boot/slax/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw

LABEL memtest86
MENU LABEL Run Memtest utility
KERNEL /boot/slax/mt86p


All I have changed is where it used to say /boot it now says /boot/slax

Problem is - even though I am linking cdshell.ini directly to the isolinux.bin file inside "boot/slax" like this:

if $lastKey == key[2]; then bcdw Boot slax\isolinux\isolinux.bin

It is STILL booting DSL!

How the hell can it possibly?! The isolinux.cfg file I have put above there in code tags IS next to the isolinux.bin file I am linking to in cdshell.ini - how can it still boot DSL?

Help, please, I have tried this so many ways now and nothing works!

This post has been edited by LeveL: 20 August 2007 - 11:25 PM


#83 User is offline   caccauk 

  • Group: Members
  • Posts: 8
  • Joined: 20-November 07

Posted 20 November 2007 - 05:54 AM

View Postkof94, on Dec 3 2006, 08:04 PM, said:

Quote

if yes, where must i put the ubuntu folder? AOIDVD\Ubuntu ?


This is something no-one has figured out yet.

You can use this...

if $lastKey == key[f8]; then isolinux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.gz ramdisk_size=1048576 root=/dev/ram rw quiet splash --


...only if you copy the ubuntu .iso contents to the root of you disc.

You only need these folders (for Edgy Eft anyway).

[casper]
[dists]
[pool]
[preseed]


-kof94


It works with 7.04 but when i try this method with 7.10 my linux start in console mode not live....please help me
:wacko:

#84 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 20 November 2007 - 01:05 PM

I don't use Ubuntu any more but I forgot to mention you also need the '.disk' (hidden in linux) directory on your disk as well.

This might be a silly question but you do have the livecd version and not the console based alternative cd don't you?

#85 User is offline   caccauk 

  • Group: Members
  • Posts: 8
  • Joined: 20-November 07

Posted 21 November 2007 - 02:20 AM

View Postkof94, on Nov 20 2007, 08:05 PM, said:

I don't use Ubuntu any more but I forgot to mention you also need the '.disk' (hidden in linux) directory on your disk as well.

This might be a silly question but you do have the livecd version and not the console based alternative cd don't you?


Yes, i have the livecd version.....i try to copy the .disk folder!

thanks a lot for your answer!! :thumbup

:hello:

#86 User is offline   caccauk 

  • Group: Members
  • Posts: 8
  • Joined: 20-November 07

Posted 27 November 2007 - 01:40 AM

View Postcaccauk, on Nov 21 2007, 09:20 AM, said:

View Postkof94, on Nov 20 2007, 08:05 PM, said:

I don't use Ubuntu any more but I forgot to mention you also need the '.disk' (hidden in linux) directory on your disk as well.

This might be a silly question but you do have the livecd version and not the console based alternative cd don't you?


Yes, i have the livecd version.....i try to copy the .disk folder!

thanks a lot for your answer!! :thumbup

:hello:


Thanks kof94, i copy the .disk folder and now i have a MultiBoot DVD with Kubuntu 7.10!

#87 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 27 November 2007 - 06:31 PM

No problem B)

#88 User is offline   caccauk 

  • Group: Members
  • Posts: 8
  • Joined: 20-November 07

Posted 05 January 2008 - 03:46 AM

Another question, i need to integrate the recovery cd of my licensed Paragon Drive Backup

The directory 'par' contains those files

dos (directory)
bm.bin
bm_hide
bm_mbr
bm_stat
boot.catalog
cd.cfg
cd_plg.bmp
cd_plg.cfg
cd_plg.exe
dos.eng
dos.frn
dos.ger
dos.img
dos.itl
dos.jpn
dos.pls
dos.rus
dos.spn
initrd.gz
lilo.eng
lilo.frn
lilo.ger
lilo.itl
lilo.jap
lilo.rus
lilo.spn
memdisk
vmlinuzp

i try with

if $lastKey == key[f8]; then isolinux /par/vmlinuzp boot=par initrd=/par/initrd.gz

but it doesn't work

Any suggestion, please?

Thanks

CCUK

#89 User is offline   caccauk 

  • Group: Members
  • Posts: 8
  • Joined: 20-November 07

Posted 14 January 2008 - 07:03 AM

View Postcaccauk, on Jan 5 2008, 10:46 AM, said:

Another question, i need to integrate the recovery cd of my licensed Paragon Drive Backup

The directory 'par' contains those files

dos (directory)
bm.bin
bm_hide
bm_mbr
bm_stat
boot.catalog
cd.cfg
cd_plg.bmp
cd_plg.cfg
cd_plg.exe
dos.eng
dos.frn
dos.ger
dos.img
dos.itl
dos.jpn
dos.pls
dos.rus
dos.spn
initrd.gz
lilo.eng
lilo.frn
lilo.ger
lilo.itl
lilo.jap
lilo.rus
lilo.spn
memdisk
vmlinuzp

i try with

if $lastKey == key[f8]; then isolinux /par/vmlinuzp boot=par initrd=/par/initrd.gz

but it doesn't work

Any suggestion, please?

Thanks

CCUK



Problem solved :hello:

#90 User is offline   caccauk 

  • Group: Members
  • Posts: 8
  • Joined: 20-November 07

Posted 17 January 2008 - 09:46 AM

KOF, i need your help: is it possible to put different disto of ubuntu (Ubu, Kubu, Edubu, ecc ecc) on the same dvd?
Thanls :whistle:

#91 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 18 January 2008 - 04:40 PM

Sorry buddy I completely missed your last question, I'm glad you managed to resolve the issue though.

caccauk said:

KOF, i need your help: is it possible to put different disto of ubuntu (Ubu, Kubu, Edubu, ecc ecc) on the same dvd?
Thanls whistling.gif


In short, no.

Unlike many live systems Debian's casper system seams to be totally hardcoded which means your stuck with only one live distro at a time. This can be a right pain if your a Ubuntu/Debian user and want Clonezilla Live on your multi-boot disc :realmad: . Thankfully I'm not one of those any more :whistle: .

My suggestion would be to take a look at the alternative, installer only boot CD's for Ed/X/K/Ubuntu. Since these don't have a live system I doubt casper would exist on these disc's so you might be able to work something out with them instead.

Apart from that there's always the remaster route or change distro ;) .

#92 User is offline   caccauk 

  • Group: Members
  • Posts: 8
  • Joined: 20-November 07

Posted 21 January 2008 - 03:39 AM

View Postkof94, on Jan 18 2008, 11:40 PM, said:

Sorry buddy I completely missed your last question, I'm glad you managed to resolve the issue though.

caccauk said:

KOF, i need your help: is it possible to put different disto of ubuntu (Ubu, Kubu, Edubu, ecc ecc) on the same dvd?
Thanls whistling.gif


In short, no.

Unlike many live systems Debian's casper system seams to be totally hardcoded which means your stuck with only one live distro at a time. This can be a right pain if your a Ubuntu/Debian user and want Clonezilla Live on your multi-boot disc :realmad: . Thankfully I'm not one of those any more :whistle: .

My suggestion would be to take a look at the alternative, installer only boot CD's for Ed/X/K/Ubuntu. Since these don't have a live system I doubt casper would exist on these disc's so you might be able to work something out with them instead.

Apart from that there's always the remaster route or change distro ;) .



Thanks a lot, you're the best!
:thumbup

#93 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 21 January 2008 - 03:20 PM

B) :)

#94 User is offline   Jotnar 

  • Member
  • PipPip
  • Group: Members
  • Posts: 186
  • Joined: 09-January 04

Posted 26 January 2008 - 11:05 AM

Since some people had expressed interest in having multiple Linux Live distros I thought I'd post what you need to change in order to do it. Right now I have SLAX, CloneGenius2008, CloneZilla, Ubunutu, Kubuntu, OpenSuSE, Fedora, MandrivaOne, PCLinuxOS, Knoppix, D amn Small Linux, PartedMagic, and ZenWalk all booting from there own folders inside a folder called LINUX thats on the root of my disc. If there's interest I can post some of the modifed initrds to RapidShare or something.

Mostly what needs to be changed is stuff inside the initrd, which you can do inside of Linux. Here's the list:

Quote

Knoppix - needed to modify linuxrc file inside initrd and change KNOPPIX and
KNOPPIX_DIR variables (or use cheatcodes)

Zenwalk - needed to change name of livecd.sgn and edit
liblinuxlive to change LIVECDSGN and LIVECDNAME variables
Also, from=/LINUX needs to be added on isolinux append line.
Root password is ZenLive.

Fedora - Username is root, no password. initrd0.img is gzipped cpio.
To unpack: $> mkdir /home/user/tmp
$> mv initrd0.img initrd0.gz
$> gunzip initrd0.gz
$> cd tmp
$> cpio -id < ../initrd0
$> mv ../initrd0 ../initrd0_old

needed to change the sections in 'init' where it
referenced the LiveOS directory.
ie.. OSMINSQFS, EXT3FS, SQUASHED. You also need the
change the lines right above so the files can be
found

To pack:
$> cd /home/user/tmp
$> find . | cpio --create --format='newc' > ../initrd0.img
$> cd ..
$> mv initrd0.img initrd0
$> gzip initrd0
$> mv initrd0.gz initrd0.img

Ubuntu - need to change casper in initrd/scripts
change all $Path/casper to $Path/LINUX/UBUNTU/casper
change $mountpoint/.disk/casper-uuid to
$mountpoint/LINUX/UBUNTU/.disk/casper-uuid
change all $Directory/casper to $Directory/LINUX/UBUNTU/casper
See above (Fedora) for cpio extraction and compilation.

OpenSuSE - needed to change config.isoclient to point new location for
openSUSE-10.3.i386*. Also need to change init and linuxrc so
that LIVECD_CONFIG points to config.isoclient in the right place.
See above (Fedora) for cpio extraction and compilation.

Mandriva - needed to modify linuxrc and change LABEL to AdminToolkit
also change /live/media/distrib.sqfs to correct path.

Gentoo - needed to change copy path in init under "Mounting Squashfs filsystem"
isolinux append line needs SUBDIR=LINUX/GENTOO added

CloneZilla - add /live_media/LINUX/CLONEZILLA to live_media_path_checklist in
pkg\opt_drbl\opt\drbl\conf\drbl-ocs.conf
add /live_media/LINUX/CLONEZILLA to possible_path variable in s03prep-drbl-clonezilla
add /live_media/LINUX/CLONEZILLA to possible_path variable in S99start-ocs-live in /etc/rcS.d
put changed S99start-ocs-live in the root of initrd
need to change casper in initrd/scripts
change all $Path/casper to $Path/LINUX/CLONEZILLA/casper
change all $Directory/casper to $Directory/LINUX/CLONEZILLA/casper
at the bottom (line right before the brace) create a new line and add
cp S99start-ocs-live "${rootmnt}/etc/rcS.d/"
See above (Fedora) for cpio extraction and compilation.

Cheers

This post has been edited by Jotnar: 31 January 2008 - 03:30 PM


#95 User is offline   Jotnar 

  • Member
  • PipPip
  • Group: Members
  • Posts: 186
  • Joined: 09-January 04

Posted 26 January 2008 - 11:43 AM

They all boot from one submenu
Posted Image

They all have their own boot menu as well
Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

Cheers

This post has been edited by Jotnar: 26 January 2008 - 11:43 AM


#96 User is offline   kof94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 433
  • Joined: 28-November 05

Posted 26 January 2008 - 04:37 PM

Nice work.

Edit: (deleted stupid question ;) )

This post has been edited by kof94: 30 January 2008 - 03:33 PM


#97 User is offline   caccauk 

  • Group: Members
  • Posts: 8
  • Joined: 20-November 07

Posted 31 January 2008 - 07:30 AM

jotnar, great work!
:thumbup

#98 User is offline   Rez. 

  • Newbie
  • Group: Members
  • Posts: 37
  • Joined: 08-May 06

Posted 31 January 2008 - 12:52 PM

Fantastic work Jotnar. This really helped alot. :thumbup

#99 User is offline   Jotnar 

  • Member
  • PipPip
  • Group: Members
  • Posts: 186
  • Joined: 09-January 04

Posted 12 June 2008 - 07:48 PM

Here's some updated instructions:

Quote

Chris D'Hondt (cmdhondt @ hotmail.com)
Changes to Support Multibooting Linux Live CDs on the Same Disc (30,MAY 2008)

This assumes that your disc label is "AdminToolkit" and that your linux directory
on the root of your disc is called LINUX. Change as needed.

Almost all of these changes deal with editing files inside the initrd.
This file is usually a gzipped cpio or a gzipped ext2 image.

Knoppix - use the knoppix_name and knoppix_dir cheatcodes on ISOLinux initrd boot paramaters.

DSL - See Knoppix

Zenwalk - need to change name of livecd.sgn and edit liblinuxlive to change LIVECDSGN and LIVECDNAME variables
from=/LINUX needs to be added on isolinux append line.
root password is ZenLive.

Fedora - Username is root, no password. initrd0.img is gzipped cpio.
To unpack: $> mkdir /home/user/tmp
$> mv initrd0.img initrd0.gz
$> gunzip initrd0.gz
$> cd tmp
$> cpio -id < ../initrd0
$> mv ../initrd0 ../initrd0_old

needed to change the sections in 'init' where it referenced the LiveOS directory.
ie.. OSMINSQFS, EXT3FS, SQUASHED. You also need to change the lines right above so
the files can be found

To pack:
$> cd /home/user/tmp
$> find . | cpio --create --format='newc' > ../initrd0.img
$> cd ..
$> mv initrd0.img initrd0
$> gzip initrd0
$> mv initrd0.gz initrd0.img

Ubuntu - need to change casper in initrd/scripts
change all $Path/casper to $Path/LINUX/UBUNTU/casper
change $mountpoint/.disk/casper-uuid to $mountpoint/LINUX/UBUNTU/.disk/casper-uuid
change all $Directory/casper to $Directory/LINUX/UBUNTU/casper
See above (Fedora) for cpio extraction and compilation.

Kubuntu - See Ubuntu

Linux Mint - See Ubuntu

OpenSuSE - need to change config.isoclient file to point new location for
openSUSE-10.3.i386*. Also need to change init and linuxrc so
that LIVECD_CONFIG points to config.isoclient in the right place.
See above (Fedora) for cpio extraction and compilation.

Mandriva - needed to modify linuxrc and change LABEL to AdminToolkit
also change /live/media/distrib.sqfs to correct path.

Clonegenius- need to change copy path in init under "Mounting Squashfs filsystem"
ISOLinux append line needs SUBDIR=LINUX/GENTOO added

CloneZilla - add /live_media/LINUX/CLONEZILLA to live_media_path_checklist in
pkg\opt_drbl.tgz\opt\drbl\conf\drbl-ocs.conf
add /live_media/LINUX/CLONEZILLA to possible_path variable in ocs-live.d/s03prep-drbl-clonezilla
add /live_media/LINUX/CLONEZILLA to possible_path variable in S99start-ocs-live in /etc/rcS.d
put changed S99start-ocs-live in the root of initrd
need to change casper in initrd/scripts
change all $Path/casper to $Path/LINUX/CLONEZILLA/casper
change all $Directory/casper to $Directory/LINUX/CLONEZILLA/casper
at the bottom (line right before the brace) create a new line and add
cp S99start-ocs-live "${rootmnt}/etc/rcS.d/"
See above (Fedora) for cpio extraction and compilation.

PCLinuxOS - need to change linuxrc in initrd (ext2 image).
Change $MNTCDROM/$BASEIMG$LOOPSEXT to $MNTCDROM/LINUX/PCLINUXOS/$BASEIMG$LOOPSEXT
Change losetup $DEVLOOP $MNTCDROM/$BASEIMG$LOOPTYPE to losetup $DEVLOOP $MNTCDROM/LINUX/PCLINUXOS/$BASEIMG$LOOPTYPE
Change all $MNTCDROM/livecd.sqfs to $MNTCDROM/LINUX/PCLINUXOS/livecd.sqfs

Kaspersky - In init change ${cdrom_mount_point}${SUBDIR}/kavresc to ${cdrom_mount_point}${SUBDIR}/LINUX/KASPERSKY/kavresc
Gentoo based.

Virtualbox is a good way to test your changes
To get eth0 interface working in VirtualBox, you need the Bridge_Utils package:

$> brctl addbr br0
$> ifconfig eth0 0.0.0.0
$> brctl addif br0 eth0
$> ifconfig br0 192.168.1.2 netmask 255.255.255.0

Cheers

This post has been edited by Jotnar: 12 June 2008 - 07:48 PM


#100 User is offline   rageaddict 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 09-June 08

Posted 13 June 2008 - 10:40 AM

View Postkof94, on Nov 27 2006, 02:26 PM, said:

I finally managed to get Knoppix 5.0.1 and ubuntu 6.10 to boot through CDShell using the default boot options.

For Knoppix put the isolinux folder inside the KNOPPIX folder on your disc the use this command to boot it:

if $lastKey == key[f4]; then isolinux /KNOPPIX/isolinux/linux ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=/KNOPPIX/isolinux/minirt.gz nomce quiet BOOT_IMAGE=knoppix


And use this command for ubuntu (no isolinux folder required and source files at root of disc):

if $lastKey == key[f8]; then isolinux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.gz ramdisk_size=1048576 root=/dev/ram rw quiet splash --


Obviously change the keys to fit your menu.

The only draw back with this approach is you would need to script each isolinux command in CDShell if you wanted the extra boot options.

I found an interesting thread here that could be adapted to provide the full isolinux boot menu for each distro. However, I do not yet poses enough knowledge about mkisofs to decipher exactly what is being done here... jetman? :whistle:

On the topic of relocating source files.

I've also read somewhere that you can append source file locations to the isolinux command. Although I havn't tried this yet, I worry this could cause problems during installation (ubuntu) even if it manages boot live. I'll try to find the topic again to give to guys an example.

-kof94

did exactly what it says here and get this error... check screenshot

Attached File(s)



Share this topic:


  • 6 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy