:: Re: [DNG] Lost in grub
Kezdőlap
Delete this message
Reply to this message
Szerző: Hendrik Boom
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] Lost in grub
On Mon, Aug 28, 2017 at 01:51:34PM -0400, fsmithred wrote:
> On 08/28/2017 10:55 AM, Hendrik Boom wrote:
> > Grub seems a lot more complicated now than it used to be a few years
> > ago when I last upgraded Debian from one release to another.
> >
> > My usual procedure is to copy the system to new partitions (adjusting
> > the size according to what I actually guess I might need),
> > editig the copied /etc/fstab, making sure the old and new systems boot
> > properly and mount the right partitions, and then upgrading the new
> > one.
>
> Copy the system to the new partition.
> Edit fstab in the new partition.
> Boot into the new partition from grub command line.
> Type 'c' at the boot menu to get a grub prompt.
> Example: (Edit as needed. Drives count from zero, partitions count from one.)
>     set root=(hd0,msdos3)
>     linux /vmlinuz ro root=/dev/sda3
>     initrd /initrd.img
>     boot

>
> Then when you're in the new system, run
>     grub-install /dev/sda
>     update-grub

>
> This will put the system on the new partition in charge of booting and
> will generat a new menu. It should also make a boot entry for the
> old system.


Do I understand correctly that grub-install will scan my only hard
drive looking for (at least) bootable Linux systems? And that as a
result, running grub-install on the old system will detect both and
create a grub menu that contains both?

(of course, using the grub files on the old system, which I'd better
not delete if I still want to boot)

-- hendrik


>
> fsmithred
>
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng