Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to move netbsd to another drive?



On Fri, 15 May 2020, yancm%sdf.org@localhost wrote:

man dd
That doesn't always work.  I got an unmountable, unreadable file system
when$

Assuming the new filesystem is formatted and mountable and you just want
to migrate, why not use pax as described in the RAID guide:

16.3.7. Migrating System to RAID[s/RAID/new file system/]

# mount /dev/raid0a /mnt
# df -h /mnt
Filesystem        Size       Used      Avail %Cap Mounted on
/dev/raid0a       8.9G       2.0K       8.5G   0% /mnt
# cd /; pax -v -X -rw -pe . /mnt
[NOTE - does not cross mount points - need to repeat in each mount directory]
[...snip...]
The NetBSD install now exists on the RAID filesystem.

Note that, for some architectures, you might also need to update boot blocks... :)


+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+


Home | Main Index | Thread Index | Old Index