You are not logged in.

#1 2012-11-12 09:24:59

varghesekrenny
Member
Registered: 2012-11-07
Posts: 17

Difference between boot inside root and outside?

Hi
In my partition table
/dev/sda1 - boot
/dev/sda2 - swap
/dev/sda3 -root
/dev/sda4 -home

mount /dev/sda3 /mnt
mount /dev/sda4 /mnt/home
mount /dev/sda1 /mnt/boot
Here home and boot i create d manually using mkdir /mnt/home and /mnt/boot

Now whether boot is lie inside the root that i mounted to /mnt or it lies outside /mnt/boot..

I am not getting whether boot now is inside root or outside?


Please help me

Offline

#2 2012-11-12 09:51:42

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Difference between boot inside root and outside?

You mount a partition inside a folder. Is there anything confusing about that? If, during the installation process, you don't mount your separate boot partition... then the kernel, the initramfs images and the bootloader will be placed inside the "boot" folder on your root partition and your separate boot partition will not be used.

Same for the separate home partition; if you don't mount it, then the "home" folder on the root partition will be used instead.


But I think there's a language barrier here... Can you rephrase the question?

Last edited by DSpider (2012-11-12 09:52:59)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-11-12 10:03:40

varghesekrenny
Member
Registered: 2012-11-07
Posts: 17

Re: Difference between boot inside root and outside?

Actually i need to to how to mount inside a root and how to mout outside a root
Eg: /boot
i needed to mount it inside root..What above i have given is mount inside or outside?
Since i created a home directory and boot directory inside the /mnt == / (i assumes it's inside a root)..not sure.
I want to know how to mount outside a root..with some example for /boot?
How the directory structure will be inside /mnt?

Offline

#4 2012-11-12 12:24:18

adee
Member
From: The Moon
Registered: 2009-11-10
Posts: 107

Re: Difference between boot inside root and outside?

You want to install the system? Than you did fine the mounting into /mnt. That's in the directory you will chroot in (man chroot). Chroot into that using arch-chroot and install.
What the directory structure will be inside /mnt? Simple: the way you created/mouned it.

Offline

#5 2012-11-12 12:35:10

varghesekrenny
Member
Registered: 2012-11-07
Posts: 17

Re: Difference between boot inside root and outside?

Ok...thanks for the reply.........

Offline

#6 2012-11-12 12:57:34

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Difference between boot inside root and outside?

"/mnt/boot" is a path.

It's the equivalent of "/" + "mnt" + "boot".


Do you understand the concept of root ? It's the very base on which your directory tree sprouts from. If you're booting from a LiveCD or a USB stick, "/" is the root of the live environment, and the "mnt" folder is a folder on it.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2012-11-12 18:21:41

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,045
Website

Re: Difference between boot inside root and outside?

Offline

#8 2012-11-13 05:14:38

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Difference between boot inside root and outside?

Um...? I'll just take a stab at telling you how to mount the dir's to install Arch...

Use like fdisk to create your partitions
/dev/sda1 - boot
/dev/sda2 - swap
/dev/sda3 -root
/dev/sda4 -home

Then mont what will be your root partition to /mnt...

mount /dev/sda3 /mnt

Now create the dir's boot & home

mkdir /mnt/boot
mkdir /mnt/home

Mount the parititions that will be boot and home

mount /dev/sda1 /mnt/boot
mount /dev/sda4 /mnt/home

Then when the Beginners Guide tells you to. Chroot into the new install...
https://wiki.archlinux.org/index.php/Beginners%27_Guide

arch-chroot /mnt

==============

If you need to boot back into the Live CD and chroot back into the install to fix something this is what you do....

mount the root parition to /mnt

mount /dev/sda3 /mnt

Now mount home and boot

mount /dev/sda1 /mnt/boot
mount /dev/sda4 /mnt/home

And chroot into the install

arch-chroot /mnt

Last edited by hunterthomson (2012-11-13 05:15:53)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#9 2012-11-14 05:20:59

varghesekrenny
Member
Registered: 2012-11-07
Posts: 17

Re: Difference between boot inside root and outside?

Thanks for the reply..

Offline

Board footer

Powered by FluxBB