cannot open root device hda3

Ken Moffat ken at linuxfromscratch.org
Mon Feb 2 08:59:05 PST 2009


On Mon, Feb 02, 2009 at 01:09:10AM -0600, DJ Lucas wrote:
> Ralph Porter wrote:
> > Yep.
> > 
> > booting from 6.3 livecd
> > 
> > export LFS=/mnt/lfs
> >  chroot "$LFS" /usr/bin/env -i     HOME=/root TERM="$TERM"
> > PS1='\u:\w\$ '     PATH=/bin:/usr/bin:/sbin:/usr/sbin     /bin/bash
> > --login
> > 
> > root:/sources/linux-2.6.22.5# make mrproper
> > 
> > make LANG=en_US.iso88591 LC_ALL= menuconfig
> > save file with no changes (defaults worked last time)
> > 
> > make
> > 
> > kernel/built-in.o: In function `getnstimeofday':
> > (.text+0x196b9): undefined reference to `__umoddi3'
> > kernel/built-in.o: In function `do_gettimeofday':
> > (.text+0x19774): undefined reference to `__udivdi3'
> > kernel/built-in.o: In function `do_gettimeofday':
> > (.text+0x19797): undefined reference to `__umoddi3'
> > kernel/built-in.o: In function `update_wall_time':
> > (.text+0x19ee9): undefined reference to `__udivdi3'
> > kernel/built-in.o: In function `update_wall_time':
> > (.text+0x19f13): undefined reference to `__umoddi3'
> > make: *** [.tmp_vmlinux1] Error 1
> 
> Everything looks correct there.  Strange.  I honestly don't recall 
> exactly why (technically), but I've seen that before.  I think it was a 
> simple environment error (PATH was set but not exported in my case I 
> think it was...maybe, not sure).  Can't hurt to try exporting PATH from 
> inside the chroot environment, and running ldconfig again, and then 
> review what is in /etc/profile, ~/.bash_profile, and ~/.bashrc for errors.
> 
> -- DJ Lucas
> 
 Google has various reports that gcc-4.3 couldn't build 2.6.24, with
similar errors.  If Ralph is trying to get back to a working hda
device, I think he needs to try the version you mentioned
(2.6.27.something).

 So, take the default config from 2.6.22.5 and save it as
~/config-2.6.22.5.  Then blow away the 2.6.22.5 directory and extract
the 2.6.27.something sources. Then cp ~/config-2.6.22.5 .config and
then makeoldconfig.

 I don't fully understand the original problem, but for a new system
I'd be tempted to use /dev/sda if it works.  For the switchover, perhaps
try mounting by label (man tune2fs; /-L).  My server's fstab uses
LABEL=root7 for what was originally hda7, LABEL=home and so forth.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the lfs-support mailing list