You are not logged in.
Pages: 1
I had to recreate my partitions, so I rsynced them to my external, and then after recreating the partitions, copied the content back. However, this all changed my UUIDs and system does not boot even though I updated those in fstab and grub's menu.lst.
ERROR: Unable to determine major/minor number of root device '/dev/disk......'
You are being dropped to a recovery shellIf I change UUID format to old /dev/sda, another error pops up:
ERROR: Root device mounted successfully, but /sbin/init does not exist.
Bailing out, you are on your own. Good luck.
/bin/sh: can't access tty: job control turned offI regenerated initramfs but it did not change anything.
my fstab
/dev/sda2 /boot ext4 defaults 0 1
/dev/sda3 / ext4 defaults 0 1
/dev/sda4 /mnt/Disk_D ext4 defaults 0 2
#Other non-working value
#UUID=7c0aafb8-6925-4ced-9d15-49037096af18 /boot ext4 defaults 0 1
#UUID=31d71e99-8cb9-4ff6-a2ee-fb1f7495e2e2 / ext4 defaults 0 1
#UUID=08e49767-99a0-4ac4-8740-813b82352b58 /mnt/Disk_D ext4 defaults 0 2menu.lst
# general configuration:
timeout 2
default 0
color light-blue/black light-cyan/blue
# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
# (0) Arch Linux
title Arch 38
root (hd0,1)
kernel /vmlinuz26 root=/dev/sda2 ro quiet
initrd /kernel26.img
#root=/dev/disk/by-uuid/7c0aafb8-6925-4ced-9d15-49037096af18
# (0) Arch Linux
title Ubuntu
root (hd0,0)
kernel /boot/vmlinuz-2.6.31-23-generic-pae root=/dev/sda1 ro quiet
initrd /boot/initrd.img-2.6.31-23-generic-paeI need to fix it ASAP because this is my work laptop, so please help.
Last edited by Lockheed (2011-06-26 19:12:35)
Offline
Where exactly does it fail during the boot process, and what error messages do you get?
You can also try the fallback option.
Offline
No, fallback won't work for the same reason.
ERROR: Unable to determine major/minor number of root device '/dev/disk......'
You are being dropped to a recovery shellor, if I change UUIDs to old /dev/sda format in fstab, I get this:
ERROR: Root device mounted successfully, but /sbin/init does not exist.
Bailing out, you are on your own. Good luck.
/bin/sh: can't access tty: job control turned offwhich is bullsh!t, as /sbin/init is there
I have two partitions:
/ and /boot/
Last edited by Lockheed (2011-06-26 17:27:10)
Offline
Offline
https://wiki.archlinux.org/index.php/In … ting_Linux
One of the best wiki pages we have for recovery.
Offline
I am running into an error
root@juha-ubuntu:/media/arch# mount -t proc proc /media/arch/proc
root@juha-ubuntu:/media/arch# mount -t sysfs sys /media/arch/sys
root@juha-ubuntu:/media/arch# mount -o bind /dev /media/arch/dev
root@juha-ubuntu:~# mount /dev/sda2 /media/arch/boot
root@juha-ubuntu:~# chroot /media/arch /bin/bash
chroot: cannot run command `/bin/bash': Exec format errorOffline
No, fallback won't work for the same reason.
ERROR: Unable to determine major/minor number of root device '/dev/disk......' You are being dropped to a recovery shellor, if I change UUIDs to old /dev/sda format in fstab, I get this:
ERROR: Root device mounted successfully, but /sbin/init does not exist. Bailing out, you are on your own. Good luck. /bin/sh: can't access tty: job control turned offwhich is bullsh!t, as /sbin/init is there
I have two partitions:
/ and /boot/
Which probably means you're mounting the boot partition, not the root partition...
Offline
The wiki article I linked says it might be due to non-matching architectures.
Offline
Which probably means you're mounting the boot partition, not the root partition...
I don't think so. My fstab says
/dev/sda2 /boot ext4 defaults 0 1
/dev/sda3 / ext4 defaults 0 1
/dev/sda4 /mnt/Disk_D ext4 defaults 0 2Offline
I finally regenerated it but problem persists with exactly the same errors.
Last edited by Lockheed (2011-06-26 18:49:38)
Offline
Shouldn't it be root=sda3, not sda2, in menu.lst?
Offline
Shouldn't it be root=sda3, not sda2, in menu.lst?
Apparently, it should. I thought it supposed to be boot partition there.
Anyway, it is booting now but just when SLIM is about to autologin, I get
'Failed to login' in the middle of the screen and am dropped to console.
Offline
Try using StartX from cli and post whether that works on not? That's what I'd do.
Offline
Ok, so the error in the middle of the screen (graphical message, not console) is
"Failed to execute login command"SLIM then falls into login/relogin/relogin,,, loop so I can't do anything there, but when I switch to another console and type startx, I get
hostname: Host name lookup failure
xauth: timeout in locking authority file //.Xauthority
xauth: timeout in locking authority file //.Xauthority
xauth: timeout in locking authority file //.Xauthority
xauth: timeout in locking authority file //.Xauthority
etc.Offline
Right, I managed to fix permissions on /.Xauthority and I get to desktop but then almost nothing works.
I am sure it has something to do with permissions on file system because I changed them before on both / and /boot partitions using
sudo chown -R $USER:$USER <Mount Point>I subsequently tried fixing it form Ubuntu using the same method:
root:root for /
juha:users for /home/juha
root:root for /bootand as mentioned, I am now able to login, but most of things still don't work (for example, sudo, terminal etc, etc).
Offline
If you did
chown -R root:root /then you did mess up your permissions. You will have to reinstall all packages. Do it from runlevel 3 (I'm guessing you run SLIM in 5), or if you can't login, you'll have to do it from live CD.
Offline
Is there some command I can run to reinstall all installed packages? For pacman or yaourt? After all, they keep track of everything that's installed on the system.
Offline
Try
pacman -S $(comm -23 <(pacman -Qq) <(pacman -Qmq))Offline
TI actually used this:
pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)")and am now writing from fully functioning system ;D
Last edited by Lockheed (2011-06-27 20:04:00)
Offline
Pages: 1