Thursday, November 02, 2023

Re: odd homework looking to upgrade sticks..

On Thu, Nov 02, 2023 at 04:33:32PM +0100, Daniele B. wrote:
> 1. Copymachine: copy from the old 16gb stick (sd2) to the new 64gb stick
> (sd1) to get the stick layout.
> 2. disklabel -E: I then delete all the partitions.
> 3. disklabel -E: I recreate a bigger / partition (sd1a).
> 4. disklabel -E: I recreate a the swap partition (sd1b).

This makes no sense.

The way you are trying to do this is over-complicated and going to cause
you other problems later on.

For example:

> pax -rw . /mnt/newstick/

This will not copy the file flags, so the files that you have set as
immutable will no longer be immutable. And you probably would not
be expecting that.

On Thu, Nov 02, 2023 at 04:43:19PM +0100, Daniele B. wrote:
> Ok, I did
>
> wiz# installboot -v -r /mnt/key sd1
>
> receiving:
> Using /mnt/key as root
> installboot: realpath: No such file or directory

This is because you don't have:

/mnt/key/usr/mdec/boot

and

/mnt/key/usr/mdec/biosboot

> But doing as from the man:
>
> wiz# installboot -v -r /mnt/key sd1 /usr/mdec/biosboot /usr/mdec/boot

This works because you are copying those files from your original
installation.

But it is not clear whether your new 'stick' has a suitable root file
system on it or not.

Daniele, take my advice - you are hopelessly out of your depth here,
just do a FRESH INSTALL on the new 64 Gb stick, and install the packages
that you use, then copy your old configuration files and data from the
16 Gb stick afterwards.

DON'T try to do it the way you are trying to, because you'll just mess it
up, and spend the next week posting to -misc asking why it doesn't work.

No comments:

Post a Comment