You are not logged in.
Pages: 1
I am installing Arch to my USB, which takes up my entire USB space. After install I get an error of
error: no such device :afasd1-sad21321-afadse- bla bla bla
Loading Linux core repo kernel ...
error: no such partition.
Loading initial ramdisk
error: you need to load the kernel first
How do i fix this?
Last edited by sg4rb0 (2016-01-30 21:50:11)
Offline
I used a slightly different guide. I used this guide: https://wiki.archlinux.org/index.php/Installation_guide . I wrote down all the steps I made below. Maybe you can spot a problem with it?
How I installed Arch
#find USB disk to install Arch to
fdisk -l
#formart the partitions. I used full disk + made it bootable
cfdisk /dev/sdc
#exit and make the file system
mkfs.ext4 /dev/sdc1
#mount drive
mount /dev/sdc1 /mnt
#setup WiFi
wifi-menu
#Use the pacstrap script to install the base group:
pacstrap /mnt base
#Generate the fstab file
genfstab -p /mnt >> /mnt/etc/fstab
#root into the mount point
arch-chroot /mnt
#set the password
passwd
#set the pc name
echo computer > /etc/hostname
#sort the timezone
ln -s /usr/share/zoneinfo/Greenwich /etc/localtime
locale-gen
#create a user
useradd -m -g users -s /bin/bash steve
#set the passwod
passwd steve
#install sudo
pacman -S sudo
#configure the sudo file
EDITOR=nano visudo
##uncomment line below
%sudo ALL=(ALL) ALL
#save and then add steve to the sudo group
groupadd sudo
usermod -G sudo steve
#Check change was implemented
cat /etc/passwd
#download grub packages
pacman -S grub-bios
#install grub
grub-install /dev/sdc
#make the init file
mkinitcpio -p linux
exit
#generate the fstab file
genfstab -p /mnt >> /mnt/etc/fstab
#unmount your drive and reboot
umount -R /mnt
reboot
Last edited by sg4rb0 (2016-01-28 13:10:56)
Offline
I had a look at the grub config file and it looks so wrong. I broke into a grub shell and issued some commands to find that the root is mounted on hd0,msdos1. However the grub config file states that "set root='hd0,msdos5'". The long UID is also wrong. I don't understand why? I've formatted twice and still been unsuccessful to load the OS.
Last edited by sg4rb0 (2016-01-28 13:48:53)
Offline
You didn't appear to run grub-mkconfig while chrooted (or else you omitted it from your list). You also ran genfstab twice, so your fstab probably has superfluous entries (these may cause problems).
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Well I got it to boot now finally. I had to change a chunk of the GRUB config. The UID was wrong, and the root partition was wrong, pretty much most of it was wrong. How can my installation of GRUB have gone so wrong? When I installed it, I literally typed the two commands below. Yet the file was full of wrong information.
pacman -S grub-bios
grub-install /dev/sdc
Offline
You didn't appear to run grub-mkconfig while chrooted (or else you omitted it from your list). You also ran genfstab twice, so your fstab probably has superfluous entries (these may cause problems).
Oh right, yeah that step sounds quite important lol. I just did it the hardcore way and skipped it, broke my boot, then manually fixed my grub file.
Offline
Please remember to mark your thread as solved by editing the first post and amending the topic title.
Also, in the future, please choose a more appropriate topic title that describes your problem (e.g. "grub cannot find kernel")
Last edited by WorMzy (2016-01-28 14:59:18)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
TBH with you WorMzy I didn't know what the problem was to identify it any clearer. I've never used Arch Linux before. I just kind of started checking the things I installed by reading the man pages to see how they worked. I can't find how to mark it as answered.
Last edited by sg4rb0 (2016-01-28 17:51:50)
Offline
Reread my first sentence.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1