Re: How to move netbsd to another drive?

Paul Goyette <[email protected]>
Newsgroups gmane.os.netbsd.ports.x86-64,gmane.os.netbsd.ports.i386
Message-ID <[email protected]>
On Fri, 15 May 2020, [email protected] 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 | [email protected]     |
| Software Developer | 0786 F758 55DE 53BA 7731 | [email protected]   |
+--------------------+--------------------------+-----------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.