From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 15:42:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B749C37B401 for ; Mon, 28 Apr 2003 15:42:26 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id CB6AB43FAF for ; Mon, 28 Apr 2003 15:42:25 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 36353 invoked by uid 1001); 28 Apr 2003 22:42:28 -0000 Date: Mon, 28 Apr 2003 15:42:28 -0700 From: Joshua Oreman To: Guy Van Sanden Message-ID: <20030428224228.GA36201@webserver.get-linux.org> References: <1051547407.8005.0.camel@cronos.home.vsb> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1051547407.8005.0.camel@cronos.home.vsb> User-Agent: Mutt/1.4i cc: questions@freebsd.org Subject: Re: Bootmanager & move FreeBSD between disks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 22:42:27 -0000 On Mon, Apr 28, 2003 at 06:30:07PM +0200 or thereabouts, Guy Van Sanden seemed to write: > Hello > > I need some help to get something done in FreeBSD that I know how to do > in Linux, but I miss some specifics in FreeBSD. > > I have two 40 GB disks in my home-server. One disk contains all > filesystems (root and data), the other is free at the moment (it is > intended to be a backup/mirror disk). > > Ath the moment, I have two problems on that disk: > 1. After a BIOS upgrade my disk geometry (in the BIOS) changed, which > gives me warnings in FreeBSD (with disklabel) > 2. My root filesystem is too small (154 MB, 50% used). > > What I want to do is: > 1. Boot the system from removable media (LiveCD?) > 2. Copy all partitions from primary disk to backup disk (including the > root filesystem) - I think using tar > 3. Repartition the primary disk with the correct geometry and a larger > root partition (300 MB should do it). > 4. Copy the root and all data back to the primary disk (again with tar) > 5. I don't have any idea how to do this, but I need to put the > Bootmanager back on the primary disk, using the new disk layout. > > I would appreciate any suggestions/recommendations and any help on > re-installing the bootmanager. Well, here are some suggestions: * Copy all partitions except / to the backup disk BEFORE booting off whatever live CD you use * Make sure the live CD includes tar (duh) * Example command: (assumes ad0 is first disk and ad1 is backup disk, 'a' ptn on slice 1 of each is rootfs): livecd# mkdir /mnt/old /mnt/new livecd# mount /dev/ad0s1a /mnt/old livecd# newfs /dev/ad1s1a # NOTE: this will destroy the 'a' ptn on the # backup disk livecd# mount /dev/ad1s1a /mnt/new livecd# ( cd /mnt/old && tar -cf- * ) | ( cd /mnt/new && tar -xpf- ) livecd# umount /mnt/old livecd# umount /mnt/new livecd# reboot By way of how to *make* the LiveCD, I'm sure a Google or SourceForge search will turn up plenty of choices. Also, I've done some work on porting Mondo Rescue to FreeBSD. You can download Mindi at http://64.161.78.226/mindi-fbsd.tgz. Untar, cd mindi-0.84 && bash install.sh; ./mindi. Press Enter, wait, n, y. You'll find the ISO in /root/images/mindi/mindi.iso (Note: you must be root, and you need /usr/ports/shells/bash, /usr/ports/textproc/textutils, and /usr/ports/sysutils/fileutils). HTH, -- Josh > > My configuration: > FreeBSD 5.0 > Digital PC 3500 (Pentium II 333) > 256 MB RAM > 2x40GB IDE Harddisks. > > Thanks > > Guy > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"