From: Bill Marcum on
["Followup-To:" header set to comp.os.linux.misc.]
On 2010-04-25, The Derfer <derf109(a)gmail.com> wrote:
> If I put another hard disk (an old boot disk with a /, /boot and
> iother partitions) in a
> box that already has an "sda" drive that it boots from (bootloader on
> MBR), how
> can I stop the OS from trying to automatically detect and (more
> importantly) mount the
> filesystems on sdb? I tried this recently in Oracle Enterprise Linux
> and got kernel panics;
> the system almost seemed to want to use the "/" partition on sdb
> instead of sda,
> and it complained about non-ext3 filesystems on sdb (which made sense,
> they were xfs)
> that it couldn't mount? How can I tell the system "Don't try to
> mount anything on anything not
> already listed in /etc/fstab"?
>
How are the filesystems listed in fstab? By label or UUID?

From: unruh on
On 2010-04-25, Bill Marcum <bill(a)lat.localnet> wrote:
> ["Followup-To:" header set to comp.os.linux.misc.]
> On 2010-04-25, The Derfer <derf109(a)gmail.com> wrote:
>> If I put another hard disk (an old boot disk with a /, /boot and
>> iother partitions) in a
>> box that already has an "sda" drive that it boots from (bootloader on
>> MBR), how
>> can I stop the OS from trying to automatically detect and (more
>> importantly) mount the
>> filesystems on sdb? I tried this recently in Oracle Enterprise Linux

Make sure there are no entries in /etc/fstab which mount files from
/dev/sdb

>> and got kernel panics;
>> the system almost seemed to want to use the "/" partition on sdb
>> instead of sda,
>> and it complained about non-ext3 filesystems on sdb (which made sense,
>> they were xfs)
>> that it couldn't mount? How can I tell the system "Don't try to
>> mount anything on anything not
>> already listed in /etc/fstab"?

It does not. However what may be happening is that your system thinks
that your sdb is actually sda.

Look in dmesg (assuming you can get it to boot)



>>
> How are the filesystems listed in fstab? By label or UUID?
>