WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: dual boot ubuntu and tcl  (Read 11889 times)

Offline david_ozura

  • Newbie
  • *
  • Posts: 3
dual boot ubuntu and tcl
« on: March 27, 2009, 08:35:12 AM »
hi!
i am new in tcl and i would like to know how is it possible to make a dual boot for ubuntu and tcl. at this time a have ubuntu installed on my computer, but i would like to install also tcl (and maybe slitaz) at the same time.
thnx, d

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: dual boot ubuntu and tcl
« Reply #1 on: March 27, 2009, 12:41:31 PM »
You can just copy over the 2 base TC files (tinycore.gz and bzImage) and modify your existing bootloader to boot off them.  You can use the install guide for reference.

Offline linux_oid

  • Newbie
  • *
  • Posts: 3
Re: dual boot ubuntu and tcl
« Reply #2 on: March 28, 2009, 07:02:51 AM »
I don't see tinycore.gz and bzImage on download site (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/release/).

Are those in iso image?
I'll try

:)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: dual boot ubuntu and tcl
« Reply #3 on: March 28, 2009, 07:13:27 AM »
Yes, they're in the iso - you can access them like this:
Code: [Select]
$ mkdir /tmp/image
$ sudo mount -o loop /path-to-file/tinycore_1.2.iso /tmp/image

tinycore.gz and bzImage will be in /tmp/image/boot

Offline philip

  • Full Member
  • ***
  • Posts: 125
Re: dual boot ubuntu and tcl
« Reply #4 on: March 28, 2009, 08:06:24 AM »
I have precisely this kind of dual-booting Ubuntu/TC setup. It works well, except that Ubuntu is getting lonely from lack of use. When editing the boot-loader menu file /boot/grub/menu.lst, the absolutely minimal approach will work. E.g.,
Code: [Select]
title TinyCore 1.2
root (hd0,0)
kernel /boot/bzImage
initrd  /boot/tinycore.gz
(You may have to change the numbers that specify your root partition. Insert this block somewhere after the long run of comments whose last line says "End Default Options".) Later, you may want to explore the special options you can add to the kernel command line. These are listed in files f2 and f3 in the ISO image, now also easily accessible on the wiki: http://wiki.tinycorelinux.com/tiki-index.php?page=Boot+Options

Offline linux_oid

  • Newbie
  • *
  • Posts: 3
Re: dual boot ubuntu and tcl
« Reply #5 on: March 29, 2009, 04:28:31 AM »
The biggest problem was to realize that bzImage has capital 'I', not small 'i'.

Prepearing
# mkdir /mnt/sda8/ISO/TinyCore
# mkdir /files
# mkdir /extracted

Getting Tiny Core files
[root@AMD1400 TinyCore]# mount -o loop /mnt/sda8/ISO/TinyCore/tinycore_1.3rc1.iso
/mnt/sda8/ISO/TinyCore/files
# cp -R /mnt/sda8/ISO/TinyCore/files/boot /mnt/sda8/ISO/TinyCore/extracted

Copying files
# cp /mnt/sda8/ISO/TinyCore/files/boot/bzImage /mnt/sda8/ISO/TinyCore
# cp /mnt/sda8/ISO/TinyCore/files/boot/tinycore.gz /mnt/sda8/ISO/TinyCore


Booting from grub2 command line (sda8 has lvm flag)
> root (hd0,8)
> linux (hd0,8)/ISO/TinyCore/bzImage
> initrd (hd0,8)/ISO/TinyCore/tinycore.gz
I'll try

:)

Offline pema

  • Newbie
  • *
  • Posts: 48
Re: dual boot ubuntu and tcl
« Reply #6 on: April 09, 2009, 01:15:22 AM »
Let me post a minor warning to save you some toothgrinding:
If you let grub do the install for you, you will have the boot loader at partition choosen by grub, and, grub overwrites your windows bootloader. This works fine as long as you never change any of your installs, but many of you here are probably testing several dists and that gives you the problem that when re-using a partition you might overwrite your bootloader so your computer will not boot next time. Sollution is to put bootloader in a persistent directory such as a windows partition. See a howto in the subject here: http://forum.tinycorelinux.net/index.php?topic=459.0
To restore your windows bootloader, boot your computer into windows(by grub or win rescue disc) and launch command "restore mbr" in terminal, this do destroy your grub bootloader searchpath but the howto instructs you howto setup a new bootloader.
With above howto you only add your new dist in grub menu.lst when experimenting.

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: dual boot ubuntu and tcl
« Reply #7 on: April 09, 2009, 09:02:47 AM »
This is just opinion, but it's shared by many Linux advocates...overwriting the Windows mbr is not a problem.  Grub can easily boot Windows by chainloading ntldr.  The entire time I was dual-booting I used either Grub or Lilo to boot Windows.  When a reinstall of Windows was required (every 6-8 months on average), I would always reinstall the Linux bootloader after Windows forced its own.

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: dual boot ubuntu and tcl
« Reply #8 on: April 09, 2009, 01:42:03 PM »
yes!

