Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Install Ubuntu 14.04 alongside Debian Wheezy

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
vvanherk
Posts: 2
Joined: 2015-04-23 16:43

Install Ubuntu 14.04 alongside Debian Wheezy

#1 Post by vvanherk »

Hello.

First off, I'm a bit of a Linux novice, thus the question.

I have a laptop primarily used for a client work. It is running Debian Wheezy, and wish to keep it intact in case I need to do more work for client.

I would like to install Ubuntu 14.04 alongside Debian, and use Ubuntu as a bit of a play/experiment area, etc. HD has lots of space (600GB free), and as far as I can tell Grub is installed in MBR.

I did some searches, and from what I can tell, it sounds like I can just install Ubuntu from ISO file, specify how much space to use (say 400GB), and that's it. This sounds almost too easy. Once I install and restart machine, will there be selection for what Distro to boot.

Any input and advice appreciated.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Install Ubuntu 14.04 alongside Debian Wheezy

#2 Post by dasein »

Speaking as a former power-distro-hopper, I can tell you that if all you want to do is experiment/play around, there's nothing quite like using virtualization tool (e.g., VirtualBox). There's a couple of very strong reasons to prefer a "virtual" solution:

1) Making a quick snapshot of the virtual machine (VM) is easy-peasy, so if you mess something up, rolling back to a previous version is literally a matter of a single click. (Compare to making a full system backup, restoring via rescue disk if something goes wrong, etc.)

2) The VM acts like a kind of "sandbox," protecting your Debian install from inadvertent/collateral damage.

User avatar
acewiza
Posts: 357
Joined: 2013-05-28 12:38
Location: Out West

Re: Install Ubuntu 14.04 alongside Debian Wheezy

#3 Post by acewiza »

Why not 15.04? :wink:
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.

vvanherk
Posts: 2
Joined: 2015-04-23 16:43

Re: Install Ubuntu 14.04 alongside Debian Wheezy

#4 Post by vvanherk »

I have Ubuntu 14.04 on a VM on my Macbook.

I want to have dual boot on this other laptop of Debian and Ubuntu.

Any advice or verification of process still appreciated.

fsmithred
Posts: 1873
Joined: 2008-01-02 14:52

Re: Install Ubuntu 14.04 alongside Debian Wheezy

#5 Post by fsmithred »

In this context, free space means unpartitioned space. If you used the entire hard disk for debian, you'll need to resize (shrink) a partition to make space for the ubuntu installer to create a new partition. I think you need to do this first, but I suppose it's possible that the ubuntu installer will let you resize an existing partition.

If you let ubuntu put grub in the mbr, it should see the debian partition and create a boot entry for it. If not, running update-grub from within ubuntu should do it. Then if you decide to remove ubuntu, you should run grub-install from debian first. (i.e. let debian take over booting before removing ubuntu.)

aplistir
Posts: 141
Joined: 2014-03-26 22:11

Re: Install Ubuntu 14.04 alongside Debian Wheezy

#6 Post by aplistir »

Yep. Should be easy,

Just wanted to add one thing. Installing Ubuntu WILL reformat your swap-partition, which is not a big problem, but you should be aware of it.

Formatting swap will change its UUID and then debian wont find swap anymore.. unless you change the new UUID to /etc/fstab in debian ..

v&n
Posts: 624
Joined: 2015-02-04 02:57

Re: Install Ubuntu 14.04 alongside Debian Wheezy

#7 Post by v&n »

fsmithred wrote:I suppose it's possible that the ubuntu installer will let you resize an existing partition.
Having witnessed frequent "Partitions messed up" threads at ubuntu forums, I would never trust the installer's default partition manager.

Easier (due to more intuitiveness), and safest option would be to boot into a live session ("Test without installation" option of the live disc) > use GParted (available on Ubuntu live disc) to do all the partition manipulation beforehand. That is, Resize to shrink existing partition(s) > create a new ext4 partition > lable it for easy recognition.

Once the target partition is ready, start the installer > choose "Something else" option at the partitioning stage > choose your newly created target partition > set it as the mount point for '/' > proceed with installation. You can safely ignore the warning about "formatting the root partition" if you didn't mark it for formatting (was just formatted by gparted, no point in doing that again although you may if you wish).
aplistir wrote:Just wanted to add one thing. Installing Ubuntu WILL reformat your swap-partition, which is not a big problem, but you should be aware of it.
I don't think that will happen.

I haven't experimented myself but I do know that the Live disc starts using the available swap partition from the beginning, and keeps using it throughout the installation (to take advantage of the swap and offer better live session performance). Besides, many folks at ubuntuforums have a tendency to keep installing multiple *buntus or other Linux distros on different partitions as dual/triple even quadruple boots. None of them (including newbies) ever reported problem with swap (or at least I never saw one, and I was there for quite some time).

But this point does raise a question about encrypted swap. If the OP uses one, they will have to create a new one for the new OS. The existing swap partition is encrypted automatically if you chose to encrypt your home during previous OS installation. So that is a good point to keep in mind.

Another point to remember is - if you are not using GPT, but the old MBR partitioning scheme, you can have a maximum of 4 Primary partitions on the hard disk, Extended one counting as One Primary partition. Linux has no problems in booting from Logical partitions, so it would be a good idea to create an Extended partition to be able to create any number of (logical) partitions in it as/if/when required.

fsmithred's advice about "grub-install" is a really good one, and should be kept in mind as well.

If you need step-by-step instructions, good people at ubuntuforums.org would gladly offer that, some even with screenshots. :)

@ vvanherk,
Needless to say, you should backup all your data before proceeding with installation if it is a production system (which you said it is) not a testing one. You might even wish to create a system backup using disk imaging tools like clonezilla, just in case... :wink:

Post Reply