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.

 

 

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

Reinstall Grub after window install or other guest linux has taken over

I recently installed linux mint. It did not give me the option of installing grub or not and installed its own version / config into the mbr.

To get back to square one

Log into the Linux OS you want to have the grub mastered on and as root run grub-install /dev/sda (this might change depending upon the location of you MBR)

If you are reading this and stating; how can I do this if I can not log into my Linux OS; use a live disc, map / swap and as root run grub-install

Sun VirtualBox USB / Networking in Debian Squeeze

Before we begin

  • Add your user to vboxusers user group

Networking

  • Create a folder which you would like to be accessible inside the guest OS
  • In VBox manager; Settings –> Shared Folders –> Add folder
  • In Guest OS you can access the drive through the network. In windows XP; net use: \\Vboxsvr\vboxshare or via windows net work in windows explorer.

USB

  • If you would likst to access usb hard disks then dd the following into /etc/fstab “none /proc/bus/usb usbfs rw,user,devgid=119,devmode=0666 0 0″.
  • Note the devgid needs to be set to the goup id of the vboxusers user group.
  • In VBox manager; Settings –> USB. Enable USB Controller and also enable your actual controller(s).
  • USB device filter; ticked entries are automatically mapped when you start the guestt OS.
  • You can turn them devices on and off inside the guest OS; Devices –> USB devices