Re: FreeBSD 4.8: can't load kernel after doing "cp -R /" to another disk
Tijl Coosemans wrote: On Sunday 30 November 2008 06:57:29 [EMAIL PROTECTED] 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 You should use dump and restore to copy the root partition, see: I'd done that before trying cp -pR, as outlined by rse@: dump -L -0 -f- /old | (cd /new && restore -r -v -f-) http://people.freebsd.org/~rse/mirror/ which isn't too different. I think I know what the problem is: I made the new single slice and FreeBSD partition on it and ran newfs -U on it using the latest FreeBSD 5.x livecd toolkit, and later 4.8 can't even mount that partition (mount /dev/ad0s1a /mnt) failing with "incorrect superblock", so I think its /boot/loader can't load the kernel because of FS issues (but strangely enough pressing "?" at the boot loader prompt lists directory entries of the root FS just fine). It turns out UFS isn't upwards compatible from releases 4.8 -> 5.5. I'll try running newfs -U from 4.8. Last time I checked many 4.8 binaries couldn't run due to disk errors, I hope newfs runs ok... You need to create a UFS1 file system. Thanks a lot, I had forgotten about different UFS versions being used, and loader's showing the list of files when pressing "?" only poured more oil on the fire. This was really it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 4.8: can't load kernel after doing "cp -R /" to another disk
On Sunday 30 November 2008 06:57:29 [EMAIL PROTECTED] 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 >> >> You should use dump and restore to copy the root partition, see: > > I'd done that before trying cp -pR, as outlined by rse@: > > dump -L -0 -f- /old | (cd /new && restore -r -v -f-) > http://people.freebsd.org/~rse/mirror/ > > which isn't too different. I think I know what the problem is: I made > the new single slice and FreeBSD partition on it and ran newfs -U on > it using the latest FreeBSD 5.x livecd toolkit, and later 4.8 can't > even mount that partition (mount /dev/ad0s1a /mnt) failing with > "incorrect superblock", so I think its /boot/loader can't load the > kernel because of FS issues (but strangely enough pressing "?" at the > boot loader prompt lists directory entries of the root FS just fine). > It turns out UFS isn't upwards compatible from releases 4.8 -> 5.5. > I'll try running newfs -U from 4.8. Last time I checked many 4.8 > binaries couldn't run due to disk errors, I hope newfs runs ok... You need to create a UFS1 file system. Also, root file systems usually don't have soft updates (-U) enabled. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 4.8: can't load kernel after doing "cp -R /" to another disk
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 You should use dump and restore to copy the root partition, see: I'd done that before trying cp -pR, as outlined by rse@: dump -L -0 -f- /old | (cd /new && restore -r -v -f-) http://people.freebsd.org/~rse/mirror/ which isn't too different. I think I know what the problem is: I made the new single slice and FreeBSD partition on it and ran newfs -U on it using the latest FreeBSD 5.x livecd toolkit, and later 4.8 can't even mount that partition (mount /dev/ad0s1a /mnt) failing with "incorrect superblock", so I think its /boot/loader can't load the kernel because of FS issues (but strangely enough pressing "?" at the boot loader prompt lists directory entries of the root FS just fine). It turns out UFS isn't upwards compatible from releases 4.8 -> 5.5. I'll try running newfs -U from 4.8. Last time I checked many 4.8 binaries couldn't run due to disk errors, I hope newfs runs ok... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 4.8: can't load kernel after doing "cp -R /" to another disk
On Sat, Nov 29, 2008 at 11:37 AM, admin <[EMAIL PROTECTED]> 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 4.8: can't load kernel after doing "cp -R /" to another disk
On Sat, 29 Nov 2008 20:37:09 +0400 "admin" <[EMAIL PROTECTED]> 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 You should use dump and restore to copy the root partition, see: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"