From owner-freebsd-questions Sun May 2 15:17:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from carabosse.oleane.net (carabosse.oleane.net [194.2.28.5]) by hub.freebsd.org (Postfix) with ESMTP id 94821151C7 for ; Sun, 2 May 1999 15:17:36 -0700 (PDT) (envelope-from jaco@titine.fr.eu.org) Received: from tom.oleane.net (root@smtp.dial.oleane.com [194.2.0.54]) by carabosse.oleane.net with ESMTP id AAA32057 for ; Mon, 3 May 1999 00:17:35 +0200 Received: from titine.fr.eu.org (dyn-1-1-025.Tls.dialup.oleane.fr [194.2.21.25]) by tom.oleane.net (8.8.8/8.8.8) with ESMTP id AAA01765 for ; Mon, 3 May 1999 00:17:34 +0200 Received: (from jaco@localhost) by titine.fr.eu.org (8.9.2+3.1W/8.8.8/Eric Jacoboni - 20/08/98) id AAA00324; Mon, 3 May 1999 00:42:42 +0200 (CEST) To: freebsd-questions@FreeBSD.ORG Subject: How to change the / partition ? From: Eric Jacoboni Date: 03 May 1999 00:42:42 +0200 Message-ID: <85iuab3xgd.fsf@titine.fr.eu.org> Lines: 81 X-Mailer: Gnus v5.6.45/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm afraid i've made a _big_ mistake today : My previous running 3.1-STABLE config : /dev/wd0s1a was /mnt/dos /dev/wd0s2a was / /dev/wd0s2b was the swap partition /dev/wd0s3e was /usr/src /dev/wd1s4 was /usr/local Yes, i know : "when ain't broken, don't fix it!" but my / partition was 97% used so i decided to destroy the dos partition in order to use it as /usr/home... So, i've used /stand/systinstall, delete the wd0s1a partition and recreate it with UFS type. In order to verify all was ok before moving my old /home data to wd0s1a, i first reboot my machine... But, no way to boot again :( To try to fix the problem, i've run an install process to install a minimal system on /dev/wd0s1a and i've verified the others partitions are still there... What i want to do now is to fix the pb in order to boot from /dev/wd0s2a, as before... BTW : i use LILO as boot loader and my /etc/lilo.conf boot=/dev/hda install=/boot/boot.b append = "mem=96M" map=/boot/map vga=normal delay=20 prompt image=/vmlinuz label=linux root=/dev/hdb1 read-only image=/boot/vmlinuz-2.0.34 label=oldlinux root=/dev/hdb1 read-only other=/dev/hda2 label=bsd table=/dev/hda I've rerun /sbin/lilo from my Linux system in order to update the MBR with the new partition scheme, but it doesn't change anything... So my question : what file(s) are to be changed in order to boot kernel from /dev/wd0s2a ? what program to use to fix it ? I promise as soon my config runs again to learn by heart the BSD slices configuration ;-) I don't know if that helps, but before my mistake, i was able to access the BSD partition with this Linux fstab entry : /dev/hda5 /mnt/bsd ufs ufstype=44bsd 0 0 Now, it's impossible : i don't _really_ understand why this manip on /dev/wd0s1a has done such a mess... Here the Linux's fdisk output : Disk /dev/hda: 64 heads, 63 sectors, 621 cylinders Units = cylinders of 4032 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 150 302368+ a5 BSD/386 /dev/hda2 * 311 621 626976 a5 BSD/386 /dev/hda3 * 151 310 322560 a5 BSD/386 Thanks for your help, -- ----------------------------------------------------------------------- Éric Jacoboni « No sport! » (W. Churchill) ----------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message