Tiny Core Linux
General TC => General TC Talk => Topic started by: Guy on April 10, 2011, 09:05:15 AM
-
Can extlinux be set up to boot multiple operating systems, or is it necessary to install Grub for that?
If so how?
-
All of the syslinux family have the same abilities, including menus. :)
See the syslinux documentation.
-
http://wiki.tinycorelinux.net/wiki:extlinux
-
My question is to those who do use Windows, as I do not, is it typically that Windows is installed in the first partition?
I ask as I am contemplating further automating of the GUI Installer to support Tiny Core & Windows dual boot via Guy's wiki writeup.
-
This machine has Windows XP Professional.
I shrank sda1 and installed Centos.
[root@sharp ~]# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 5100 40965718+ 7 HPFS/NTFS
/dev/sda2 * 5101 5113 104422+ 83 Linux
/dev/sda3 5114 5244 1052257+ 82 Linux swap / Solaris
/dev/sda4 5245 9729 36025762+ 5 Extended
/dev/sda5 5245 9729 36025731 83 Linux
[root@sharp ~]#
-
is it typically that Windows is installed in the first partition?
I think you need to allow for the possibility of windows being in any primary partition.
Some people may even install two different versions of windows.
You may even allow for chainloading into other linux distros.
When installing windows and linux, the easiest way has been to install windows first. If you install most linux distros after windows they automatically include windows in the bootloader. Because it is installed first, people may be more likely to put it in the first partition, but it can be in any primary partition.
-
My thoughts on this, is that, those that would need a GUI installer, would not even consider installing Windows, therefore the Windows partition would be "factory" installed. Being factory installed would most likely mean that the whole disk has been used. So the Windows user would be faced with shrinking their Windows partition.
On other Linux distributions, typically they are turnkey, therefore would already have a boot loader, and likely more robust, e.g., grub. I wouldn't want to be the tail trying to wag the dog.
Perhaps I was being too Pollyana with the effort not worth the result, At least in the initial version of the GUI installer. Afterall the extlinux boot loader only applies to primary partitions.
-
Some more thoughts.
A simple way to do it may be to ask
Do you have other operating system(s) on other partition(s)?
If they answer yes
have a window where they can enter the name of the operating system and the partition.
Repeat this until they say no.
Another option would be to scan the drive for partitions.
For every ntfs partition, call it windows and chainload
For every linux partition, call it linux and chainload
There may be some partitions without operating systems, which will result in false entries, but the user can delete them.
If using this method, some people will complain it put entries in partitions without operating systems.
-
For those who just shrink the existing Windows partition, it would almost always be the first partition.
-
Afterall the extlinux boot loader only applies to primary partitions.
Can't it start operating systems on other partitions?
-
My question is to those who do use Windows, as I do not, is it typically that Windows is installed in the first partition?
I have a Dell laptop.
The first partition is 50Mb containing diagnostic software on FAT16 with the diag flag set.
The second partition is Windows XP on NTFS with the boot flag set and occupied the rest of the drive
before I shrunk it.
Hope that helps.
-
Ah, perhaps then if current active partition is of type (id) 7 on the target drive, then offer to setup extlinux menu to dual boot Windows and Linux via a check box in the GUI.
What about Windows 7? it is type 7? Is it capable of chain loading?
What about WinME, or Win9x ??
What types (ids) should be supported?
-
Hi roberts
I just booted my Win98 machine with a TC CD and fdisk reports id as c and system as Win95 FAT32
-
A lot of recent computers have windows on the first partition, then have a second partition (both ntfs) which may be used for reinstalling windows.
-
Another option is to include # in front of some lines which users can delete, like this
# UI vesamenu.c32
# MENU TITLE Tiny Core Bootloader
# PROMT 0
# TIMEOUT 50
# MENU MASTER PASSWD MasterPassword
LABEL tinycore
# MENU PASSWD TinyCorePassword
KERNEL /boot/bzImage
APPEND initrd=/boot/tinycore.gz quiet waitusb=5:UUID="long-number" tce=UUID="long-number"
# LABEL windows
# MENU PASSWD WindowsPassword
# KERNEL chain.c32
# APPEND hd0 1
At the minimum, have the passwd lines with a # in front.
-
I have it working on Windows XP
-
As I do not want to keep delaying the release of 3.6, I am going to delay any further mods to tc-install until 3.7.
-
You may even allow for chainloading into other linux distros.
Just noting that often there's nothing to chainload for distros, since the usual case is grub/lilo in the mbr.
-
I am going to delay any further mods to tc-install until 3.7.
Good idea, as you can set it up to chainload to Windows in 3.7rc1, and ask people to test it with different versions of Windows.
If it is discovered that something needs to be done differently for certain versions of Windows, that can be modified in later rcs.
-
Just noting that often there's nothing to chainload for distros, since the usual case is grub/lilo in the mbr.
I have started another topic http://forum.tinycorelinux.net/index.php?topic=9473.0
-
As I do not want to keep delaying the release of 3.6, I am going to delay any further mods to tc-install until 3.7.
I have a simple basic Windows and Tiny Core auto detected menu setup when mark active partition is selected from the GUI. Look for it when 3.7rc1 is posted.
-
Perhaps a major change in plans for the installer. Developing...