You are not logged in.

#1 2009-02-27 23:07:06

michaelks
Member
Registered: 2009-01-26
Posts: 68

fstab entry for a removable disk -> filesystem check error [SOLVED]

I've a removable disk i use for backup that i have an entry for in /etc/fstab like so :

UUID=b28079c6-cb7e-4171-a966-537b59bedf32 /backup ext3 defaults 0 1

However, when the disk is not in its tray, i get a filesystem check error at boot time so i had to comment it out - wonder if this is normal, since i've had this in place for years on slackware without any such problem.

Last edited by michaelks (2009-03-01 21:48:03)

Offline

#2 2009-02-28 01:25:45

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: fstab entry for a removable disk -> filesystem check error [SOLVED]

Change that last field to a 0. That's the "want fsck" field, and a 1 means "yes". Also, I think you want "noauto" rather than plain "defaults".

Offline

#3 2009-02-28 03:54:15

michaelks
Member
Registered: 2009-01-26
Posts: 68

Re: fstab entry for a removable disk -> filesystem check error [SOLVED]

Thanks, i didn't know that. But is there a way i could keep the fsck option for when the disk is present, or will i have to remeber to do it manually every now and then?
Also, i'm confused with respect to 'noauto', since it means 'do not mount at boot time'. What's the point of an entry then ?

Offline

#4 2009-02-28 04:30:17

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: fstab entry for a removable disk -> filesystem check error [SOLVED]

If your disk actually needs a fsck, it will tell you when you try to mount it.

The point of a noauto entry is that you don't have to type as much to mount. Without an entry, you have to tell it where to mount every time. With one, you can just do "mount /backup" and you're good.

Offline

#5 2009-02-28 15:42:57

michaelks
Member
Registered: 2009-01-26
Posts: 68

Re: fstab entry for a removable disk -> filesystem check error [SOLVED]

Thanks again, very useful information (I hope i don't get busted by posting a thank you message though, some forums frown on that, a moderator will tell you such a message is useless. I don't think civility is useless).

Offline

#6 2009-02-28 16:37:49

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: fstab entry for a removable disk -> filesystem check error [SOLVED]

I mount my removable disk in /etc/rc.local:

# Mount Lacie, if available

echo "     Mounting Lacie, if available"
[ -b /dev/sdb1 ] && mount /Lacie

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#7 2009-02-28 17:51:11

michaelks
Member
Registered: 2009-01-26
Posts: 68

Re: fstab entry for a removable disk -> filesystem check error [SOLVED]

I have three permanent disks plus the removable one, so i'm never sure what they'll be called - the root disk moreover usually gets the last letter, so it's sdc when the removable isn't in, sdd otherwise. Maybe i could use this code (although i haven't the foggiest idea of what it means) with uuid like so ?:

# Mount backup, if available

echo "     Mounting backup, if available"
[ -b /dev/disk-by-uuid/b28079c6-cb7e-4171-a966-537b59bedf32 ] && mount /backup

Offline

#8 2009-02-28 18:21:51

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: fstab entry for a removable disk -> filesystem check error [SOLVED]

michaelks wrote:

I have three permanent disks plus the removable one, so i'm never sure what they'll be called - the root disk moreover usually gets the last letter, so it's sdc when the removable isn't in, sdd otherwise. Maybe i could use this code (although i haven't the foggiest idea of what it means) with uuid like so ?:

# Mount backup, if available

echo "     Mounting backup, if available"
[ -b /dev/disk-by-uuid/b28079c6-cb7e-4171-a966-537b59bedf32 ] && mount /backup

Looks fine to me.

Offline

Board footer

Powered by FluxBB