You are not logged in.

#1 2013-06-14 21:42:38

Tr3v0r
Member
Registered: 2013-05-29
Posts: 5

ArchLinux Installation on USB 8Gb

hello am new to the forums.
Ive just installed Archlinux into my 8gb usb Data TravelerSE9, Heres what ive done so far

lsblk
cfdisk
Primary size 500 Begining
bootable
-----------------------------
New Primary size all thats left 
*Write*

mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
locale-gen
nano /etc/pacman.d/mirrorlist

pacman -Sy
pacstrap -i /mnt base base-deve1
-Enter-
-enter-
-Yes-

genfstab -U -p /mnt >> /mnt/etc/fstab
nano /mnt/etc/fstab
arch-chroot /mnt /bin/bash
nano /etc/locale.gen

#en_US.UTF-8 UTF-8
#en_US ISO-8859-1-

locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
nano /etc/vconsole.conf
write in 
KEYMAP=us
FONT=Lat2-Terminus16

ln -s /usr/share/zoneinfo/America/Toronto /etc/localtime
hwclock --systohc --utc
echo trevor > /etc/hostname
nano /etc/pacman.conf

pacman -Sy

passwd
-Enter your password-
-again-

useradd -m -g users -G wheel -s /bin/bash test
passwd test

pacman -S grup-bios
Yes and wait untill it finishes

grub-install --target=i386-pc --recheck /dev/sda or
grub-install /dev/sda

cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

grub-mkconfig -o /boot/grub/grub.cfg
exit
exit
umount /mnt/boot
umount /mnt/
reboot

Everything went right untill i rebooted.When i choose to boot from the USB it dosent,it boots windows 7(My pc OS)

Can anyone help pls?

Last edited by Tr3v0r (2013-06-14 21:57:53)

Offline

#2 2013-06-14 21:46:25

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,300
Website

Re: ArchLinux Installation on USB 8Gb

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Did you include the USB hook in your mkinitcpio.conf?


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2013-06-14 21:50:50

Tr3v0r
Member
Registered: 2013-05-29
Posts: 5

Re: ArchLinux Installation on USB 8Gb

no,how to do it?

Offline

#4 2013-06-14 21:55:42

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,300
Website

Re: ArchLinux Installation on USB 8Gb

Tr3v0r wrote:

no,how to do it?

1. Edit your first post and wrap your output in code tags

like so...

2. Read the mkinitcpio wiki page.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#5 2013-06-14 22:04:23

Tr3v0r
Member
Registered: 2013-05-29
Posts: 5

Re: ArchLinux Installation on USB 8Gb

But how because i cant boot to the usb anymore.

This is what i did:

i got my 2gb usb and i did

sudo dd if=/path_to_arch_.iso of=/dev/sdX

i wrote the iso into the usb

then i boot from that usb and insert the 8gb usb and start installing Arch into the 8gb usb
but now i cant boot from it.

do i have to format the 8gb usb and do everything all over again
or is there a way of doing it booting from the 2gb usb and modifing the 8gb usb?

Offline

#6 2013-06-14 22:23:49

FlyingHappy
Member
From: Cincinnati, OH
Registered: 2011-04-18
Posts: 186

Re: ArchLinux Installation on USB 8Gb

Just boot from the 2gb stick, mount your partitioins and repair your mkinitcpio.  No need to re-partition, you just need to chroot back into your installation.

Offline

#7 2013-06-14 22:30:49

Tr3v0r
Member
Registered: 2013-05-29
Posts: 5

Re: ArchLinux Installation on USB 8Gb

can u pls be more specific xd am not so familiar with ArchLinux, i know what your saying but i dont know how.
so after i mount the partitions and then what, do i look for a file named mkinitcpio? and if i find it do i have to modify it? and if i have to modify it, what do i modify it to?

Offline

#8 2013-06-14 22:34:20

FlyingHappy
Member
From: Cincinnati, OH
Registered: 2011-04-18
Posts: 186

Re: ArchLinux Installation on USB 8Gb

Honestly, I'm don't do much with mkinitcpio, when I installed on my 8gb USB stick, it just worked for me by following the beginners guide...

go to this link.... https://wiki.archlinux.org/index.php/Mkinitcpio#HOOKS    and read, that's about the best advice anybody can give you.  You are going to have to learn to read the wiki and use it if you are going to enjoy your time with arch at all, it is the only thing that has kept me going at least.  smile

Offline

#9 2013-06-14 22:40:29

Tr3v0r
Member
Registered: 2013-05-29
Posts: 5

Re: ArchLinux Installation on USB 8Gb

ok thank you guys for the help, i was just worried because i didnt wanted to format and do everything again,i waited for two hours just downloading packagesi dont want to do wait again, its going to be hard but ill try.

Offline

#10 2013-06-17 16:07:31

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

Re: ArchLinux Installation on USB 8Gb

You already have Arch Linux installed on the 8 GB stick, except that you skipped the step about adding the right hook. In other words, you skipped this step: https://wiki.archlinux.org/index.php/Be … nvironment

Beginners' Guide wrote:

Here you need to set the right hooks if the root is on a USB drive, if you use [...]

No need to reinstall everything from scratch. Just boot from the 2 GB stick the ISO that you "dd"-ed to the stick, mount the 8 GB stick and chroot into your install. Then you can easily edit /etc/mkinitcpio.conf and add the fricken usb hook (and then re-generate the initramfs with 'mkinitcpio -p linux').

https://wiki.archlinux.org/index.php/Chroot


"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

Board footer

Powered by FluxBB