SSD Instability under Linux

SSD Instability

I was having some serious instability with my new SSD under Linux. Installation with LMDE was not possible and Ubuntu kept on locking up when copying files.

It seems that the HD is too quick and the native queuing of commands can cause instability; disabling this has made my machine more stable and I have not noticed any deterioration in performance.

Add libata.force=noncq somewhere on the Linux line of your currently kernel in the grub config file.

sudo pluma /boot/grub/grub.cfg

menuentry "Ubuntu (on /dev/sda1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root xxxxxxx
	linux /boot/vmlinuz-3.5.0-23-generic root=UUID=xxxxxxxx ro quiet splash libata.force=noncq $vt_handoff
	initrd /boot/initrd.img-3.5.0-23-generic
}

More information about libata.force-noncq can be found here.

Also you can add this into a live disc or current grub boot prompt but pressing the tab or | key. A screen shot is shown below.

 

 

Advertisements

ATI Graphics Drivers & Debian / Linux Mint Debian based system

After a recent adventure with Linux Mint Debian I had to reinstall my ATI graphics drivers. A simple process;

These instructions will install ATI graphics drivers from the repositories for Debian and Linux Mint Debian. These should work for other debian based system however they have more than likely configured your graphics drivers for you.

Open up your core repositories to have main contrib non-free.

Either su into root or use sudo and install with


apt-get install fglrx-driver fglrx-control

Then set up with


aticonfig --initial

Reboot and confirm everything is working with


glxgears

FSCK

— run to find out the hd location.
df -hT

— as root
init 1
umount /dev/sda4 — change to each of your mapped entries above

fsck -NVr — for a trail run
fsck -Vr to actually fix

if you are presented with warning about unmount drive go to above and unmount.
Without specifying a partition to check all partitions in fstab are checked. Make sure they are all unmounted first. You are warned if a check on a mounted drive is going to be performed.

then either

reboot
shutdown -r now

or
init 6

HDTemp and Conky

Conky’s execi command can be use to execute any terminal line application and then display the output. We can use this with hdtemp to display the temperature of the hard disk.

sudo apt-get install hdtemp

Say yes to run as a start-up service and also accept the default port of 7634.

Open a terminal and type

nc localhost 7634

My output looks a little like this.

|/dev/sda|ST9500420ASG|41|C|lukey@debFooey:~$

As you can see the temperature is 41|C.

What we need to do is pipe the output of nc into the cut command to remove the surplus output to leave us with 41. We can then display this in the conky output

Either count along to what looks like the first number of the temperature and replace the c-24 with c-<yournumber>-c

nc localhost 7634  | cut -c24-25

run the command and make sure you are good to go.

Then copy the following into your .conkyrc

${execi 300 nc localhost 7634  | cut -c24-25;}°C