Date: Sat, 25 Jul 1998 13:14:39 -0700 (PDT) From: Mike Reeh <michaelr@ss454.dyn.ml.org> To: freebsd-questions@FreeBSD.ORG Subject: moving a filesystem to a new drive Message-ID: <Pine.BSF.3.96.980725125935.11207A-100000@ss454.dyn.ml.org>
next in thread | raw e-mail | index | archive | help
Maybe someone can help me out.. I have freebsd 2.2.7-s on my 1.2gb ide and i want it moved over to a 1gb scsi drive.. wd0 is the root & swap right now, with i think 75mb swap and the rest for / (im not into making separate partitions <g>)... btw windows is taking up the first 200 or so mb on the drive, but i dont want to move that.. What i tried doing, was making the swap & / partition in /stand/sysinstall (which the system didnt seem to like too much, but did it anyhow) and i mounted it to /mnt where i proceeded to cp -RPp everything from / to /mnt... everything got copied and i used os/bs to select that drive & partition for the boot up list.. when i select the drive it just says empty partition but if i put in the right bios drive, device and partition, etc (i think it was 0:sd(0,a)) then i could type ? to list the contents of what SHOULD have been the root dir on that scsi drive.. but if i typed kernel it didnt work.. i thought it was because the cp couldnt copy the kernel but it turns out it did.. so anyways i booted kernel.GENERIC and it booted fine except that it still mounted all the ide drive stuff for / and swap! even though i specified scsi drive & partitions in the fstab.. (perhaps the wrong ones, but it still shouldnt have mounted the ide stuff) so then i thought it might be the "root on wd0" setting in the kernel so i recompiled that with root on sd0 and put that kernel on the scsi drive -- same thing happens.. now either im going about this all wrong, which i probably am or im missing something... i thought about using dd but since the drives are different sizes, and i want to skip the first real partition on the drive (win95) that didnt seem too logical.. i dont know much about dump/restore (which someone suggested) so thats out of the question for the moment unless thats how i should do it.. before i forget, i also got some other errors at the boot prompt, like bad disklabel, and empty partition (the latter of which doesnt suprise/confuse me because the setup was wrong for the boot.config which it wasnt seeing anyway) ... but anyhow, any help/pointers would be great as i dont want to reinstall because i have everything setup perfectly now from the last time i had to reinstall :) thanks mike reeh michaelr@ss454.dyn.ml.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980725125935.11207A-100000>