LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2007, 03:28 PM   #1
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
Dual booting with more than one linux distro


Hey Guys,

Quick question: My laptop has buggy ACPI and so thermal management, but I have been told that Ubuntu feisty has necessary kernel patches in it's beta release to sort this out. I currently run Mandriva. My question is, if I wipe my current windows partition and install Ubuntu on it, is it possible to use my existing Home partition for both Mandriva AND Ubuntu?? A quick yes or no is appreciated, cos Ubuntu is downloading now!!!
 
Old 03-31-2007, 05:55 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yes.

The long version:

Yes, but. The 2 distros, assuming they are relatively close in release cycles, will probably have the same packages and nearly the same package versions. However, the customizations (what lives in your home directory) will probably be different. So, you will probably not run into 'real' problems, but some of the looks of your distros may be different. So, you'll probably be fine, just be ready for some oddities.

Cool
 
Old 03-31-2007, 06:01 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
There is an alternative solution (that I use myself) if you want to pare down the number of partitions without running into conflicts: leave a relatively small /home under / for all your distros and create one big partition that all your distros can share. Make your /homes large enough to hold what you need most urgently but small enough to make them unattrative as a permanent place for your personal stuff.

Last edited by jay73; 03-31-2007 at 06:03 PM.
 
Old 03-31-2007, 07:08 PM   #4
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Original Poster
Rep: Reputation: 30
I like the sound of that Jay73. That makes the most sense I think. Cheers
 
Old 04-01-2007, 05:43 PM   #5
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
Share the /boot directory of the default distro. Copy all of the kernels (and initrds) into their own distro directories--ie /boot/slack, /boot/ubunto, /boot/Mandiva. Use grub as loader. Edit "menu.lst" appropriately; grub will parse directories if the path is given to the kernels and initrds. When the pivot_root thing goes on the kernel will read the specific "map" files from /boot in it's native "/" along with the init-scripts. If you want to go really crazy, do custom installations to make things identical and share much much more.

Easy way is to make an empty folder in each of the /home directories for all of your: sources, personal files, music, pictures, whatever else. Mount them at boot-up using fstab. Then, the only things that the individual /home directories have is the d*mned "." files. Remember to redo all of the settings for your Office, downloading software and other stuff to point to these mounted directories. You can set up one partition, mount it in fstab then: use the mount --bind option to remount the directories (also usable in fstab.)

Since Linux 2.4.0 it is possible to remount part of the file hierarchy
somewhere else. The call is
mount --bind olddir newdir
After this call the same contents is accessible in two places. One can
also remount a single file (on a single file).

This call attaches only (part of) a single filesystem, not possible
submounts. The entire file hierarchy including submounts is attached a
second place using
mount --rbind olddir newdir

Note that the filesystem mount options will remain the same as those on
the original mount point, and cannot be changed by passing the -o
option along with --bind/--rbind.

Since Linux 2.5.1 it is possible to atomically move a mounted tree to
another place. The call is
mount --move olddir newdir

I've only used the --bind command. I really don't know about the others--I've been afraid to try them as I don't have time to thrash a system anymore. I would say that the -rbind means "recursive bind" so it is probably safe--although I remember making directories and using them with an original mount --bind command in /etc/fstab. It's been a while.
 
Old 04-01-2007, 05:52 PM   #6
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
Come to think of it, I probably used the mount --rbind. But, to be honest, the music is on it's own 160GB drive now (will need a bigger one soon), and the package sources are in their own partition, the rest is in "Stuff"; another partition. I don't really ever throw things away. Random play on the Music drive, would probably take two years to play all of the music.
 
Old 04-01-2007, 06:31 PM   #7
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
One more thing: As long as you keep README files in all of your /mnt directories; what's this desire to "pare down the number of partitions" thing? Yeah, you can only have 4 primary partitions, but you can have many more logical partitions, and can boot any one of them as long as you set up a 60MB or so /boot partition as one of the primary ones.
1)Windows
2)/boot
3)Swap
4)extended--either linux or "W95 Ext'd (LBA)"
5-19 to be windows-safe. You are talking about a windows safe drive with 24 drive letters available less: cdrom devices, virtual cdrom devices, usb devices and other stuff (A & B are reserved for floppy AFAIK.)

With the nifty kernel-space ext2 filesystem driver for NT/2000/XP one can use the ext2 filesystem natively in Windows. (but one has to be more careful with the partition layouts to keep things windows-safe,and still must have to have a Windows-native partition for booting windows.)

NT extensions will enable double-letter drives as well, but I don't remember how to do it.

Partitions are your friends, they don't waste space--It's just that you have to have an ACCURATE permanent physical file somewhere with the layout if so you can recover everything from a serious "mis-hap".

Sorry for the multiple posts, I couldn't find any kind of edit button. It is probably somewhere obvious.
 
Old 04-01-2007, 07:21 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
The edit button is right under your posts; but you need to be logged in to get at it (otherwise anyone could do the editing for you...).
 
Old 04-01-2007, 07:28 PM   #9
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Why have Mandriva and Ubuntu? Pick the one you are more comfortable with, and go for something more indepth for the other one, so you learn Linux more, but can fall back on the OS you are used to in doubt. Unless you are just interested in everday computing...which would make me ask: Why are you using Linux?
 
Old 04-01-2007, 07:37 PM   #10
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Why not? Urpmi and aptitude are radically different package managers, I think it's worthwhile playing with both for a while before deciding which you like most. As for going "in depth", I've never really understood that one. If you want different, get Solaris or BSD instead of moving from one Linux distro to a different one. Just my opinion.
 
Old 04-02-2007, 03:23 AM   #11
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Original Poster
Rep: Reputation: 30
Quote:
Why have Mandriva and Ubuntu?
Well I intend not to have both in the future!! Mandriva is up and running pretty well, but doesn't have the necessary kernel patches to deal with the thermal issues on my notebook. Yes I could patch the kernel, but why bother when Ubuntu Feisty has the necessary patches installed.
I'm dual booting at the moment because I'm not familiar with Ubuntu, and in my experience it's best to keep a fall back system with working internet when trying a new distribution. And yes I'm really only interested in everyday computing, but isn't that what Ubuntu and all the other "next generation" distros are aiming for. I don't use windows because I can't afford it, so linux is the obvious choice. Plus linux looks a lot better, is less prone to viruses, and is more configurable.

Eqwatz: I would love to have many partitions as you suggest but don't have the disk space. I have managed to mount my Mandriva home partition butt I can't gain access to it (permission problem). Any idea how to get around this?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Booting with SUSE 10.1 and another Linux distro BiPolarPenguin Linux - General 4 11-28-2006 07:50 PM
dual booting 2 linux distro westverg Linux - Newbie 2 01-22-2006 11:35 PM
dual booting slackware and 2nd distro stevielawson Slackware 5 01-09-2006 11:47 PM
Dual Booting 2 Distro in different partition novice26 Linux - General 2 04-08-2005 01:55 AM
Dual booting Linux BittaBrotha Linux - Distributions 5 11-04-2002 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 AM.

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