LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-26-2011, 09:02 PM   #1
Tripsun
LQ Newbie
 
Registered: Jan 2011
Distribution: Arch Linux
Posts: 22

Rep: Reputation: 0
Fstab accidentally altered - does this now look acceptable?


Hi,
my /etc/fstab was inadvertently altered and I had to recreate most of it from memory. I am able to boot into my system so this "works" but I do not believe it was identical to my prior version or if someone has any suggestions for improvements to the options. I am sure all of the partitions are correctly linked to the entry (I had a list of it from my install):

Code:
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

/dev/sda6 /boot ext3 defaults,noatime 0 1
/dev/sda10 swap swap defaults,noatime 0 0
/dev/sda3 / ext3 defaults,noatime 0 1
/dev/sda7 /home ext3 defaults,noatime 0 1
/dev/sda8 /usr ext3 defaults,noatime 0 1
/dev/sda9 /tmp ext3 defaults,noatime 0 1
/dev/sda5 /var reiserfs defaults,noatime 0 1
Thank you a lot!

Last edited by Tripsun; 03-26-2011 at 09:04 PM.
 
Old 03-26-2011, 09:07 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
I would change the options in the swap partition to "sw".
Also, unless you have a good reason, I'd suggest removing
the "noatime" option.

My guess is that you don't use dump to backup your system,
so keeping 0 for the dump option shouldn't be a problem.

Are you able to see files and directories in all of your
filesystems? Also, does the output of "free" show that
your swap space is in use?
 
Old 03-26-2011, 09:23 PM   #3
Tripsun
LQ Newbie
 
Registered: Jan 2011
Distribution: Arch Linux
Posts: 22

Original Poster
Rep: Reputation: 0
So you mean like this:

Code:
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

/dev/sda6 /boot ext3 defaults 0 1
/dev/sda10 swap swap sw 0 0
/dev/sda3 / ext3 defaults 0 1
/dev/sda7 /home ext3 defaults 0 1
/dev/sda8 /usr ext3 defaults 0 1
/dev/sda9 /tmp ext3 defaults 0 1
/dev/sda5 /var reiserfs defaults 0 1
I added the noatime after reading a suggestion to do so somewhere (I did some brief research on noatime v relatime), but I am quite inexperienced with linux (and don't fully understand the implications).

Here is the output of #free:

Code:
             total       used       free     shared    buffers     cached
Mem:       6085060     473792    5611268          0      11404     139992
-/+ buffers/cache:     322396    5762664
Swap:      3903756          0    3903756
 
Old 03-26-2011, 09:32 PM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Yes, what you have looks good. It shows that you have about 4 GB of
swap space.

Incidentally, the noatime option can speed up disk access slightly
at the cost of losing information about when a file was last accessed.
My rule of thumb is to go with the defaults unless you have a very
good reason to change it.
 
Old 03-27-2011, 02:37 PM   #5
Tripsun
LQ Newbie
 
Registered: Jan 2011
Distribution: Arch Linux
Posts: 22

Original Poster
Rep: Reputation: 0
Well I have looked at a few places and it seems that noatime is advisable for laptops. Here is an updated version after a bit of searching, how does it look:

Code:
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

/dev/sda5 /boot ext3 defaults,noatime 0 2 
/dev/sda10 swap swap defaults 0 0
/dev/sda3 / ext3 defaults,noatime,errors=remount-ro 0 1
/dev/sda8 /home ext3 defaults,noatime,nosuid,nodev,errors=remount-ro 0 2
/dev/sda9 /usr ext3 defaults,noatime,nodev,errors=remount-ro 0 2
/dev/sda7 /tmp ext3 defaults,noatime,nodev,nosuid,noexec 0 2
/dev/sda6 /var reiserfs defaults,noatime,nodev,nosuid,noexec,barrier=flush 0 2
 
  


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
How is Linux altered to run as a live CD? Ramune Linux - General 5 04-24-2009 11:30 PM
use apt-get to check for altered files? leapy Linux - Security 4 08-05-2007 05:41 PM
Gnome altered permissions in /dev Ovalteen Linux - Software 3 03-23-2005 05:38 AM
XF86Config-4 altered after reboot (no glx) Cyrus XIII Mandriva 2 12-02-2004 03:46 AM
anyone have an un-altered smb.conf file? Zaius Linux - Newbie 3 01-13-2004 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:17 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