You are not logged in.
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
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
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
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
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
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
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
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