Fsck on boot / mount, but don't fail if not available

General support questions
Post Reply
smithgcovert2
Posts: 2
Joined: 2015/07/31 13:28:28

Fsck on boot / mount, but don't fail if not available

Post by smithgcovert2 » 2015/07/31 13:36:36

Hi,

I have some USB drives in a volume group attached to my CentOS 6 server. Every time I boot, I'm getting a ton of messages saying that my drives need fsck'ing -- number of mounts reached, time since last fsck reached, etc.

I'm having a tough time figuring out what options to use in my fstab that will allow me to: 1) fsck if its needed, but 2) don't stop booting and fail if the drive is not there.

Here's my fstab line:
/dev/usbvg/tmbackup1vm /mnt/usbvg/tmbackup1 ext4 defaults 0 0

If I set the last 2 values to "1 2", then the drive will fsck on boot -- but, if for some reason my usb drive is not attached, then instead of continuing on, the boot process just halts and asks if I want to go into single user mode.

There's got to be some set of options that will fsck if needed, but skip if the drive isn't there. Probably something to replace the "defaults" -- but I tried several without getting what I want.

Any suggestions?

Thanks,
Greg

smithgcovert2
Posts: 2
Joined: 2015/07/31 13:28:28

Re: Fsck on boot / mount, but don't fail if not available

Post by smithgcovert2 » 2015/07/31 15:15:32

Sorry -- posted in Centos 7 forum when I intended to put in Centos 6. Apologies.

[Moved to CentOS 6 - General Support forum.]

Post Reply