You are not logged in.
Pages: 1
So I performed a system upgrade after a few weeks of inactivity, and all seemed fine. But when I rebooted, tragedy struck. My root partition (/dev/sda7) cannot be detected and I get booted to a shell. I can however see it just fine from Windows.
I forgot to disable some cpufreq related modules from rc.conf after the upgrade. Could this have anything to do with it?
Thank you for your help.
Offline
More information is needed, such as the file system of your root partition, how you write your bootloader's config file. Also the exact error message during boot will be helpful.
Last edited by xzy3186 (2012-10-09 12:45:12)
Offline
Root partition is ext2. Grub:
title Arch Linux
root (hd0,4)
kernel /vmlinuz-linux root=/dev/sda7 ro
initrd /initramfs-linux.imgThe error:
ERROR: device '/dev/sda7' not found. Skipping fsck.Then it drops me to a recovery shell, but also spits this out:
sh: can't access tty; job control turned off.Last edited by Ertu (2012-10-09 13:44:33)
Offline
You shouldn't use /dev/sdxx format for picking your boot partition, as that can change. Try editing it at boot time ('e' from Grub) and changing it to a different letter or a different number, like /dev/sdb7 or /dev/sda5. Or boot from a Live CD and use the UUID of the partition instead.
Offline
As jdarnold points out, if you have multiple drives, the BIOS / Grub may may drives to /dev/sdx in a nondeterministic manner.
Any chance you have recently added or removed a drive from your system?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Tried a bunch of letters/numbers in Grub; none of them worked. How can I add the UUID instead? Just add it after root=?
And no, no hardware changes at all, just an arch system upgrade.
edit: it's not working with the UUID either. It seems it just can't see the device. Problem with udev?
Last edited by Ertu (2012-10-09 15:10:10)
Offline
Yes. Here's an example I have:
title ArchBang Linux
root (hd1,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/258aeada-5e34-4f56-a438-0bee2526f332 loglevel=3 ro quiet resume=/dev/disk/by-uuid/3e48bf9b-ef11-496c-8335-985ab37cc2e9 nomodeset vga=773
initrd /initramfs-linux.imgOffline
OK, so what is your result of running
ls /dev/sd*under recovery shell?
Offline
You know, I have always had more consistency with 'root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx'
Offline
OK, so what is your result of running
ls /dev/sd*under recovery shell?
It found nothing. But as I said, I can see the root partition and access its files using a Linux reader in Windows, so I know nothing horribly wrong happened.
Offline
Post your fstab.
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
In the recovery shell, fstab is empty. But on my root partition it has the following:
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/dev/sda5 /boot ext2 defaults 0 1
/dev/sda6 swap swap defaults 0 0
/dev/sda7 / ext4 defaults 0 1
/dev/sda8 /home ext4 defaults 0 1BTW, my root is ext4, not ext2. I was thinking of the boot partition.
Offline
xzy3186 wrote:OK, so what is your result of running
ls /dev/sd*under recovery shell?
It found nothing. But as I said, I can see the root partition and access its files using a Linux reader in Windows, so I know nothing horribly wrong happened.
Nothing?! Without a single device named sdxy under /dev? That sounds really strange to me. It seems that your initramfs.img can not recognize your harddrive any more. What did you do before your last normal reboot? Did you update your kernel? Did you see any error during the update?
Last edited by xzy3186 (2012-10-10 14:29:24)
Offline
xzy3186, you are correct. It seems the /lib -> /usr/lib thing screwed me over (I thought I had sorted it out as pacman wouldn't even let me update at first), and I wasn't at the laptop while it was updating, so I never saw the errors. I just looked through my pacman.log and nearly had a coronary. Some highlights, for your enjoyment:
upgraded mkinitcpio (0.9.2-2 -> 0.10-1)
[2012-10-08 10:32] >>> Updating module dependencies. Please wait ...
[2012-10-08 10:32] ERROR: could not open directory /lib/modules/3.5.5-1-ARCH: No such file or directory
[2012-10-08 10:32] FATAL: could not search modules: No such file or directory[2012-10-08 10:32] ==> WARNING: No modules were added to the image. This is probably not what you want.
[2012-10-08 10:32] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2012-10-08 10:32] ==> WARNING: errors were encountered during the build. The image may not be complete.At this juncture I'm considering just reinstalling the whole thing, as I no longer have any need for windows on my laptop. Don't think it's worth trying to salvage this train wreck.
Offline
Yeah, I think your initramfs-linux.img was completely screwed up. Considering the glibc issue as well as the time your system has been out-of-update, reinstallation might be a little bit easier...
Offline
That fstab is very old... /dev/pts and /dev/shm have moved to /etc/mbtab more than a year ago. Here's your new fstab:
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda5 /boot ext2 defaults 0 2
/dev/sda6 swap swap defaults 0 0
/dev/sda7 / ext4 defaults 0 1
/dev/sda8 /home ext4 defaults 0 2Notice that not everything needs "1" at the end. See "Field definitions" from the fstab wiki entry.
And see: http://www.archlinux.org/news/grub-lega … supported/
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
Try this: https://wiki.archlinux.org/index.php/Pa … onger_boot
Last edited by DSpider (2012-10-10 19:07:54)
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
I had the same problem when I switched to systemd (not your case?) responded with could not find root by uuid, i ran live cd and chrooted device, checking everything was alright, as it was. rebooted a couple times and no problem.
Last edited by ackt1c (2012-10-10 19:16:38)
Offline
xzy3186, you are correct. It seems the /lib -> /usr/lib thing screwed me over (I thought I had sorted it out as pacman wouldn't even let me update at first), and I wasn't at the laptop while it was updating, so I never saw the errors. I just looked through my pacman.log and nearly had a coronary. Some highlights, for your enjoyment:
upgraded mkinitcpio (0.9.2-2 -> 0.10-1) [2012-10-08 10:32] >>> Updating module dependencies. Please wait ... [2012-10-08 10:32] ERROR: could not open directory /lib/modules/3.5.5-1-ARCH: No such file or directory [2012-10-08 10:32] FATAL: could not search modules: No such file or directory[2012-10-08 10:32] ==> WARNING: No modules were added to the image. This is probably not what you want. [2012-10-08 10:32] ==> Creating gzip initcpio image: /boot/initramfs-linux.img [2012-10-08 10:32] ==> WARNING: errors were encountered during the build. The image may not be complete.At this juncture I'm considering just reinstalling the whole thing, as I no longer have any need for windows on my laptop. Don't think it's worth trying to salvage this train wreck.
If the lib move was really the problem, then how did you even update your system? pacman should recognize conflicts and abort. You didn't --force it, right?
Offline
Had the same problem as the Ertu, but this didn't work. (My system hadn't been updated since March...)
I used SystemRescueCD to "boot a linux os from the hard disk" or followed the wiki and re-installed mkinitcpio, linux, systemd, initscripts... mkinitcpio -p linux... nothing.
It seems, at least on my system, mkinitcpio is not properly including the SATA module needed for my device.
$ lspci | grep -i ata
00:12.0 IDE interface: Advanced Micro Devices [AMD] nee ATI IXP SB400 Serial ATA Controller (rev 80)
$ lspci -k -s00:12.0
00:12.0 IDE interface: Advanced Micro Devices [AMD] nee ATI IXP SB400 Serial ATA Controller (rev 80)
Subsystem: Acer Incorporated [ALI] Device 010f
Kernel driver in use: sata_siledited /etc/mkinitcpio.conf and set MODULES="sata_sil" to force it to include the module in the initramfs. A final "mkinitcpio -p linux" and everything was fine on the next boot.
Offline
Pages: 1