SSD journaling and ro remount

I recently upgraded my laptop with a brand new SSD, my first two impressions are: much much faster, much much instable.
Yes that’s right, instable. My first try with SSD is was with a HANA SSD 8G (model: HLSM008G), does’t work on linux. I bought this drive on ebay just to make some tries with an economic disk, and eventually install it for use with mythtv as boot disk. Never do this, never buy HANA if you plan to use it on linux. It simply doesn’t even install you get a kernel panic. As I see now the product has been removed from ebay.

My second try is a OCZ Agility II, installed on my htpc with mythtv. On the same pc i had two 500GB HDD and an optical drive. One of the two HDD’s randomly freezes at boot time with the OCZ installed. That means 2 boot every 3 this HDD could not be mounted. I had to remove it. The second issue with the same OCD Agility where some occasionally errors syncing the journal with consequent remount in ro exactly while watching the clue scene of a film. Googling around i found somebody saying that the journal does not have sense in a SSD. In fact if the system crashes the check time on an SSD is ridiculous, so the benefits are irrelevant. So i removed the journal and the issue seem to be gone.

Meanwhile I bought a second OCZ Vertex II for my laptop, work grate, but for performance reasons I decided to remove the journal from ext4. To do so I needed to mount the disk in ro mode.
Easy:

sodo mount -o remount,ro /dev/sda1

No way!! Even booting the system in maintanace mode mount cannot remount in ro if disk is busy.

So it is some more complicate, this is what I had to do:

  • nano /etc/fstab
  • UUID=… / ext4 ro,errors=remount-ro 0 1
  • reboot
  • After reboot:

  • tune2fs -O ^has_journal /dev/sda1
  • mount -o remount,rw /dev/sda1
  • nano /etc/fstab
  • remove ro option

Linux is always a step behind.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.

WP to LinkedIn Auto Publish Powered By : XYZScripts.com