Linux fails to mount partitions on boot

Posted on 2011-05-12
Last Modified: 2012-05-11
OK weird scenario here. We have a machine that have been mounting a partition under the device id of /dev/cciss/c1d1p1 (it's own drive and separate partition from the rest of the system drive and/or boot drive). this gets mounted to /opt/imsdb as denoted in the /etc/fstab.

After an unknown cause, the /opt/imsdb partition no longer mounts and the system will drop you to a shell before getting a chance to boot.

After entering rescue mode I type "mount -n -o remount,rw /" to make the filesystem read/writable.

After in r/w mode I edit the fstab and comment out the bad partition /dev/cciss/c1d1p1 /opt/imsdb.

After this I save the fstab and reboot and everything boots up fine.

I go in to remount the /dev/cciss/c1d1p1 partition and it does not recognize the device at all.

After some testing I find that running "partprobe" re-probes the partition table and discovers the drive and it is now OK to mount the drive again but only after running the following commands:

#e2label /dev/cciss/c1d1p1 /opt/imsdb
#mount /dev/cciss/c1d1p1 /opt/imsdb

Then everything works perfectly fine. BUT...

We need this to work as it should using the /etc/fstab. So I tried to add the commands to the rc.local so it does all of this on boot.

basically, after all of this, it boils down to partprobe needs to be run before the system tries to mount partitions from the /etc/fstab. Is there a way to do this? If not, any recommendations such as kernel updates or system patches, etc (not recommended for this scenario though)

Question by:fmrifadmin
    LVL 31

    Expert Comment

    Please issue these commands

    df -hT


    cat /etc/fstab
    LVL 31

    Expert Comment

    Also tell me what happens when you issue this command

    mount -o remount,rw -L /opt/imsdb /opt/imsdb
    LVL 31

    Expert Comment

    Also show the output of the command
    e2label /dev/cciss/c1d1p1

    Accepted Solution

    turns out to be flaky hardware that is so inconsistent. May point to flaky RAID controller.

    Author Closing Comment

    took a while to figure out on its own

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video discusses moving either the default database or any database to a new volume.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now