public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Problem with doing a system restore
@ 2005-07-31 13:19 Andrew Randles
  2005-07-31 15:18 ` Richard Fish
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Randles @ 2005-07-31 13:19 UTC (permalink / raw
  To: gentoo-user

Hi everyone I was hoping someone would have suggestion for me.

My hard drive was going bad so I bought a new one and put it in. 
Instead of doing a complete reinstall I used dar and a usb harddrive
to do a backup of the system.  I then used a gentoo live cd (2004.2 or
3) and to get everything setup and copied over.  That worked well and
up until I had to chroot in and take care of the grub setup.

I keep getting glibc errors with "symbol erron" when I try to run
env-update, ls or emerge commands.

When I run grub root (hd0,0) it says no such drive or device.  My
/dev/ folder in the chrooted environment is empty.

The system is a 2.6 kernel with 2.6 headers.  I wonder if maybe I need
an updated cd.

Does anyone else have anymore ideas.  
Thanks,
Andrew

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Problem with doing a system restore
  2005-07-31 13:19 [gentoo-user] Problem with doing a system restore Andrew Randles
@ 2005-07-31 15:18 ` Richard Fish
  2005-07-31 16:51   ` Andrew Randles
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Fish @ 2005-07-31 15:18 UTC (permalink / raw
  To: gentoo-user

Andrew Randles wrote:

>Hi everyone I was hoping someone would have suggestion for me.
>
>My hard drive was going bad so I bought a new one and put it in. 
>Instead of doing a complete reinstall I used dar and a usb harddrive
>to do a backup of the system.  I then used a gentoo live cd (2004.2 or
>3) and to get everything setup and copied over.  That worked well and
>up until I had to chroot in and take care of the grub setup.
>
>I keep getting glibc errors with "symbol erron" when I try to run
>env-update, ls or emerge commands.
>
>When I run grub root (hd0,0) it says no such drive or device.  My
>/dev/ folder in the chrooted environment is empty.
>
>The system is a 2.6 kernel with 2.6 headers.  I wonder if maybe I need
>an updated cd.
>
>Does anyone else have anymore ideas.  
>  
>

A couple of more steps may be necessary before the chroot.  Assuming 
that your root is mounted on /mnt/root:

cd /mnt/root
mount --bind /dev dev
mount --bind /proc proc
mount --bind /sys sys
chroot ./ ./bin/bash
mount -a # only if /boot is a separate filesystem
grub-install /dev/hda
umount -a # only if /boot is a separate filesystem
exit
umount dev
umount proc
umount sys
cd ..
umount root

HTH,

-Richard


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Problem with doing a system restore
  2005-07-31 15:18 ` Richard Fish
@ 2005-07-31 16:51   ` Andrew Randles
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Randles @ 2005-07-31 16:51 UTC (permalink / raw
  To: gentoo-user

Thanks your reply helped me a lot.  That was exactly what I needed. 
It turns out there are important files in /dev/ that are not
dynamically generated.

Thanks again,
Andrew

On 8/1/05, Richard Fish <bigfish@asmallpond.org> wrote:
> Andrew Randles wrote:
> 
> >Hi everyone I was hoping someone would have suggestion for me.
> >
> >My hard drive was going bad so I bought a new one and put it in.
> >Instead of doing a complete reinstall I used dar and a usb harddrive
> >to do a backup of the system.  I then used a gentoo live cd (2004.2 or
> >3) and to get everything setup and copied over.  That worked well and
> >up until I had to chroot in and take care of the grub setup.
> >
> >I keep getting glibc errors with "symbol erron" when I try to run
> >env-update, ls or emerge commands.
> >
> >When I run grub root (hd0,0) it says no such drive or device.  My
> >/dev/ folder in the chrooted environment is empty.
> >
> >The system is a 2.6 kernel with 2.6 headers.  I wonder if maybe I need
> >an updated cd.
> >
> >Does anyone else have anymore ideas.
> >
> >
> 
> A couple of more steps may be necessary before the chroot.  Assuming
> that your root is mounted on /mnt/root:
> 
> cd /mnt/root
> mount --bind /dev dev
> mount --bind /proc proc
> mount --bind /sys sys
> chroot ./ ./bin/bash
> mount -a # only if /boot is a separate filesystem
> grub-install /dev/hda
> umount -a # only if /boot is a separate filesystem
> exit
> umount dev
> umount proc
> umount sys
> cd ..
> umount root
> 
> HTH,
> 
> -Richard
> 
> 
> --
> gentoo-user@gentoo.org mailing list
> 
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-31 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-31 13:19 [gentoo-user] Problem with doing a system restore Andrew Randles
2005-07-31 15:18 ` Richard Fish
2005-07-31 16:51   ` Andrew Randles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox