(SOLVED)I want to install Squeeze on my triple-boot system

Help with issues regarding installation of Debian

(SOLVED)I want to install Squeeze on my triple-boot system

Postby DougieFresh » 2010-10-28 04:54

First I want to say hello to all the forum members as I am new to this forum. Been using Ubuntu for about 5 years now. I like the idea of a 'rolling' release as redoing install /upgrade every 6 months is getting 'old'
My machine is triple boot
Hard drive is 320 GB
Windows 7 - 167 GB
Ubuntu - Maverick - 73 GB
Ubuntu - Natty - testing version - 65 GB

I do not want to screw up my 'grub' as it's been trashed a couple of times recently and had to re-install everything, which went great with install setting up partitions.
I am not sure where 'grub' is installed to. I did install Windows 7 first then let installer split hard drive in half to put Ubuntu on then while installing my second Ubuntu, I let installer split the Ubuntu partition in half, hence the 167 GB Windows and the 2 smaller partitions for Ubuntu.
I was thinking to maybe let Debian install over my Maverick install. Would that work and not mess up my Grub and cause me to not be able to boot and have to fix the drama?
I any more info is needed, I am in my Ubuntu install, please give me commands and I shall post any output requested.
Thanks
Last edited by DougieFresh on 2011-06-24 02:05, edited 1 time in total.
User avatar
DougieFresh
 
Posts: 16
Joined: 2010-10-25 18:42

Re: I want to install Squeeze on my triple-boot system with help

Postby grumpy.biatch » 2010-10-28 05:42

You can install debian GrUB to its root during the install. When done boot your buntu and do 'sudo update-grub', it will pick up debain and show it in grub menu during your next boot.

Reinstalling GrUB 2(it is butt ugly) isnt a big deal and I guess that is the best way.
grumpy.biatch
 
Posts: 8
Joined: 2010-10-27 05:33

Re: I want to install Squeeze on my triple-boot system with help

Postby nadir » 2010-10-28 07:01

Mhh...mhh...mhh.
First of all: re-installing grub is not a big thing.
In case you borked it: a)boot a live-CD, b) go to here:
viewtopic.php?f=8&t=54590
either run the comands manually or use the short piece of code, once in a chroot do: grub-install /dev/sda (for example sda ! );
exit chroot, reboot and run update-grub.

Second: you will have to choose manual partitioning and point the installer to the partition you wan to replace. No biggie, but be prepared to not be too tired or short on time.
More or less i am sure that you can omit the installation of grub altogether. The installer will complain, you reboot into Ubuntu and run "update-grub" and with a bit of luck it will add Debian to its grub.cfg.

Third: I found a one line-command which spits out some info about grub, but it is not what i was looking for.
If it was me i would boot into Maverick, change any title in /boot/grub/grub.cfg (say add an: Ubuntu-TEST so you can easily see it )and force it to accept the change (in vim : x! )and reboot. If the title has changed that is the grub you got installed. If you replace Maverick you will have to boot into Natty and install grub from there (grub-install /dev/sda, sda is for example).
Else boot into Natty, replace any title in /boot/grub/grub.cfg, force it to accept the changes and reboot...
As you seem to have installed Natty as the last OS that is probably where your grub is installed from.
That method is a dirty workaround, but at least you could be sure.

Anyway, here is the -useless- oneliner:
Code: Select all
sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n  2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case  \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 oder höher ;; *) echo X: Kein GRUB Y ;; esac\""


Imho Debian is not that different from Ubuntu, only better, so you got time:
Consider if doing a dual-boot installation in VirtualBox for training purposes might be a choice.
Install Ubuntu, install Debian via manual partitioning, re-install grub a few times there, just for fun (or: training). Do the whole thing again and you are ready to go for hard-disk.

Good luck, take care, perhaps wait a bit for other/better advice.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5964
Joined: 2009-10-05 22:06
Location: away

Re: I want to install Squeeze on my triple-boot system with help

Postby DougieFresh » 2010-10-28 15:34

Thanks for the replies. Nothing was said about my Win7 install.
So I gather that Debian doesn't play nice with dual/triple/multi boot systems if it's the last to be installed and I am most guaranteed a borked system :shock:
I just don't want to have to re-install Win7. I am gonna get Debian installed one way or another as I would like to have an install where I don't have to redo every 6 months more or less
User avatar
DougieFresh
 
Posts: 16
Joined: 2010-10-25 18:42

Re: I want to install Squeeze on my triple-boot system with help

Postby bmc5311 » 2010-10-28 16:07

DougieFresh wrote:Thanks for the replies. Nothing was said about my Win7 install.
So I gather that Debian doesn't play nice with dual/triple/multi boot systems if it's the last to be installed and I am most guaranteed a borked system :shock:
I just don't want to have to re-install Win7. I am gonna get Debian installed one way or another as I would like to have an install where I don't have to redo every 6 months more or less


debian is fine with a multi-boot system. win7 may have problems if you have more then 4 partitions.
macbook air /stable amd64/openbox

http://www.debianuserforums.org/ - By the community. For the community.
User avatar
bmc5311
 
Posts: 539
Joined: 2008-11-16 15:21
Location: lost in the vast machine

