LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-14-2007, 01:36 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
want to Multiboot Windows, Slackware,Debian


I have read some articles about dual booting, but still am left with questions about how to approach this.
I want to install Debian, Slackware, and Windows on one hard drive;
I have 160GB, so was thinking of 20GB for each and putting my personal files on the rest.

Do I have to install Windows on the 1st partition?

I'm not sure about the MBR: Is this the first sector of the hard drive or on each partition? Do I need to install an operating system there?

Which boot file do I edit to load the operating systems?

I would appreciate help with this; I'm not familiar with booting. When I installed 2 Linux Distros I just installed the boot loader in the MBR when installing the last distro, but am not sure how to do this with adding Windows.
 
Old 10-14-2007, 03:06 PM   #2
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Rep: Reputation: 30
Install Windows first, I'd give it just one partition, and leave 140GB 'free'. Then simply install Debian, Slackware in whatever order, the installers will probably take care of configuring the boot loader so that it boots the other operating systems, but when you'll want to configure boot options (if this will ever happen); you'll have to use the last installed operating system. Simply always chose to install the boot loader to the MBR.
 
Old 10-14-2007, 03:24 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The /usr/ directory can become very large over time because that is where most of the files for the packages you install go. If one of the linux distros will be the main distro, you might want to increase the root partiton for that distro to 30GB. It depends on how much you will use it and if you tend to install thousands of programs. You will also need a swap partition. 1 GB is usually enough but for suspend/resume, you may need it to be a little more than the memory you have on your system. The rest of the drive could be used for a common /home partition, but using separate home directories in the /home partition would be a good idea to avoid conflicts in the hidden config files in ~/.kde/ ~/.gnome2/ and others. (note: If you edit /etc/passwd, you can change the home directories to use different name and still have the same username. For example user jdoe could have a home partition /home/jdoe-debian and /home/jdoe-slack. You could also do this from the start when adding the user.)

There is one potential gotcha you need to keep in mind. It is the UID that determines access. Some distros use different ranges of UIDs for regular users and groups. The first user added in Fedora or Mandriva would have the UID of 500. In SuSE the first user would have a UID of 1000. I don't know about Debian & Slackware. If you expect to access the respective home directories, make sure they use the same UID.

It may work out better if you only update grub when using one of the linux distro's. Otherwise you could end up in a dueling grub install situation. On the second Linux distro, write the mbr to the root partition (for that distro) instead. Then when using the first Linux distro, mount the second disto's root partition, and open the /boot/grub/menu.lst file for the second distro. Cut and paste the grub stanza that boots the 2nd Linux distro and insert it into the the menu.lst file of the first linux distro and then run the "grub-install" program.

Last edited by jschiwal; 10-14-2007 at 03:31 PM.
 
Old 10-15-2007, 08:40 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
I installed a 64Studio (Debian Etch derivative) partition on my system today that was already multi booting WindowsXP, Slackware 12.0 and the Dell Utility partitions.
Slackware uses LILO as the default boot manager, and I wanted to maintain this.
64Studio uses GRUB as the default boot manager.

What I ended up doing was allowing the 64Studio installer to run, but when the question came up to install the GRUB boot loader to the MBR, I changed it to install to the root partition of the 64Studio partition.

Once the 64Studio install had completed, I rebooted into Slackware, mounted the new 64Studio partition and copied the vmlinuz and initrd files from the /boot directory to a /boot/64Studio directory on the Slackware partition.

I then edited my Slackware /etc/lilo.conf and added these lines.
Code:
# Linux bootable partition config begins
image = /boot/64Studio/vmlinuz-2.6.21-1-multimedia-amd64
initrd = /boot/64Studio/initrd.img-2.6.21-1-multimedia-amd64
root = /dev/sda7
label = 64Studio
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
I then ran /sbin/lilo.

I am now able to boot into 64Studio ( after a small hiccup caused by needing to install the proprietary nVidia driver to satisfy my nVidia GeForce 7300 video card).

To summarise,
Definitely install Windows to the first partition, nothing else.
Then I suggest install Slackware,
followed by installing Debian with alterations along the lines above.

Last edited by allend; 10-15-2007 at 08:43 AM.
 
Old 10-19-2007, 07:32 PM   #5
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
Thanks for the help.
I have a question about boot loaders

Quote:
Install Windows first, I'd give it just one partition, and leave 140GB 'free'. Then simply install Debian, Slackware in whatever order, the installers will probably take care of configuring the boot loader so that it boots the other operating systems, but when you'll want to configure boot options (if this will ever happen); you'll have to use the last installed operating system. Simply always chose to install the boot loader to the MBR.
If I install the boot loaders to the MBR won't the previous boot loaders be overwritten; how will I boot those operating systems?
Is the boot loader installed in the root partition as well as the MBR?

Quote:
Once the 64Studio install had completed, I rebooted into Slackware, mounted the new 64Studio partition and copied the vmlinuz and initrd files from the /boot directory to a /boot/64Studio directory on the Slackware partition.
Why would I need to copy these files; couldn't I point to them?
Sorry, I'm not familiar with boot loaders

Thanks for help.
 
Old 10-20-2007, 11:04 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
I have found this to be useful reference for understanding multibooting.
http://www.goodells.net/multiboot/

Quote:
If I install the boot loaders to the MBR won't the previous boot loaders be overwritten; how will I boot those operating systems?
The MBR is overwritten, but the point is that the MBR only contains sufficient code to cause a jump to the the major portion of the boot code.
When you install a new boot loader, you need to ensure that your previously installed partitions are made known to it.
In my case, using LILO, I need to maintain my Slackware /etc/lilo.conf file. The relevant entries I have under the global section of lilo.conf are shown below.
Code:
# End LILO global section
#
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd = /boot/initrd.gz
root = /dev/sda8
label = Linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows XP bootable partition config begins
other = /dev/sda2
label = WindowsXP
table = /dev/sda
# Windows XP bootable partition config ends
# Linux bootable partition config begins
image = /boot/64Studio/vmlinuz-2.6.21-1-multimedia-amd64
initrd = /boot/64Studio/initrd.img-2.6.21-1-multimedia-amd64
root = /dev/sda7
label = 64Studio
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# DellUtility bootable partition config begins
other = /dev/sda1
label = DellUtility
table = /dev/sda
# DellUtility bootable partition config ends
Quote:
Why would I need to copy these files; couldn't I point to them?
I found that I needed to copy these files so that /sbin/lilo would run. The actual files used are those from the 64Studio partition, not those in the Slackware partition.
 
Old 01-22-2013, 10:50 AM   #7
Cyanobacteriophage
LQ Newbie
 
Registered: Dec 2012
Posts: 9

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by allend View Post
i installed a 64studio (debian etch derivative) partition on my system today that was already multi booting windowsxp, slackware 12.0 and the dell utility partitions.
Slackware uses lilo as the default boot manager, and i wanted to maintain this.
64studio uses grub as the default boot manager.

What i ended up doing was allowing the 64studio installer to run, but when the question came up to install the grub boot loader to the mbr, i changed it to install to the root partition of the 64studio partition.

Once the 64studio install had completed, i rebooted into slackware, mounted the new 64studio partition and copied the vmlinuz and initrd files from the /boot directory to a /boot/64studio directory on the slackware partition.

I then edited my slackware /etc/lilo.conf and added these lines.
Code:
# linux bootable partition config begins
image = /boot/64studio/vmlinuz-2.6.21-1-multimedia-amd64
initrd = /boot/64studio/initrd.img-2.6.21-1-multimedia-amd64
root = /dev/sda7
label = 64studio
read-only # non-umsdos filesystems should be mounted read-only for checking
# linux bootable partition config ends
i then ran /sbin/lilo.

I am now able to boot into 64studio ( after a small hiccup caused by needing to install the proprietary nvidia driver to satisfy my nvidia geforce 7300 video card).

To summarise,
definitely install windows to the first partition, nothing else.
Then i suggest install slackware,
followed by installing debian with alterations along the lines above.

that's it!!!!!!!!! :d
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiboot Debian Testing and Windows XP on 2 Drives whitster LinuxAnswers Discussion 0 02-21-2007 01:24 PM
Debian Testing + XP Multiboot 2 HD's whitster Debian 1 02-08-2007 03:19 PM
Multiboot with Debian, Windows XP, and FreeDOS RodWC Linux - General 1 10-31-2005 09:35 AM
How many of your Multiboot with Windows? lava Linux - General 46 08-19-2003 05:52 PM
Does anyone know how to multiboot Windows and redhat 7.1 steinberg Linux - Software 1 11-09-2001 03:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration