LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-23-2011, 10:35 AM   #1
Sweyn78
Member
 
Registered: Jul 2011
Location: Tallahassee, Florida
Distribution: Kubuntu 12.10
Posts: 43

Rep: Reputation: Disabled
Post Getting fstab to work...


Hello! I just installed Fedora 15 and am editing the fstab file. I have a good idea of what I want from it, and I used the man pages to figure-out what to put. However, it always gets an error that prevents Fedora from starting-up. Nothing big; I can always change the fstab file from a live CD. The thing is, though, that I don't know what all is causing the problem, and I was hoping someone on LQ would.
Here is my fstab:
Code:
#
# /etc/fstab
# Created by Sweyn78 on Sun Oct 23 07:46:11 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=b364b5ca-404d-4139-b804-5b7e10d30ea3    /           ext4        defaults,acl,sync,dirsync,relatime,user_xattr,data=jounrnal                                           1    1 
UUID=9d74ca24-e157-485f-88e7-1872339d40ef    /boot       ext2        defaults,acl,relatime                                                                                 1    2 
/dev/sdb2                                    /tmp        reiserfs    defaults,noexec,nosuid,async,nolog,hash=rupasov,noatime,nodiratime,notail,noborder                    0    0  
UUID=c565f04c-e247-4868-bde9-d988ecd7c2d1    /home	 xfs         defaults,acl,sync,dirsync,relatime,user_xattr                                                         1    2 
/dev/sda3                                    swap        swap        defaults,pri=1                                                                                        0    0 
/dev/sdb6                                    swap        swap        defaults,pri=2                                                                                        0    0 
tmpfs                                        /dev/shm    tmpfs       defaults                                                                                              0    0 
devpts                                       /dev/pts    devpts      gid=5,mode=620                                                                                        0    0 
sysfs                                        /sys        sysfs       defaults                                                                                              0    0 
proc                                         /proc       proc        defaults                                                                                              0    0 
/dev/sda2                                    /windows    ntfs        defaults,utf8,posix=0                                                                                 1    2
Once all the problems are worked-out, I'll add errors=remount-ro; I just don't want to do so before I know that there are no errors.

Thanks greatly in advance!

Last edited by Sweyn78; 10-23-2011 at 10:42 AM. Reason: I hope this helps others who are having the same problem! :)
 
Old 10-23-2011, 10:50 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,245

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
First, no one known how your disk looks, so "fdisk -l" and "ls -l /dev/disk/by-uuid" will help us. Also you should post your error and logs from booting here. Second I see small error in your root mount "data=jounrnal" - should be "journal".

Last edited by eSelix; 10-23-2011 at 10:52 AM.
 
1 members found this post helpful.
Old 10-23-2011, 11:19 AM   #3
Sweyn78
Member
 
Registered: Jul 2011
Location: Tallahassee, Florida
Distribution: Kubuntu 12.10
Posts: 43

Original Poster
Rep: Reputation: Disabled
Thumbs up Ah, Okay...

Quote:
Originally Posted by eSelix View Post
First, no one known how your disk looks, so "fdisk -l" and "ls -l /dev/disk/by-uuid" will help us. Also you should post your error and logs from booting here. Second I see small error in your root mount "data=jounrnal" - should be "journal".
Bah, I would have missed a typo. I could have sworn I'd fixed them all...

Here's the output for those commands:
Code:
root@PartedMagic:~# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00046dfb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848  1937213439   968503296    7  HPFS/NTFS/exFAT
/dev/sda3      1937213440  1953523711     8155136   82  Linux swap

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000bdff2

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63     1028159      514048+  83  Linux
/dev/sdb2         1028160     7164989     3068415   83  Linux
/dev/sdb3         7164990    68597549    30716280   83  Linux
/dev/sdb4        68597550   625142447   278272449    5  Extended
/dev/sdb5        68597613   616751414   274076901   83  Linux
/dev/sdb6       616753463   625142447     4194492+  82  Linux swap
root@PartedMagic:~# ls -l
total 1
drwxr-xr-x    2 root     root           175 Apr 26 16:14 Desktop/
drwxr-xr-x    2 root     root             3 Oct  4  2008 Network_Settings/
drwxr-xr-x    2 root     root            99 Mar 21  2011 clamav/
lrwxrwxrwx    1 root     root             6 Apr 25 03:05 media -> /media/
-rw-r--r--    1 root     root           804 Jan 23  2011 readme.txt
I'm going to fix that typo and see if it works now.

EDIT: It still isn't mounting everything, but it went to emergency mode (it didn't before) and my root password worked, so I'll assume that the / partition was mounted successfully (though, I could be wrong).

Last edited by Sweyn78; 10-23-2011 at 11:32 AM. Reason: To give results.
 
Old 10-23-2011, 11:57 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,245

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
If you have emergency mode check your /etc/fstab if it is yours and then type
Code:
mount -av
You should get errors on the screen.

Last edited by eSelix; 10-23-2011 at 11:59 AM.
 
1 members found this post helpful.
Old 10-23-2011, 12:13 PM   #5
Sweyn78
Member
 
Registered: Jul 2011
Location: Tallahassee, Florida
Distribution: Kubuntu 12.10
Posts: 43

Original Poster
Rep: Reputation: Disabled
Arrow

Quote:
Originally Posted by eSelix View Post
If you have emergency mode check your /etc/fstab if it is yours and then type
Code:
mount -av
You should get errors on the screen.
Alright, I've booted-up into emergency-mode. I pressed control+D, and it said that BOOT was clean (per fsck); it encountered problems upon trying to mount the XFS (/home).
I then entered your suggestion, got some errors recommending me to type-in "dmesg | tail", and followed the error-messages' advice.

Here are the problems all that gave me:

hash=rupasov is an unknown mount-option
acl is an unknown mount-option for XFS
tmp.mount entered a failed state,

The general consensus amongst the errors is that the XFS is the biggest problem. I'll go attempt to fix this now.
____________________________________________________________________________________________________

I've made some changes to fstab. It's now saying that sdb2/5 are having problems.
sdb2: it wouldn't specify the problem.
sdb5: user_xattr is unknown mount-option
I'll correct them.
____________________________________________________________________________________________________

I've made all the corrections and commented-out the /tmp one. It booted-up just fine. I'm going to try it with /tmp, now...
____________________________________________________________________________________________________

It booted-up with /tmp, but /tmp didn't mount correctly.
At least I don't have to use a live CD anymore. :P

Last edited by Sweyn78; 10-23-2011 at 01:36 PM. Reason: Corrected a typo | Improved quality of information.
 
  


Reply

Tags
boot, error, fedora, fstab


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub+fstab+BSD+Ubuntu (can't get it to work together.) Neo-Leper *BSD 13 07-23-2007 01:15 PM
Fstab does not work in nfs windsurfer Linux - Software 1 04-23-2007 03:33 AM
Having one line in fstab work for many users Wynd Linux - General 3 04-04-2007 01:58 AM
/etc/fstab fails to work ...??? sys7em Slackware 2 10-15-2004 05:21 PM
unhide in fstab doesn't work Peter Torpey Linux - General 2 08-01-2002 05:57 AM


All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration