[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to install grub onto an added drive?
From: |
Chris Green |
Subject: |
Re: How to install grub onto an added drive? |
Date: |
Mon, 18 Nov 2019 20:44:49 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Mon, Nov 18, 2019 at 09:42:13PM +0100, Pascal Hambourg wrote:
> Le 18/11/2019 à 20:44, sashab a écrit :
> >
> > fist of all: A fresh install will be much less pain ;)
>
> But so much less fun.
>
> > Moving '/' to new device:
> > You'll have to boot a "live system" from a CD,
> > to copy your rootfs.
>
> No, you don't. You can do it from the installed system.
>
> > It would be better to create a new fs on /dev/nvme0p?
> > and rsync all files.
>
> Better than what ? Cloning the raw partition then extending the filesystem ?
> Why ?
>
> > If you have no separate boot partition
>
> Actually I am failing to understand whether the small boot drive will be the
> current SSD or a new empty drive.
>
It's an old/small/emptied drive.
> > However, you'll need to
> > dpkg-reconfigure grub-pc
> > (or however the package's name is on xubuntu)
> > so that future updates of grub get installed on the right drive.
>
> Good catch. Actually if you are familiar with using chroot you could even do
> this after chrooting to the new root filesystem instead of running
> grub-install and grub-mkconfig (or update-grub) as it will also perform both
> operations.
>
--
Chris Green
Re: How to install grub onto an added drive?, Pascal Hambourg, 2019/11/18