LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2011, 09:38 PM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
what's wrong with my fstab


Hi guys, i installed the latest kubuntu recently on one of my partitions to see how i'd like it. I forgot to set mount points for my other partitions during the installation so i edited the fstab once the install was complete. Once i edited and rebooted, it fails, so obviously i've made an error with the fstab, but what; here is my fstab.
Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda7 during installation
UUID=2bccd1f0-6811-41af-9f27-fca0ee01b3bf /               ext4    errors=remoun$
# /media/sda3 was on /dev/sda3 during installation
UUID=124241aa-ae29-440d-9918-65fc504a0420 /media/sda3     ext4    defaults        0       2
# /home/klaye/data was on /dev/sda5 during installation
UUID=817ab057-ba80-467b-aefe-d66fd32911cb /home/klaye/data ext4    defaults        0       2
# /media/grub was on /dev/sda1 during installation
UUID=d552e4f8-efc0-44db-ba25-4fc387587e05 /media/grub     ext3    defaults        0       2
# /media/sda4 was on /dev/sda4 during installation
#UUID=462e9b9b-815f-47da-8fa6-988842c54d99 /media/sda4    ext4    defaults        0       2
# swap was on /dev/sda6 during installation
UUID=42a9b895-2bf5-4286-ab96-9243a11e02cd none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
kubuntu is installed at sda7.
 
Old 12-27-2011, 10:06 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The entry for your root partition looks garbled.
From the mount man page:
errors={continue|remount-ro|panic}

It looks like it should be remount-ro.

Create system directories in the root directories and change the mount points in /etc/fstab to use them. Only removable media should be automounted under /media. E.G. /media/grub. The /media/sda3 and /media/sda4 directories should be given more descriptive names and mounted were they would best be used, and who accesses them.

For example, if /dev/sda3 contains videos, that are private and owned by you, /home/klaye/Videos/ would be a logical place to mount it.
 
1 members found this post helpful.
Old 12-27-2011, 11:56 PM   #3
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Thanks jschiwal, i haven't tried your solution yet because my computer is almost flat, and i only have enough time to quickly check the internet, but tonight once my computer's charged i will give it a shot; you're probably right since all i did was copy one of my other fstabs and edit a couple of things and i probably didn't copy it all by the looks of things, now you've pointed that out. Thanks for the tip about /media, but i do that for a reason. I like to have a 'computer' icon on my desktop, like on gnome2, but kde doesn't have this feature, so i mount all my partitions in media, and make a symlink of media onto my desktop with a custom icon and named Computer.
 
Old 12-28-2011, 01:09 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I'd reckon that "$" is line continuation indicator - nano and the like.

Personally I'd restore from the backup you no doubt have, but a simple fstab of just the root should get you up. Especially in single user/recovery/whatever mode.
 
Old 12-28-2011, 05:14 AM   #5
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
All good now, thanks for the help guys.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wrong entries in FSTAB shahidmgh Red Hat 9 07-18-2010 11:29 PM
FC5 - Wrong with /etc/fstab quartslove Fedora 5 12-01-2006 02:05 AM
Whats wrong with this line of fstab Boffy Linux - General 4 02-25-2005 04:32 PM
what is wrong with this /etc/fstab entry? d1l2w3 Linux - Hardware 10 01-31-2005 11:15 PM
fstab error in line 11, what's wrong? EPa Linux - Networking 4 03-06-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 AM.

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
Open Source Consulting | Domain Registration