Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Linux fails to mount partitions on boot

Posted on 2011-05-12
5
Medium Priority
?
618 Views
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)

0
Comment
Question by:fmrifadmin
  • 3
  • 2
5 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 35750317
Please issue these commands

df -hT

mount


cat /etc/fstab
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35750346
Also tell me what happens when you issue this command

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

Expert Comment

by:farzanj
ID: 35750370
Also show the output of the command
e2label /dev/cciss/c1d1p1
0
 

Accepted Solution

by:
fmrifadmin earned 0 total points
ID: 36271628
turns out to be flaky hardware that is so inconsistent. May point to flaky RAID controller.
0
 

Author Closing Comment

by:fmrifadmin
ID: 36293583
took a while to figure out on its own
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

810 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