On Wed, 2025-10-01 at 12:59 -0500, Roger Heflin wrote:
> Does "a disk drive from a defunct CentOS-7 system was mounted. "
> include physically cabling the drive in and/or connecting the given
> drive or just mounting a disk device that has been there the entire
> time?
> 
> If you physically added a another disk it may be booting from the
> wrong disk and/or the added disk may be confusing grub in some manner
> because it is an earlier device than the real boot disk.

If you do that kind of thing; have a removeable drive plugged into a
motherboard SATA port, that's not meant to ever be the boot drive.

e.g. You temporarily plug in drives to rescue things, rather than doing
drive hardware swapping for dual/triple/quadruple OS booting reasons.

Then you might want to do this:  Open up the case and ensure that your
main drive is plugged into the first SATA port, and other drives are
connected to higher number ports.  Check the motherboard manual if the
ports don't have obvious labelling on them.

Most motherboards apply a ranking to their ports, and you always want
your boot drive to be /dev/sda (for instance) and the next drive to be
/dev/sdb (for example).

And while many motherboards allow you to change the boot drive via a
menu, the results of that are not always as straight-forward as you
might think.  Especially when some drives come and go.

This can also be seen when you boot from optical media or a USB flash
drive, it (probably) becomes /dev/sda and your normal drive changes its
device name to /dev/sdb.  More so with USB drive booting than optical
drive booting (they tend to get a different device naming scheme).

You have to remember to take that into account if you're booting from
other media to fix something up.  Such as when you're editing
/etc/fstab, or using commands (such as GRUB utilities) that refer to
drives by device names rather than volume labels or UUIDs.

This is one issue where booting from the rescue kernel on your boot
drive can be extra helpful, rather than booting from a live image on
something else.  Your drive device name allocations will (most likely)
be the same as normal.

-- 
 
uname -rsvp
Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
(yes, this is the output from uname for this PC when I posted)
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 

-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to