Bug 448192 - use of fuilesystem labels catastrophic
Summary: use of fuilesystem labels catastrophic
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux-ng
Version: 8
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-24 08:28 UTC by JW
Modified: 2008-11-05 21:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-05 21:50:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description JW 2008-05-24 08:28:30 UTC
Description of problem:
While mounting filesystem using labels avoids the need to locate the specific
device it can easily lead to catastrophic situations.
For example, if one mounts a root filesystem from another system for passive
examination or whatever, this can lead to accidental mounting (and alteration)
of the wrong filesystem. So one has no choice but to alter the filesystem label.

Version-Release number of selected component (if applicable):
setup-2.6.10-1

How reproducible:
Always

Steps to Reproduce:
1. Add an extra disk with root filesystem (with same label, eg /root) from
another system
2. Boot up
3. What will the root filesystem be?
  
Actual results:
Either root filesystem might activate according to some indeterminate rule.


Expected results:
If multiple filesystems with the same label are found the user should be
prompted to select the correct one.

Additional info:

Comment 1 Ondrej Vasik 2008-11-05 14:42:57 UTC
Sorry, that's something what could not be solved by setup and /etc/fstab modification. Although likely will be closed notabug, only place where something like that could be handled is mount utility... and therefore reassigning component to util-linux-ng.

Comment 2 Karel Zak 2008-11-05 21:50:36 UTC
The root filesystem is mounted by nash (initrd). You have to use UUID (also in grub.conf for root FS) if you want to avoid collision between two filesystems -- the recent fedora installer uses this solution.

The way how mount(8) resolving LABEL/UUID is deterministic, higher priority has previously mounted device (according to the /etc/blkid/blkid.tab cache file).

Sorry, but solution which is based on interaction with user is useless.


Note You need to log in before you can comment on or make changes to this bug.