I installed FreeBSD 10.0 and I tried to plug in a backup HD with usb (ad0).
Worked:
Problem:
I used
to
So a dump was made fine but any files changed in the process are probably lost (this is fine, as long as the system files are intact).
The cloned HD won't boot (mountroot > came up), but I used ufs://dev/ada0s1a to get it boot.
The fstab had:
Which does not match
so I made changes to the file /etc/fstab to look like:
The computer now boots fine but complains swap partition is not that there.
But I do not know what to put for the SWAP here.
Worked:
Code:
#gpart destroy F ad0
#dd if=/dev/zero of=/dev/da0 count=2
#fdisk -BI /dev/da0
#bsdlabel -B -w da0s1
#newfs -U /dev/da0s1a
Problem:
I used
Code:
#dump -0 -f - /dev/ada0p2 | restore -r -f -
to
dump
because the one below does not work (complaint was: Tape is not a dump tape!).
Code:
#dump -0Lauf - /dev/ada0p2 | restore -rf –
So a dump was made fine but any files changed in the process are probably lost (this is fine, as long as the system files are intact).
The cloned HD won't boot (mountroot > came up), but I used ufs://dev/ada0s1a to get it boot.
The fstab had:
Code:
# Device Mountpoint FStype Options Dump Pass#
/dev/ada0p2 / ufs rw 1 1
/dev/ada0p3 none swap sw 0 0
Which does not match
Code:
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ada0s1a 946084800 98675140 771722876 11% /
devfs 1 1 0 100% /dev
so I made changes to the file /etc/fstab to look like:
Code:
# Device Mountpoint FStype Options Dump Pass#
/dev/ada0s1a / ufs rw 1 1
/dev/ada0p3 none swap sw 0 0
The computer now boots fine but complains swap partition is not that there.
But I do not know what to put for the SWAP here.