Re: I want to install Squeeze on my triple-boot system with help

Postby MeanDean » 2010-10-28 16:28

install debian
allow it to install grub
it will detect your other operating systems and add them to the grub boot loader
done
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: I want to install Squeeze on my triple-boot system with help

Postby dotlj » 2010-10-28 16:46

I agree with MeanDean. This is the simplest and best way to go. You did not mention which version of Debian - stable, testing or unstable? The current stable, Lenny is about to be replaced by testing - Squeeze (which is very stable), so install Squeeze and avoid a big upgrade soon. If you choose Lenny, then you will have a big upgrade and also get grub legacy instead of grub2. IMO Grub2 is much better. Also, choose ext4 fs, as it has many advantages over ext3. I've installed multi boot many times with Squeeze and each time has been flawless with correct detection of other OS.
P.S. Also use manual partition and expert mode for install, that gives you the maximum control. Make sure you know which partitions you will use for what, before you begin.
User avatar
dotlj
 
Posts: 646
Joined: 2009-12-25 17:21

Re: I want to install Squeeze on my triple-boot system with help

Postby nadir » 2010-10-28 17:06

Nothing was said about my Win7 install.
So I gather that Debian doesn't play nice with dual/triple/multi boot systems if it's the last to be installed and I am most guaranteed a borked system

In your first post you said:
I was thinking to maybe let Debian install over my Maverick install. Would that work and not mess up my Grub

So i have thought you would prefer keeping the installed grub and add Debian to that one (for what reason i didn't think about). Probably a misunderstanding.
The other way, let Debian install grub, should work fine. But i can only speak about dual-boot, not triple, when it comes to Windows (XP or 7). I also use one hard-disk, not several ones (with several hard-disks and grub2 i got problems... my fault and not much interest to solve it). Perhaps there are other differences too.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5964
Joined: 2009-10-05 22:06
Location: away

Re: I want to install Squeeze on my triple-boot system with help

Postby DougieFresh » 2010-10-28 18:25

I would like to keep my machine (one hard drive) a multi boot. Keep Win7 and my Natty, replace Maverick with Debian and hopefully all 3 can get along in 'grub' and boot the way they should :D
User avatar
DougieFresh
 
Posts: 16
Joined: 2010-10-25 18:42

Re: I want to install Squeeze on my triple-boot system with help

Postby MeanDean » 2010-10-28 18:49

install debian to the partition that maverick is currently on
allow it to install grub
it will detect your other operating systems and add them to the grub boot loader
done
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: I want to install Squeeze on my triple-boot system with help

Postby MeanDean » 2010-10-28 22:15

or if natty (wtf is natty???) is in charge of grub right now...

install debian to the maverick partition
do not install grub at all
boot into natty and run update-grub, it should add debian to the choices at boot time
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: I want to install Squeeze on my triple-boot system with help

Postby edbarx » 2010-10-28 22:32

If you let Debian use the MBR for its primary bootloader, the other operating systems should be forced to use their partitions for their primary boot loader. So, the grub menu that appears first should not be allowed lo directly load the kernels and initrd.img of the other operating systems. Instead, I suggest you to force the first bootloader that is called to chainload the other bootloaders from their respective partitions.

Note: I remember when I had to manually edit grub's configuration files to allow the other operating systems to boot after an update of one of the kernels. However, this may have been rectified now.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.
User avatar
edbarx
 
Posts: 5399
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Re: I want to install Squeeze on my triple-boot system with help

Postby MeanDean » 2010-10-28 22:49

edbarx wrote: So, the grub menu that appears first should not be allowed lo directly load the kernels and initrd.img of the other operating systems. Instead, I suggest you to force the first bootloader that is called to chainload the other bootloaders from their respective partitions.

why?
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: I want to install Squeeze on my triple-boot system with help

Postby milomak » 2010-10-28 23:59

reboot your system. let grub run the defaukt option. there is more than a 90% chance that that is where the MBR grub is installed. Make a note of which Ubuntu it is is.

My guess is that whichever was the last Ubuntu you installed is where it is at (again there is a chance this is wrong)

Assuming indeed Natty is where Grub is; I would install debian on the partition with maverick. when it asks about grub; i would tell it to install the partion (NOT TO THE MBR)

On reboot, boot into Natty. Then run grub-update. If os-prober is installed (which I would asume on Natty it is); it should pick up your debian install.

reboot and you should have debian available in grub now. it should chainload into your debian grub.
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Sid (External SSD)
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2039
Joined: 2009-06-09 22:20

Re: I want to install Squeeze on my triple-boot system with help

Postby milomak » 2010-10-29 00:07

if you are going to run multiple distros, it helps to learn what can be shared amongst distros and what can't be. i typically run at least 3 different fistros at a time:

for each distro, the root partition (/) is standalone. I have plenty space available so set these at 15GB
I have a shared /home directory of 10GB. within /home, each distro has its own user directory - eg /home/arch; /home/debian; /home/gentoo
then i have allocated a general linux storage space. mine is formatted as an ext4 partition. so it will likely be a partition /dev/sdyx. so in each distro you mount it to the same mount point and you are away.
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Sid (External SSD)
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2039
Joined: 2009-06-09 22:20

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable