Date: Sat, 29 Nov 2008 17:55:58 -0500 From: "Glen Barber" <glen.j.barber@gmail.com> To: admin <admin@azuni.net> Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 4.8: can't load kernel after doing "cp -R /" to another disk Message-ID: <4ad871310811291455k16058abcyf9473cf0559a70f@mail.gmail.com> In-Reply-To: <200811291637.mATGb9iR048266@ns0.azuni.net> References: <200811291637.mATGb9iR048266@ns0.azuni.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 29, 2008 at 11:37 AM, admin <admin@azuni.net> wrote: > > Hello, everyone. This is the problem: our SCSI disk with FreeBSD 4.8 on it > has been failing recently, so I copied its root partition to a fresh IDE > disk with cp -pR and tried to boot from that. Unfortunately, loader gives me > this: > can't load 'kernel' > can't load 'kernel.old' > and offers prompt. > I tried almost any combination of the loader command (like > 0:ad0(0,a)/boot/loader) but still the same. The kernels are right there: > /kernel and /kernel.old. Can't the root partition be copied this way? Should > their location on disk be hardcoded somewhere? Please help me with > bootblocks etc. as I'm desperately running out of time. Short of using dump/restore, you should append the -p flag to `cp', because it preserves permissions. Follow the advice posted by RW, however. -- Glen Barber "If you have any trouble sounding condescending, find a Unix user to show you how it's done." --Scott Adams
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ad871310811291455k16058abcyf9473cf0559a70f>