Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: david_ozura on March 27, 2009, 11: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
-
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.
-
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?
-
Yes, they're in the iso - you can access them like this:
$ 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
-
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.,
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
-
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
-
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.
-
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.
-
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! ;-)
-
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)
-
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.
-
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?
-
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.
-
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
-
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
}
-
I take it this means I create a parition, put those files in it and then reference those in the the hd setting, ie its disk 2 parition 3 so thats (hd1,3) is that correct?
-
GRUB2 is different than GRUB Legacy.
There is a my post in Ubuntu forums about adding an entry to GRUB2 (grub-pc in Debian) - http://ubuntuforums.org/showthread.php?t=1198433.