View Single Post
  #40 (permalink)  
Old 7th March, 2013, 09:19 PM
Daniel ~'s Avatar
Daniel ~ Daniel ~ is offline
Chief BBS Administrator
 
Join Date: September 2001
Location: Seattle Wa.
Posts: 45,606

Quote:
Originally Posted by ThunderRd View Post
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
Ok we are almost there.

I got fstab renamed fstab.old and a new fstab created. how ever the open as root option is not available here and it won't let me paste into the new fstab file.

Worse the fstab.old file is empty! I didn't delete anything!

I'll try deleting the new empty fstab (the one we were going to useto improve SSD performance, and rename the fstab.old file back to fstab...

upon reflection, I'll wait here and see what you think TR.

I just know there had to be a way to paste into my new file!! ":O}

Looking at my pics I realized that the new stab file isn'y showing up! I tried to create another one but system says one already exists. Just so you knw.":O}
Attached Thumbnails
How SSDs Really Work-screenshot-2013-03-06-11-16   How SSDs Really Work-screenshot-2013-03-06-11-22   How SSDs Really Work-screenshot-2013-03-07-12-07   How SSDs Really Work-screenshot-2013-03-07-12-23   How SSDs Really Work-screenshot-2013-03-07-12-27  

How SSDs Really Work-screenshot-2013-03-07-12-28  
__________________
"Though all men live in ignorance before mystery,
they need not live in darkness...
Justice is foundation and Mercy ETERNAL
."
DKE

"All that we do is touched by Ocean
Yet we remain on the shore of what we know."
Richard Wilbur

[img]/forum/attachments/random-nonsense/16515-sigs-dan_drag.jpg[/img]
Subscribers! Ask Pitch about a Custom Sig Graphic


Last edited by Daniel ~; 7th March, 2013 at 09:33 PM.
Reply With Quote