Greetings,
Yeah. I know... why would I want to move from SATA to PATA?!
Fair enough. This is actually part 1, of a 2 part process to move the entire system to completely new hardware. But the current SATA drive will be used in the new system. So before I wipe it, I need to move the data to a PATA temporarily. So the old system will continue to serve. While the new system is being built. Basically; I want to hijack the SATA drive from a working system.
OK. Here's my plan. I don't need to do things like this very often, so I'm always hard pressed to remember all the details. But strangely, @wblock@ seems to know that, and always has just the documentation I need, to accomplish the task:
Disk Setup on FreeBSD - http://www.wonkity.com/~wblock/docs/html/disksetup.html
and
Backup Options for FreeBSD - http://www.wonkity.com/~wblock/docs/html/backup.html
Thank you, @wblock@!
Now following the Formatting section; I intend to drop the old box, then plug the PATA drive in, then start it back up confirming/tweaking the BIOS settings, as necessary to run with the added drive properly. Then, while the system is Live, and in MultiUser mode; I'll wipe the PATA, then reslice, and format it with the same number, and named slices:
As I write this, I have no idea what the device name(s) will actually be. In fact, I'm a bit confused by the (drive) device names it currently uses:
point being; I have the SATA drive plugged into port 1. Yet (unintuitively) it uses ad4s1*
Shouldn't that be 1, not a 4?
Anyway. After booting the system with the added PATA drive, I'll format it thusly:
OK. So far, so good. Now it's time to format them (newfs())
OK. So far, so good.
At this point I'm wondering if all of this will be OK to perform on a Live system in MultiUser mode.
Also, will following the strategy listed under:
Copying Filesystems
in http://www.wonkity.com/~wblock/docs/html/backup.html (Backup Options for FreeBSD)
also be OK on a live system, like this?
Thank you very much, for all your time, and consideration.
--Chris
Yeah. I know... why would I want to move from SATA to PATA?!
Fair enough. This is actually part 1, of a 2 part process to move the entire system to completely new hardware. But the current SATA drive will be used in the new system. So before I wipe it, I need to move the data to a PATA temporarily. So the old system will continue to serve. While the new system is being built. Basically; I want to hijack the SATA drive from a working system.
OK. Here's my plan. I don't need to do things like this very often, so I'm always hard pressed to remember all the details. But strangely, @wblock@ seems to know that, and always has just the documentation I need, to accomplish the task:
Disk Setup on FreeBSD - http://www.wonkity.com/~wblock/docs/html/disksetup.html
and
Backup Options for FreeBSD - http://www.wonkity.com/~wblock/docs/html/backup.html
Thank you, @wblock@!
Now following the Formatting section; I intend to drop the old box, then plug the PATA drive in, then start it back up confirming/tweaking the BIOS settings, as necessary to run with the added drive properly. Then, while the system is Live, and in MultiUser mode; I'll wipe the PATA, then reslice, and format it with the same number, and named slices:
Code:
swap
/
/usr
/var
Code:
/dev/ad4s1a /
/dev/ad4s1b <swap>
/dev/ad4s1e /usr
/dev/ad4s1d /var
Shouldn't that be 1, not a 4?
Anyway. After booting the system with the added PATA drive, I'll format it thusly:
Code:
#
# Currently MBR, but will be GPT in the new system
#
gpart destroy -F <PataDeviceName>
gpart create -s mbr <PataDeviceName>
gpart bootcode -b /boot/mbr <PataDeviceName>
gpart add -t freebsd <PataDeviceName>
# Mark it active, so it'll be bootable when I bounce it using this drive only
gpart set -a active -i 1 <PataDeviceName>
# Create a bootable slice
gpart create -s bsd <PataDeviveName>s1
# Install the bootcode
gpart bootcode -b /boot/boot <PataDeviceName>s1
# Create /
gpart add -t freebsd-ufs -s 3g <PataDeviceName>s1
# Create <swap>
gpart add -t freebsd-swap -s 3g <PataDeviceName>s1
# Create /var
gpart add -t freebsd-ufs -s 4g <PataDeviceName>s1
# Create /usr
gpart add -t freebsd-ufs <PataDeviceName>s1
Code:
# NOTE soft updates enabled on all slices
# Format /
newfs -U /dev/<PataDeviceName>s1a
# Format /var
newfs -U /dev/<PataDeviceName>s1d
# Format /usr
newfs -U /dev/<PataDeviceName>s1e
At this point I'm wondering if all of this will be OK to perform on a Live system in MultiUser mode.
Also, will following the strategy listed under:
Copying Filesystems
in http://www.wonkity.com/~wblock/docs/html/backup.html (Backup Options for FreeBSD)
also be OK on a live system, like this?
Thank you very much, for all your time, and consideration.
--Chris
Last edited by a moderator: