• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 634
  • Last Modified:

Linux fails to mount partitions on boot

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
fmrifadmin
Asked:
fmrifadmin
  • 3
  • 2
1 Solution
 
farzanjCommented:
Please issue these commands

df -hT

mount


cat /etc/fstab
0
 
farzanjCommented:
Also tell me what happens when you issue this command

mount -o remount,rw -L /opt/imsdb /opt/imsdb
0
 
farzanjCommented:
Also show the output of the command
e2label /dev/cciss/c1d1p1
0
 
fmrifadminAuthor Commented:
turns out to be flaky hardware that is so inconsistent. May point to flaky RAID controller.
0
 
fmrifadminAuthor Commented:
took a while to figure out on its own
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now