LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-17-2007, 08:59 PM   #1
Spearhead40
Member
 
Registered: Aug 2006
Location: Baltimore, MD
Distribution: Kubuntu 10.04
Posts: 48

Rep: Reputation: 15
Question 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
 
Old 12-17-2007, 09:50 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 46
I think I remember that fstab needed a final carriage-return at the end of the last line.
 
Old 12-17-2007, 09:51 PM   #3
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
Line 11. /dev/sdb2 /home ext3 defaults, errors=remount=rw 0 1

No space between options, just a comma.
 
Old 12-17-2007, 11:17 PM   #4
Spearhead40
Member
 
Registered: Aug 2006
Location: Baltimore, MD
Distribution: Kubuntu 10.04
Posts: 48

Original Poster
Rep: Reputation: 15
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-17-2007 at 11:20 PM. Reason: formatting
 
Old 12-18-2007, 06:53 AM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
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 06:57 AM.
 
Old 12-18-2007, 07:50 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,899

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
You have a syntax error. Look at the man pages for the correct syntax for the errors options.
 
  


Reply

Tags
fstab, kubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
etc/fstab error randy1970 Linux - Newbie 2 04-21-2006 11:57 AM
fstab error in Core 4 UsrnameThatsNotInUse Fedora 3 08-12-2005 02:27 AM
fstab Error RJDavison Fedora 2 07-12-2004 04:03 AM
FSTAB / Permission Denied Error clearh20 Linux - Newbie 5 06-10-2003 12:43 AM
/etc/fstab error - RH9 blackx Linux - Newbie 1 05-26-2003 12:01 PM


All times are GMT -5. The time now is 02:13 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration