You are not logged in.

#1 2017-06-30 01:40:34

barefly
Member
Registered: 2014-08-16
Posts: 59

Unable to find UUID after pacstrap [SOLVED]

I was in the process of attempting to install Arch on another drive on my pc, testing out how it would work so I can could migrate files later, and ran through the steps of generating an fstab and chrooting in to begin configuring the new drive. When I attempted to restart into the new install grub gave me an error stating it couldn't find the UUID of the drive and was dropping into an emergency shell. I was unable to use my keyboard in emergency shell and hopped into my arch usb. After chrooting into my old installation of arch I was going to attempt to update grub to fix the problem, but ran lsblk and fdisk prior. I received the following errors.

lsblk
lsblk:failed to access sysfs directory: /sys/dev/block: No such file or directory

fdisk:
cannot open /proc/partitions: No such file or directory

After chrooting into the new installation and running lsblk and fdisk I am not getting the same errors, it shows the drive and partition information. How can I revert this back so I can load back into my old installation?

EDIT: I checked the fstab on my old drive and it doesn't look like it was modified.

Last edited by barefly (2017-07-03 02:41:09)

Offline

#2 2017-06-30 01:43:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Unable to find UUID after pacstrap [SOLVED]

Did you use arch-chroot command from arch-install-scripts or just the regular chroot command?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-06-30 01:45:25

barefly
Member
Registered: 2014-08-16
Posts: 59

Re: Unable to find UUID after pacstrap [SOLVED]

I used chroot.

EDIT: I'm thinking of formatting the drive I was testing on and installing arch again on the old drive, since all my files are still fine.

Last edited by barefly (2017-06-30 01:55:00)

Offline

#4 2017-06-30 01:54:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Unable to find UUID after pacstrap [SOLVED]

Offline

#5 2017-06-30 02:01:23

barefly
Member
Registered: 2014-08-16
Posts: 59

Re: Unable to find UUID after pacstrap [SOLVED]

In the context of doing this from a liveusb, how do I go about doing this? Do I mount both drives and reference them from their mount points? Do I need to be chrooted into the new drive since that would have been the the proc, sys, and dev info migrated to? Or can I mount both these within liveusb and run the commands from there?

EDIT: This may not work as intended because even when chrooted into the new install and I run

mount -t proc proc/

I get...
mount: can't find proc in /etc/fstab

Last edited by barefly (2017-06-30 02:11:05)

Offline

#6 2017-06-30 02:09:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Unable to find UUID after pacstrap [SOLVED]

You're making this too complicated You either need to use arch-chroot, which mounts the pseudo-filesystems for you, or you need to do it manually like the wiki says. Notice that proc, sys, and dev aren't real filesystems, but in-memory access to kernel or system functions.

Offline

#7 2017-06-30 02:19:41

barefly
Member
Registered: 2014-08-16
Posts: 59

Re: Unable to find UUID after pacstrap [SOLVED]

Scimmia wrote:

You're making this too complicated You either need to use arch-chroot, which mounts the pseudo-filesystems for you, or you need to do it manually like the wiki says. Notice that proc, sys, and dev aren't real filesystems, but in-memory access to kernel or system functions.

I ran the commands for chroot in the wiki and after restart it dropped me back into emergency shell.

EDIT: God I'm an idiot. Ran mkinitcpio -p linux and I'm back up. Thanks for your patience folks.

Last edited by barefly (2017-06-30 02:49:20)

Offline

#8 2017-06-30 03:19:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: Unable to find UUID after pacstrap [SOLVED]

Remember to mark your thread as solved.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB