LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-01-2010, 11:35 AM   #1
javaunixsolaris
Member
 
Registered: Jan 2007
Location: Colorado
Distribution: Kubuntu
Posts: 47

Rep: Reputation: 15
Kubuntu 10.04 (64-bit) fails to boot: getpwuid_r(): failed due to unknown user id (0)


I recently installed Kubuntu 10.04 Lucid Lynx Desktop 64-bit edition. The install worked and I was able to restart the machine no problems.

Last week (5/27/10) I shut down my machine and since then I cannot boot. I assume it's because of new software maybe a new kernel; I did an "apt-get update; apt-get upgrade" on May 28th or 27th. Upon booting if I hit Esc right away I see:

Quote:
(process:325): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)

[About 5 minutes passes then this next line prints]

BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu11) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) [this is some kind of shell...who can't see my harddrive]
 
Old 06-01-2010, 12:58 PM   #2
javaunixsolaris
Member
 
Registered: Jan 2007
Location: Colorado
Distribution: Kubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Now I'm trying to go back to an older kernel. I booted into the Live CD, and then mounted the harddrive (R1):
Quote:
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000435dc

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9328 74920960 83 Linux
/dev/sda2 9328 9730 3227649 5 Extended
/dev/sda5 9328 9730 3227648 82 Linux swap / Solaris
ubuntu@ubuntu:~$

ubuntu@ubuntu:~$ cd /media
ubuntu@ubuntu:/media$ sudo mkdir kubuntu
ubuntu@ubuntu:/media$ sudo mount /dev/sda1 /media/kubuntu/
ubuntu@ubuntu:/media$ cd kubuntu/
ubuntu@ubuntu:/media/kubuntu$ ll
...
lrwxrwxrwx 1 root root 33 2010-05-17 23:13 initrd.img -> boot/initrd.img-2.6.32-22-generic
lrwxrwxrwx 1 root root 33 2010-05-17 21:58 initrd.img.old -> boot/initrd.img-2.6.32-21-generic
...
ubuntu@ubuntu:/media/kubuntu$ sudo su
root@ubuntu:/media/kubuntu# rm initrd.img
root@ubuntu:/media/kubuntu# ln -s boot/initrd.img-2.6.32-21-generic initrd.img
root@ubuntu:/media/kubuntu# ll
...
lrwxrwxrwx 1 root root 33 2010-06-01 17:23 initrd.img -> boot/initrd.img-2.6.32-21-generic
lrwxrwxrwx 1 root root 33 2010-05-17 21:58 initrd.img.old -> boot/initrd.img-2.6.32-21-generic
...
[Then I did it for vmlinuz also]
root@ubuntu:/media/kubuntu# ll
...
lrwxrwxrwx 1 root root 30 2010-05-17 23:13 vmlinuz -> boot/vmlinuz-2.6.32-22-generic
...
root@ubuntu:/media/kubuntu# rm vmlinuz
root@ubuntu:/media/kubuntu# ln -s boot/vmlinuz-2.6.32-21-generic vmlinuz
root@ubuntu:/media/kubuntu# ll
...
lrwxrwxrwx 1 root root 30 2010-06-01 17:44 vmlinuz -> boot/vmlinuz-2.6.32-21-generic
lrwxrwxrwx 1 root root 30 2010-05-17 21:58 vmlinuz.old -> boot/vmlinuz-2.6.32-21-generic
...
Shit, that didn't fix it, still get the same error.


References:
R1: restore kubuntu post
 
Old 06-01-2010, 04:33 PM   #3
javaunixsolaris
Member
 
Registered: Jan 2007
Location: Colorado
Distribution: Kubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Once the (initramfs) prompt comes up if I hit CTRL+ALT+F1 I have some more error messages to work with:

Quote:
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-uuid/21c7bd87-5660-[bunch of alphanumeric chars] does not exist. Dropping to a shell!
I'm not really sure what all this means...?
 
Old 06-03-2010, 04:13 PM   #4
javaunixsolaris
Member
 
Registered: Jan 2007
Location: Colorado
Distribution: Kubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
I've tried everything you can imagine and still can't boot this machine.

-I modified the grub.cfg to give me time to select different kernels (default wouldn't show me the grub loading screen), none worked including all the 'recovery' editions.
-I removed "silent" and "splash" from the boot command lines. Click 'e' when highlighting a kernel, CTRL+X once edited, no luck.
-I took initrd.img-2.6.32-22-generic & vmlinuz-2.6.32-22-generic from another machine put them in /boot and tried to boot from them.
-I played with /etc/fstab to boot from the UUID versus /dev/sda1, neither worked.
-I tried holding 'Shift' while booting which I suppose was going to give me grub options...instead a green screen popped up and the computer froze.
-I joined launchpad.net and this bug appears to be my issue: https://bugs.launchpad.net/ubuntu/+s...ux/+bug/572279 only problem is the bug won't be fixed because it's too generic of an error.

I'm probably going to look into virtualization that way once you have a working machine you can always revert back to that 'snapshot'.

Other references:
http://ubuntuforums.org/showthread.php?t=1443231&page=3
 
Old 06-07-2010, 04:51 PM   #5
javaunixsolaris
Member
 
Registered: Jan 2007
Location: Colorado
Distribution: Kubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
I've just filed a bug report officially with
Code:
ubuntu@ubuntu:~$ ubuntu-bug linux
BUG#590999
 
Old 09-27-2011, 06:14 PM   #6
psychodelic1
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
This helped me: GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware failed to boot from GRUB due to new ext3 xcristi Slackware 7 10-14-2009 07:47 AM
Kubuntu 8.04 live cd boot fails mala fide Ubuntu 3 08-19-2008 12:06 AM
grub fails on ubuntu 5.10 dual boot xp due to sda webhideout Ubuntu 2 10-08-2005 04:55 PM
boot fails due to large harddrive Oh Cisco Debian 3 10-27-2004 12:24 AM
getpwuid_r(): failed nixel Linux - General 0 05-07-2004 12:31 PM


All times are GMT -5. The time now is 10:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration