Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 1996 19:28:31 -0500 (EST)
From:      Glen Foster <gfoster@gfoster.com>
To:        allenh@wtrt.net
Cc:        freebsd-isp@FreeBSD.org
Subject:   Re: upgrading hard drives
Message-ID:  <199611250028.TAA04417@tbd.gfoster.com>
In-Reply-To: <199611242318.RAA20258@inetsrv.wtrt.net> (allenh@wtrt.net)

next in thread | previous in thread | raw e-mail | index | archive | help
Summary first, more detail about each step below:

1) make sure your kernel supports your SCSI controller, build and
   install one that does if you need to do so
2) power down
3) install the SCSI card and drive
4) boot DOS and install a DOS partition (AKA slice) table using fdisk
5) boot FreeBSD (single-user) off your IDE drive 
6) BSD partition the FreeBSD slice on the SCSI disk with the partition
   sizes you want, installing boot blocks using disklabel(8).  Make
   notes for step 9 below
7) make file systems on the ufs partitions using newfs(8)
8) use a dump/restore pipe to copy your IDE partitions to your SCSI
   partitions 
9) edit the /etc/fstab file to change wd0 references to sd0 references 
10) powerdown
11) remove IDE drive, turn off IDE in CMOS
12) boot off SCSI, you're done

Addl. explanation:

4) not absolutely necc., you can BSD label the entire disk in 6) (AKA
   "dangerously dedicated" mode) but it can be tricky to write the
   label to the disk as the area it is written to is r/o by default.
   I forget the steps you need to take to do it but you can find them
   in the mailing list archives.  To use DOS fdisk you would create a
   DOS partition for the entire disk and then delete it before going
   to step 5). 

6) you may want to print out the man page for disklabel(8) before
   doing this

7&8) e.g.:

# newfs /dev/rsd0a
# mount /dev/sd0a /mnt
# dump 0fs - 10000000 | (cd /mnt ; restore rf -)
# umount /mnt

If you need more explanation than that I'd be happy to try and help
you. 

Glen Foster <gfoster@gfoster.com>

>From: "Allen Hyer" <allenh@wtrt.net>
>Date: Sun, 24 Nov 1996 17:17:13 -0600
>
>  I have a freebsd 2.1.5-Release box with a 1gb IDE hard drive.  I want to
>switch it to a 4gb SCSI hard drive.  What is the easiest way to transfer
>the whole system from the old drive to the new one?  
>
>Thanks,
>Allen Hyer
>System Administrator
>West Texas Rural Telephone



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611250028.TAA04417>