You are not logged in.

#1 2011-05-13 00:02:10

yktula
Member
Registered: 2010-07-18
Posts: 14

Booting from a subdirectory

Can I install an operating system in a directory of a filesystem used by another operating system?

In other words, if I have one root partition holding everything for an Archlinux install, can I install another operating system (say, Ubuntu), in /home/yktula/ubuntu/, with /home/yktula/ubuntu being the root directory of the filesystem used by Ubuntu and be able to boot from it?

Offline

#2 2011-05-13 01:40:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Booting from a subdirectory

https://wiki.archlinux.org/index.php/Chroot
I don't think it is possible to boot from it.

Offline

#3 2011-05-13 01:43:08

schmidtbag
Member
From: NH, USA
Registered: 2011-02-08
Posts: 337

Re: Booting from a subdirectory

well, you can have arch installed on 1 partition, have your home folder on a separate partition, and have an ubuntu install on a separate partition that uses the same home folder.  however, that is a really bad idea.

i don't think it is (easily) possible to boot ubuntu from your home folder, unless you symlink it or direct grub to do so.  why do you want to do this anyway?  i feel like whatever purpose this is for, there is a much better solution.

Offline

#4 2011-05-13 01:48:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Booting from a subdirectory

schmidtbag wrote:

i feel like whatever purpose this is for, there is a much better solution.

Resizing the Arch partition and installing Ubuntu on another one?
A VM if the computer has enough CPU / RAM?
A liveCD/USB?

Offline

#5 2011-05-13 02:18:01

my0pic
Member
From: Melbourne, Australia
Registered: 2008-05-23
Posts: 206

Re: Booting from a subdirectory

yktula wrote:

Can I install an operating system in a directory of a filesystem used by another operating system?

In other words, if I have one root partition holding everything for an Archlinux install, can I install another operating system (say, Ubuntu), in /home/yktula/ubuntu/, with /home/yktula/ubuntu being the root directory of the filesystem used by Ubuntu and be able to boot from it?

You may find this post by vadmium interesting.
He's created an initcpio hook to boot from a subdirectory.

Offline

#6 2011-05-14 18:57:27

yktula
Member
Registered: 2010-07-18
Posts: 14

Re: Booting from a subdirectory

my0pic wrote:

You may find this post by vadmium interesting.
He's created an initcpio hook to boot from a subdirectory.

I did find it interesting. It's exactly what I was looking for! It was posted a day before I started this thread, too (I hadn't seen it).

Offline

Board footer

Powered by FluxBB