You are not logged in.
Pages: 1
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
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?
Offline
no,how to do it?
Offline
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.
Offline
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
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
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
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.
Offline
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
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
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').
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
Pages: 1