Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-17-2007, 09:59 PM
|
#1
|
Member
Registered: Aug 2006
Location: Baltimore, MD
Distribution: Fedora 20
Posts: 51
Rep:
|
Error is fstab but don't know what.
Months ago I modified my etc/fstab file to account for a second harddrive. Got busy, never linked up the second drive to put a new /home directory onto.
But today I went to unmount my cdrom and got an error that stated there was and error in line 11 of the fstab. Not sure at this point if I simply left something incomplete or not. My fstab file is below.
If anyone could either tell me why it is improperly configured or where I can go find a proper configuration template.... I would appreciate it.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=7f8817ee-08e9-454c-b82f-4102d8f53e0a / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=791f399a-4b89-4587-aef9-a4dc64c5632b none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
/dev/sdb2 /home ext3 defaults, errors=remount=rw 0 1
|
|
|
12-17-2007, 10:50 PM
|
#2
|
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142
Rep:
|
I think I remember that fstab needed a final carriage-return at the end of the last line.
|
|
|
12-17-2007, 10:51 PM
|
#3
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
Line 11. /dev/sdb2 /home ext3 defaults, errors=remount=rw 0 1
No space between options, just a comma.
|
|
|
12-18-2007, 12:17 AM
|
#4
|
Member
Registered: Aug 2006
Location: Baltimore, MD
Distribution: Fedora 20
Posts: 51
Original Poster
Rep:
|
Simon,
I haven't tried the your suggestion yet but I started poking around and found a mini fstab lesson in wikipedia. Based on that, would the following configuration be a better option? Also, two questions:
1. sdb2 doesn't have a UUID -- how do a get/make one? Is one necessary?
2. I want to put /home on sdb2, I noticed in the example on wikipedia that the dump/pass settings for the two drives (hda2 and hdb1) were 1 1 and 1 2 -- should mine be the same? Or would 0 1 and 0 2 work?
# <file system> <mount point> <type> <options> <dump> <pass>
#Drives
# /dev/sda1
UUID=7f8817ee-08e9-454c-b82f-4102d8f53e0a / ext3 defaults,errors=remount-ro 0 1
# /dev/sdb2
/dev/sdb2 /home ext3 defaults, errors=remount=rw 0 2
#Media
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
#Proc
proc /proc proc defaults 0 0
#Swap
# /dev/sda5
UUID=791f399a-4b89-4587-aef9-a4dc64c5632b none swap sw 0 0
Last edited by Spearhead40; 12-18-2007 at 12:20 AM.
Reason: formatting
|
|
|
12-18-2007, 07:53 AM
|
#5
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
Quote:
sdb2 doesn't have a UUID -- how do a get/make one? Is one necessary?
|
a. man uuidgen, man tune2fs (see -U option)
b. no...
See discussion:
http://ubuntuforums.org/showthread.php?t=326871
Quote:
I want to put /home on sdb2, I noticed in the example on wikipedia that the dump/pass settings for the two drives (hda2 and hdb1) were 1 1 and 1 2 -- should mine be the same? Or would 0 1 and 0 2 work?
|
a. to dump or not to dump, that is the question. The Loan Ranger used to ponder this one.
b. yes
The fifth and sixth feilds are fs-freq and fs-passno.
fs-freq=0 just means there's no need to dump(8) it.
Quote:
would the following [fstab]configuration be a better option?
|
No. It contains the same error as before. Also, proc should be first. Then root, then swap.
The order of records in fstab is important...
-- FSTAB(5) Linux Programmer’s Manual
swap can be last, but it is tidier to put it before non-uuid entries.
Last edited by Simon Bridge; 12-18-2007 at 07:57 AM.
|
|
|
12-18-2007, 08:50 AM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,470
|
You have a syntax error. Look at the man pages for the correct syntax for the errors options.
|
|
|
All times are GMT -5. The time now is 05:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|