Bug 185835 - Bind mounts listed in /etc/fstab confuse anaconda and cause upgrades to fail
Summary: Bind mounts listed in /etc/fstab confuse anaconda and cause upgrades to fail
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-19 08:25 UTC by Nicholas Miell
Modified: 2008-08-02 23:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-03 14:35:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Anaconda log (13.09 KB, text/plain)
2006-03-29 22:14 UTC, Nicholas Miell
no flags Details

Description Nicholas Miell 2006-03-19 08:25:01 UTC
If there are any bind mounts listed in /etc/fstab,
anaconda gives the following error message:

"Error mounting device /mnt/storage/nicholas/media as /home/nicholas/media: No
such file or directory.

This most likely means this partition has not been formatted.

Press OK to reboot your system."

The fstab line which caused this error was:
/mnt/storage/nicholas/media /home/nicholas/media auto bind 0 0

Comment 1 Chris Lumens 2006-03-20 21:35:43 UTC
What is the actual type of the filesystem you're trying to bind mount?

Comment 2 Nicholas Miell 2006-03-21 00:46:25 UTC
ext3. That shouldn't matter, though, for a bind mount.

Perhaps anaconda isn't mounting filesystems listed in /etc/fstab in order? Or
maybe it's treating the bind keyword as an option to be passed to the filesystem
instead of an indication to set the MS_BIND flag?

The full /etc/fstab is:

/dev/System/Root        /               ext3    user_xattr,acl,defaults 1 1
LABEL=/boot             /boot           ext3    defaults        1 2
/dev/Storage/Media      /mnt/storage    ext3    user_xattr,acl,defaults 1 1
none                    /dev/pts        devpts  gid=5,mode=620  0 0
none                    /dev/shm        tmpfs   defaults        0 0
none                    /proc           proc    defaults        0 0
none                    /sys            sysfs   defaults        0 0
/dev/System/Swap        swap            swap    defaults        0 0
/mnt/storage/nicholas/media /home/nicholas/media auto bind 0 0
/mnt/storage/nicholas/stuff /home/nicholas/stuff auto bind 0 0


Comment 3 Chris Lumens 2006-03-28 22:07:40 UTC
When it hits the error message, can you switch over to tty2 and copy
/tmp/anaconda.log somewhere useful so you can attach it to this bug report? 
That should have something helpful in it.  My initial attempt to reproduce this
didn't show the bug, so I'll need to dig a little deeper.

If you comment out the first bind mount, does the second one work?

Comment 4 Nicholas Miell 2006-03-29 22:14:15 UTC
Created attachment 127025 [details]
Anaconda log

It looks like Anaconda never mounted /mnt/storage (and the output of the mount
command confirms this), which means that /mnt/storage/nicholas/{media,stuff}
don't exist and can't be bind mounted to /home/nicholas/{media,stuff}.

Comment 5 Nicholas Miell 2006-03-29 22:15:57 UTC
Hmm. Apparently attaching things to bugs doesn't kick it from NEEDINFO_REPORTER
to UNCONFIRMED. So here's a comment to do that.

Comment 6 Paul Howarth 2006-05-10 09:57:54 UTC
Is anaconda clever enough to remap /mnt/storage/nicholas/media to
/mnt/sysimage/mnt/storage/nicholas/media for bind mounts?

Comment 7 Paul Howarth 2006-05-10 15:17:18 UTC
(In reply to comment #5)
> Hmm. Apparently attaching things to bugs doesn't kick it from NEEDINFO_REPORTER
> to UNCONFIRMED. So here's a comment to do that.

Checking the "I am providing the requested information for this bug" box may be
what's needed, so I'll try that for you.

Comment 8 Nicholas Miell 2006-05-10 20:09:31 UTC
Whoops, never saw that checkbox. I'll try it too, the more the merrier.

Comment 9 Nicholas Miell 2006-05-17 06:42:48 UTC
Trying again...

Comment 10 Chris Lumens 2006-10-03 14:35:55 UTC
Closing due to lack of updates.  Please try again with FC6 and reopen this bug
if you are still seeing problems.

Comment 11 Paul Howarth 2006-10-03 14:48:33 UTC
(In reply to comment #10)
> Closing due to lack of updates.  Please try again with FC6 and reopen this bug
> if you are still seeing problems.

Lack of updates? Is the attachment in Comment #4 not what you asked for?

Comment 12 Chris Lumens 2006-10-03 14:52:17 UTC
I was closing due to the amount of time that has passed since comment #9, which
I took to mean that Nicholas was trying to reproduce it again.  If this is still
happening, feel free to reopen the bug.  Testing with FC6 would be especially
appreciated.

Comment 13 Paul Howarth 2006-10-03 15:16:58 UTC
OK; I have some bind-mounted ISO images on one of my machines. For FC5 I
commented them out of fstab prior to doing the upgrade. I'll give the FC6
upgrade a go without doing this to see what happens.

Comment 14 Nicholas Miell 2006-10-03 23:41:13 UTC
Comment #9 was in reference to this bug not transitioning out of NEEDINFO state
despite my reply and the checking of the "This responses contains the requested
information" checkbox. i.e. I was talking trying to get bugzilla to work, not
Anaconda (which was definitely still broken).


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