Hi everyone, 

Today I updated my laptop to use an ssd drive. I am using a Samsung 830
series (128 Gb) drive. 

I've got most things working nicely, but I had a few questions that
others who have already done this may be able to assist with:

1. Hibernate has seemed to stop working for me ever since I installed
the ssd. I'm fairly sure it worked with the old hard drive, but now if I
pm-hibernate, and turn back on the machine, it is just equivalent of
shutting down and booting. i.e. my session is not resumed, and I am
asked to log in. 

I have a swap partition, output of free -m is:
daniel@Vostro-3350:/tmp$ free -m
             total       used       free     shared    buffers     cached
Mem:          3947        659       3287          0         35        346
-/+ buffers/cache:        278       3669
Swap:         6143          0       6143

2. What tweaks do people use to prolong ssd life and also improve
performance?

Currently I have an fstab which looks like this:
# /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>
# / was on /dev/sda2 during installation
UUID=ed09c67d-bd34-42be-8f3b-3dfb567ea764 /               ext4    
errors=remount-ro,discard,noatime 0       0
UUID=9db7ef9e-5298-4400-8b26-cdf9d6ec4168 /home           ext4    
defaults,discard,noatime        0       0
# swap was on /dev/sda6 during installation
UUID=3df92924-3bd3-4292-a635-a78e9e36d9c8 none            swap    sw            
  0       0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

(obviously partition table has changed a bit since I moved from a dual
booting system on the hdd to just ubuntu on ssd)

I've also made a symbolic link from /var/log to /tmp/ which should
apparently help reduce writing to the ssd.
(apparently the last line of the fstab means /tmp is stored in ram)

I've also added this in /etc/default/grub, and ran update-grub:
GRUB_CMDLINE_LINUX="elevator=noop"

Is there anything else I should do?

3. My last question:
I here alignment is important to ensure best performance and again help
prolong the life of the ssd. 
>From what I read using a multiple of 512 for the first block can achieve
this. 
I attempted to do this with fdisk, but to be honest, was not quite sure
what I was doing. (I actually just cp -ax /from/hdd* /to/path/ssd for my
ubuntu installation, so didn't use the ubuntu install cd to install on
the ssd. (so obviously created all partitions manually). 
Here is my fdisk output:
daniel@Vostro-3350:/tmp$ sudo fdisk -l /dev/sda

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 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: 0x3f5f6184

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    31459327    15728640   83  Linux
/dev/sda2        31459328    44042239     6291456   83  Linux
/dev/sda3        44042240   250069679   103013720   83  Linux

Are these partitions aligned? If not how can I repair this, (hopefully
not by re-installing!)

I'm running ubuntu 12.10 as well. 

Thanks in advance for any help, 
Dan
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to