I use LinuxMint 6 (it's distro from Ubuntu 8.10) and TinyCore Linux 1.2.

you must copy 2 files (tinycore.gz and bzImage) from cdrom with tinycore1.2.iso or later and modify your existing bootloader to boot off them. 

for copy use in terminal sudo cp . i copied tinycore.gz and bzImage just in /boot/
I like mint - u can just click mouse on menu "open as root" and u don't need to type commands in terminal. ;-) -fast and easy! ;-)

in Ubuntu:

press alt+f2 for "run" window . type  gnome-terminal
in terminal type:
 sudo gedit /boot/grub/menu.lst

(for editing of booting menu)

then in gedit go to line like

title Ubuntu 8.10, kernel 2.6.27-7-generic
root
kernel
initrd
quiet

after that lines type:

title      TinyCoreLinux 1.2, kernel 2.6.26
root      (hd0,5)
kernel       /boot/bzImage quiet
initrd       /boot/tinycore.gz

Save file menu.lst. Reboot.

for example, its a part of my menu.lst:


title      Linux Mint Universal Edition, kernel 2.6.27-7-generic
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.27-7-generic root=/dev/sda6 ro quiet splash locale=uk_UA
initrd      /boot/initrd.img-2.6.27-7-generic
quiet

title      ?????????????? TinyCoreLinux 1.2, kernel 2.6.26
root      (hd0,5)
kernel       /boot/bzImage quiet
initrd       /boot/tinycore.gz

(i use mint, it's  much easy for newbei, like me ;-), i  don't use ubuntu about 2 years - ubuntu don't work on my note Acer Aspire...  i use ukrainian locale. mint and tcl boots from sda6. i have 8 partions - ntfs, hfs+, ext2, ext3, reiserfs... )

Good luck, hackers! ;-)
« Last Edit: April 09, 2009, 01:49:01 PM by nickispeaki »

Offline dr_willis

  • Newbie
  • *
  • Posts: 1
Re: dual boot ubuntu and tcl
« Reply #9 on: April 12, 2009, 06:06:22 AM »
Toying with TCL and dual booting  with Ubuntu and TCl.  I am installing TCl in the 'tiny' sub directory on the root of my ubuntu install.   The docs are a little 'less then clear' on some of the boot options i may want to be using. I basicially want 'everything' that tiny uses to be in the 'tiny' directory. for easy moveing

Example menu.lst entry for a USB drive (root install, NOT in a sub dir)

title TinyCore on usb (sda1)
kernel /boot/bzImage  tce=sda1 waitusb=5 home=sda1 opt=sda1
initrd /boot/tinycore.gz



This puts all the 'tce' support type directories on the root of the drive. I want them in the 'tiny' sub directory for my Ubuntu installed hard drive. To keep things neat So i use the following.

title TinyCoreLinux From Hard Drive
root (hd0,2)
kernel /tiny/boot/bzimage tce=sda1/tiny/tce home=sda1/tiny opt=sda1/tiny
initrd /tiny/boot/tinycore.gz




***HOWEVER*** im not clear (and am testing now with lots of reboots)   is the following.

for home and opt options.  Should i be using the options like

opt=sda1/tiny    

or should i be using

opt=sda1/tiny/opt

Trying to track down a nice clear list of all the directory options.  I may be overlooking some.

It would be nice if there was a    everything=sda1/tiny    option.   8)


Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: dual boot ubuntu and tcl
« Reply #10 on: April 12, 2009, 07:36:04 AM »
If your directory is located at the top level of a partition, and it uses a default name (tce, tclocal), you need only specify the partition.
If it is a subdirectory, as yours appears to be, you would include the directory  (even if it uses the default name, I think):  opt=sda1/tiny/opt
Then again, I wasn't aware that tc could mount a home or opt subdirectory.  If so, that's pretty cool.

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: dual boot ubuntu and tcl
« Reply #11 on: April 15, 2009, 02:59:56 PM »
If it is a subdirectory, as yours appears to be, you would include the directory  (even if it uses the default name, I think):  opt=sda1/tiny/opt
what goal of opt directory?

Offline maddoguk

  • Newbie
  • *
  • Posts: 2
Re: dual boot ubuntu and tcl
« Reply #12 on: February 25, 2010, 03:46:26 PM »
i have ubuntu 9.10 and I am trying to make it dual boot to TCL. I put the two files:

initrd.img-tinycore
vmlinuz-tinycore

I put these in /boot

I am running grub 2 but the uuid is the same as the ubuntu uuid i guess because its the same boot folder. What am I doing wrong? How do I force a new UUID. Do i need to create a parition and somehow force it. I am linux newbie.

any help really appreciated.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: dual boot ubuntu and tcl
« Reply #13 on: February 25, 2010, 04:02:59 PM »
Why do you need a new UUID?
Just add the TC stanza to /boot/grub/menu.lst
Change hda5 to whatever your root partition is.

title Tiny Core Linux
  kernel /vmlinuz-tinycore tce=hda5/tce max_loop=256
  initrd /initrd.img-tinycore




Offline beroje

  • Full Member
  • ***
  • Posts: 130
Re: dual boot ubuntu and tcl
« Reply #14 on: February 25, 2010, 04:07:56 PM »

40_custom
_____________________________________

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Tinycore" {
set root=(hd0,6)
linux (hd0,6)/bzImage quiet max_loop=255 waitusb=7 tce=sda6/tce laptop
initrd (hd0,6)/tinycore.gz
}