LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 06-13-2015, 05:45 PM   #1
itscience
Member
 
Registered: May 2015
Location: Lancashire UK
Distribution: arch
Posts: 37

Rep: Reputation: Disabled
Install Arch with separate boot partition?


I have a dilemma. In my learning curve or learning how to use and install Arch Linux, I have always installed everything under /mnt (/mnt/home /mnt/var, etc).
Recently, I wanted to use a /boot partition and someone said it's better for toubleshooting if you just install everything under it's own directory (/boot /home /var)

I wrote verything down for my installation instructions for Arch and they don't work with the new partitions:
pacstrap /boot grub
pacstrap /mnt base base-devel
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
mkinitcpio -p linux

I do not know how to execute grub-mkconfig -o /dev/sdb (sdb because I'm installing on a USB)

It makes sense to me that the base and all other packages should be in /mnt but grub cannot find any /etc directories and thus can't complete mkconfig.
What should I chroot into and what else am I missing?

Hope this makes sense. Thanks for taking the time to consider my question :-)
 
Old 06-13-2015, 06:13 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by itscience
someone said it's better for toubleshooting if you just install everything under it's own directory (/boot /home /var)
I don't agree with that statement but anyway...

You need to mount your main partition:
Code:
# mount /dev/sdXY /mnt
Create the /boot directory (the filesystem package is not installed yet so you need to do this manually):
Code:
# mkdir /mnt/boot
Create any other mountpoint directories you wish to use at this point.

Then mount your /boot partition:
Code:
# mount /dev/sdXZ /mnt/boot
https://wiki.archlinux.org/index.php...the_partitions

Replace "X" with the drive letter assigned to your main system drive (probably "b" if it is a USB stick), replace "Y" with the partition number you wish to use for your root partition ("/") and replace "Z" with the partition number you wish to use for /boot -- use `lsblk` to list all attached drives and their sizes.

Mount any other partitions you wish to use at this point.

Then select a mirror by un-commenting the nearest entries from /etc/pacman.d/mirrorlist
https://wiki.archlinux.org/index.php...elect_a_mirror

Then run the `pacstrap` script to install the base system (and any other packages you need):
Code:
# pacstrap /mnt base base-devel
https://wiki.archlinux.org/index.php...he_base_system

Then generate the fstab and configure the system (timezones, keyboard configuration, boot loader/manager. etc).

For configuring GRUB you should use:
Code:
# grub-mkconfig -o /boot/grub/grub.cfg
https://wiki.archlinux.org/index.php...S_motherboards
EDIT: This command should be run after using the `arch-chroot` command.
https://wiki.archlinux.org/index.php...he_base_system

Finally, please refer to the Beginner's Guide (see my signature) when installing Arch as it covers all these steps very clearly.

Last edited by Head_on_a_Stick; 06-13-2015 at 06:24 PM. Reason: Added ArchWiki link
 
Old 06-13-2015, 09:20 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Quote:
Originally Posted by itscience View Post
I do not know how to execute grub-mkconfig -o /dev/sdb (sdb because I'm installing on a USB)
As noted above, to install Arch you have to read the (excellent) Arch doco.
Your command is a composite of grub-install and grub-mkconfig. It can never work. Just follow the Guide - it's not just for beginners, we all refer back to it on occasion.
 
Old 06-16-2015, 03:45 PM   #4
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
someone didn't read the wiki
 
Old 06-16-2015, 06:53 PM   #5
itscience
Member
 
Registered: May 2015
Location: Lancashire UK
Distribution: arch
Posts: 37

Original Poster
Rep: Reputation: Disabled
I did but I guess the whole /boot /home thing threw me off.
I asked on another forum about partitioning sizes for a USB Linux and some guy said he didn't understand why I was doing /mnt/home.. The reason being for if your /mnt partition goes bad the /home doesn't need to be affected. I thought I'd try it but grub wouldn't work.

I sorted it, now. using /mnt/boot and it works fine. Many thanks for pointing it out and for the useful tips :-)
 
  


Reply

Tags
arch, grub, grub config, installation



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
Is there any benefit of making a separate partition for home, root and boot partition Vexe Linux - Hardware 18 02-23-2013 11:00 AM
separate /boot partition, why? sluge Linux - Newbie 1 03-12-2012 02:24 AM
Dual boot, two HDs. Separate /boot partition advisable? mailforbiz Ubuntu 3 06-14-2007 10:15 AM
/boot separate partition energiya Linux - General 7 03-27-2007 03:18 PM
Grub install with separate boot partition oomfoofoo Slackware - Installation 3 12-29-2006 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 04:12 PM.

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