You are not logged in.
I did a system update trying to fix some package dependencies for a mongodb issue. I saw that there were changes to grub, so I stopped, and was good. I checked the home page, I checked the forums. The only thing I found was a thread saying that it should be fine. So I ran the update. syslinux also updated.
After it completed, I diff'd the pacnew files, made all the appropriate changes (I thought) and rebooted.
...
:: Triggering uevents...
Waiting 10 seconds for device /dev/sda3 ...
ERROR: device 'dev/sda3' not found. Skipping fsck.
ERROR: Unable to find root device '/dev/sda3',
..I was then dumped into the recovery shell, which was completely useless since it doesn't seem to be loading the USB drivers and so my keyboard won't work. I think I've got a PS2 keyboard in storage, I'll try to grab it tomorrow. (With my luck, I purged it last time I was cleaning.) I downloaded a fresh image and got a bootable USB going, but I'm at a loss as to what to do next.
I'd wipe and restore the damn thing so I could get back to work, but there's a couple ssh keys that would be a pain to replace. (Yeah, I know, I should have backed them up some place. I didn't.)
Help?
Last edited by jbhelfrich (2013-07-31 19:49:08)
Offline
There is no reason to contemplate a reinstall. Chroot in and check your bootloader config (are you using grub or syslinux?)
Run blkid and use UUIDs or labels to eliminate any ambiguity in drive and position naming.
Offline
...yeah, I'm more of a newbie then that on the sysadmin side of things. Can you rephrase that into "it's a good thing this guy only admins that box under his desk" speak?
As for which bootloader I'm using I think it's grub, but I built this box a year ago and haven't used it except as a test apache and node server while I tinker on some web projects.
Offline
Read through the wiki chroot article. Essentially, you are using the live medium (USB,CD, whathaveyou) to leverage into your unbootable system and make any changes that need to be made.
You only need one bootloader (I prefer syslinux as it is much simpler to understand and manage): whichever you choose, ensure that it is configured correctly (the relevant wiki pages are both good).
Using UUIDs rather than /dev/sdx just means that it is much less likely to dev/$name will change from boot to boot... Again, see the wiki entry*
* Do you see the pattern emerging here ![]()
Offline
Do you have a separate /boot partition?
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
I have two partitions on SDA. Partition 1 has the core file system and partition 2 has the contents of the /home directory. I mounted them and chroot into them.
I found http://sourceforge.net/projects/bootinfoscript/, and downloaded that and ran it. It shows that sda1 has syslinux as the boot sector type, but that "the 2 ADV sectors are not the same (corrupt)."
Can I pacman -R grub safely at this point, to at least remove one source of confusion?
Looking at the syslinux.cfg file to see if I can figure out what I missed.
EDIT: OK, the syslinux.cfg has "APPEND root=/dev/sda3 rw" for both arch and archfallback. I assume I can change those to either sda1 or the UUIDs listed in etc/fstab and be good to go?
And yes, I see the trend on wiki articles. Sadly there's not a wiki entry for "hey, what's that linux admin command that I've forgotten will totally save me?" to point me in the right direction. ![]()
Last edited by jbhelfrich (2013-07-31 18:24:53)
Offline
Can I pacman -R grub safely at this point, to at least remove one source of confusion?
Looking at the syslinux.cfg file to see if I can figure out what I missed.
Yes: just get syslinux working. Go for the vanilla option, without any fancy menus, it is pretty straightforward.
Offline
Do I need to worry about the corruption warning?
Offline
I don't know about the corruption warning; I've not seen it before and a quick search turns up nothing informative.
Once you get syslinux set up and working, you could always back up everything you need and fix/repartition the drive.
Offline
OK, changing to sda1 got me back in. And the system update managed to fix the mongod issue! So now I can actually get back to work. Rerunning the boot info script still shows corruption in the ADV sectors, so I'll add researching that to the to-do list along with the UUID change.
Thanks for the pointers.
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title...
Offline