View Single Post
  #25 (permalink)  
Old 5th March, 2013, 07:01 AM
ThunderRd's Avatar
ThunderRd ThunderRd is offline
Irreverent Query Chairman
 
Join Date: June 2007
Location: NYC native in northern Thailand
Posts: 2,241

OK.

First, you have to open a root file manager. BE VERY CAREFUL.
Type Alt-F2, and then type
Code:
gksu name_of_your_file_manager
[I don't know it, nemo or nautilus, or whatever it is]
If Alt-F2 does not work in your distro, you can open a terminal, su to root, and start your file manager from there.
You will be asked for your root password. Enter it, and:

1. go to your fstab and rename it fstab.old[this backs up your old one just in case]

2. create an empty file in /etc, and name it fstab

3. paste the content of this window that I edited for you into it and save it:

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=09a6e84f-7267-4640-9d9e-a746a95e5507 / ext4 errors=remount-ro,noatime,nodiratime,discard 0 1
# swap was on /dev/sda5 during installation
UUID=c4f836ea-24a4-4254-a852-37feb4531e33 none swap sw 0 0
/dev/sr0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
4. close the file manager
5. reboot the machine [you can't re-mount the root partition manually]

The 'discard' option turns on the 'trim' function. The 'noatime' and 'nodiratime' will decrease the number of small writes to the SSD of last access times, which is good for its health [you won't miss not having that information]

For a comparison, here's what my fstab looks like. You'll see I've made some notes for myself and formatted it to make it a bit more readable. The ext4 partitions on the SSD both have the same options that I've put in your fstab. Note that the ext2 /boot partition, and the swap partition do not get the options:
Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't needed; notail increases performance of ReiserFS (at the expense of 
# storage efficiency).  It's safe to drop the noatime options if you want and to switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

## <fs>						<mountpoint>	<type>		<opts>		    		<dump/pass>
###########################################################################################################################
proc						/proc		proc		defaults				0 0

shm						/dev/shm	tmpfs		nodev,nosuid,noexec			0 0

portage_tmp				/var/tmp/portage	tmpfs		nodev,nosuid,size=3G			0 0		

## GENTOO SYSTEM #########################################

# (128GB SSD: 4 partitions)
UUID=d532e93f-5922-45f4-967d-6d351770f0dc	/boot		ext2		noatime,noauto				1 1

UUID=3816efab-17dc-4800-b172-5588ef9937d6	none		swap		sw					0 0

UUID=7b82fe5b-f286-46fe-b69d-7c4c19acec4d	/home		ext4		noatime,nodiratime,discard		0 2

UUID=2f2093e4-d2cc-431f-969d-6b51831ff39f	/		ext4	        noatime,nodiratime,discard		0 1

##########################################################

## perhaps not needed in xfce now that thunar/udev take care of mounting
/dev/sr0					/mnt/cdrom	auto		noauto,user				0 0
#/dev/fd0					/mnt/floppy	auto		noauto					0 0


## OTHER STORAGE #########################################

#(500GB SATA:WD BLACK)
UUID=970cd945-38a7-4929-97a0-04592805ecd7    /mnt/ext3_REPO	   ext3		noatime					0 2

#(500GB SATA:HITACHI)
UUID=88d85880-09c9-47db-81c6-99a15a8e59de    /mnt/ext3_STORAGE     ext3		noatime					0 2

#(750GB SATA:WD BLACK)
UUID=e5b45eea-288e-4732-bf56-b84bb15e2334    /mnt/ext3_STORAGE2    ext3		noatime					0 2

#(500GB SATA:HITACHI)
UUID=254d4b1f-26a7-49e7-a161-29100be83add    /mnt/ext3_STORAGE3    ext3		noatime					0 2	

#(40GB aptosid)
UUID=398f0e4f-f106-4c06-a55a-545874d3d00c    /mnt/aptosid-home     ext4		noauto,noatime				0 0

#(40GB aptosid)
UUID=e0d40967-7e27-4be5-8b08-8677abfe9e17    /mnt/aptosid-system   ext4		noauto,noatime				0 0

## END LOCAL MOUNTS ####################################### 

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for POSIX shared memory (shm_open, shm_unlink).
# tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no memory if not populated with files
__________________
#1: Tt Armor, ASUS Maximus Extreme, QX9650@4.1G, 8G Corsair Dominator GT DDR3-2000, Corsair HX1050, H2O-Swiftech, Gigabyte GTX470/Arctic Accelero Xtreme Plus II, Intel 520 SSD, Kingston SSD, 2xRaptor 150G RAID0, Win 7 Pro 64
#2: Tt Shark, ASUS P5Q Pro Turbo, Q6600@3.8G, 4G HyperX-1600, Corsair HX850, CoolerMaster V10, 2xASUS 9600GT, 2xRaptor 74G RAID0, OCZ Vertex 4 SSD, Gentoo/siduction Linux [64-bit]
#3, #4: Opteron 170@2.75G nude, A8N-SLI Deluxe, Gentoo

AOA Folding @HomeOur sister site: www.gamersonlinux.com

Last edited by ThunderRd; 5th March, 2013 at 09:59 AM.
Reply With Quote