From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 29 Jan 2024 08:47:51 +0300 From: Michael Shigorin To: TheGrove Message-ID: <20240129054751.GR4332@imap.altlinux.org> References: <02eed1a2-23ac-66a1-daa8-9b22d7fc1c6d@thegrove.in.nf> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <02eed1a2-23ac-66a1-daa8-9b22d7fc1c6d@thegrove.in.nf> User-Agent: Mutt/1.10.1 (2018-07-13) Cc: ALT Linux Subject: Re: [Comm-en] Recover missing boot option in GRUB after upgrade X-BeenThere: community-en@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: "ALT Linux users \(in English only\)" List-Id: "ALT Linux users \(in English only\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2024 05:47:51 -0000 Archived-At: List-Archive: On Sun, Jan 28, 2024 at 11:11:35PM -0600, TheGrove wrote: > Although my main objective was to upgrade to p10, I would still like to > experiment with Sisyphus from time to time.  Is there an easy way for me > to recover the option in GRUB to boot into Sisyphus on /dev/sda5? I'm not a GRUB expert (having not maintained it for many years and never having really loved it), but: 1) is os-prober package installed on "stable" system"? (it *might* be related to non-Linux OS detection in dual-boot, in which case I'd dig for some discussions on "grub multiboot" or "grub dual-root" maybe) 2) there's a Russian ALT wiki page on the topic: http://altlinux.org/Grub#Как_установить/восстановить_загрузочную_запись_grub? "mount-system" is ALT Rescue specific script that basically finds a probable rootfs, mounts it as /mnt/system1 and bind-mounts the virtual FSes there: for i in proc sys dev; do mount --bind $i /mnt/system1/$i; done -- this can perfectly be done by hand from an already running system, of course :-) -- but the recipe results in *that* copy of grub installing its boot record/files/configs, potentially ignoring the other systems like what you observe currently. If these don't help, well, let's think on. PS: do backup *both* of your /boot directories just in case, even if it's a simple "cp -a /boot /root". -- Michael Shigorin http://altlinux.org/elbrus