X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/14fb4053faf8143a66beec3c20fc517c075b0582..fc69198f89b689c41f669748e7e9839dfcf9d19b:/blog/index.html diff --git a/blog/index.html b/blog/index.html index 814fafb5b5..4402fb8ab0 100644 --- a/blog/index.html +++ b/blog/index.html @@ -19,6 +19,201 @@ +
+
How to fix a Thinkpad X230 with a broken 180 GB SSD disk
+
17th July 2013
+

Today I switched to +my +new laptop. I've previously written about the problems I had with +my new Thinkpad X230, which was delivered with an +180 +GB Intel SSD disk with Lenovo firmware that did not handle +sustained writes. My hardware supplier have been very forthcoming in +trying to find a solution, and after first trying with another +identical 180 GB disks they decided to send me a 256 GB Samsung SSD +disk instead to fix it once and for all. The Samsung disk survived +the installation of Debian with encrypted disks (filling the disk with +random data during installation killed the first two), and I thus +decided to trust it with my data. I have installed it as a Debian Edu +Wheezy roaming workstation hooked up with my Debian Edu Squeeze main +server at home using Kerberos and LDAP, and will use it as my work +station from now on.

+ +

As this is a solid state disk with no moving parts, I believe the +Debian Wheezy default installation need to be tuned a bit to increase +performance and increase life time of the disk. The Linux kernel and +user space applications do not yet adjust automatically to such +environment. To make it easier for my self, I created a draft Debian +package ssd-setup to handle this tuning. The +source +for the ssd-setup package is available from collab-maint, and it +is set up to adjust the setup of the machine by just installing the +package. If there is any non-SSD disk in the machine, the package +will refuse to install, as I did not try to write any logic to sort +file systems in SSD and non-SSD file systems.

+ +

I consider the package a draft, as I am a bit unsure how to best +set up Debian Wheezy with an SSD. It is adjusted to my use case, +where I set up the machine with one large encrypted partition (in +addition to /boot), put LVM on top of this and set up partitions on +top of this again. See the README file in the package source for the +references I used to pick the settings. At the moment these +parameters are tuned:

+ + + +

During installation, I cancelled the part where the installer fill +the disk with random data, as this would kill the SSD performance for +little gain. My goal with the encrypted file system is to ensure +those stealing my laptop end up with a brick and not a working +computer. I have no hope in keeping the really resourceful people +from getting the data on the disk (see +XKCD #538 for an explanation why). +Thus I concluded that adding the discard option to crypttab is the +right thing to do.

+ +

I considered using the noop I/O scheduler, as several recommended +it for SSD, but others recommended deadline and a benchmark I found +indicated that deadline might be better for interactive use.

+ +

I also considered using the 'discard' file system option for ext3 +and ext4, but read that it would give a performance hit ever time a +file is removed, and thought it best to that that slowdown once a day +instead of during my work.

+ +

My package do not set up tmpfs on /var/run, /var/lock and /tmp, as +this is already done by Debian Edu.

+ +

I have not yet started on the user space tuning. I expect +iceweasel need some tuning, and perhaps other applications too, but +have not yet had time to investigate those parts.

+ +

The package should work on Ubuntu too, but I have not yet tested it +there.

+ +

As for the answer to the question in the title of this blog post, +as far as I know, the only solution I know about is to replace the +disk. It might be possible to flash it with Intel firmware instead of +the Lenovo firmware. But I have not tried and did not want to do so +without approval from Lenovo as I wanted to keep the warranty on the +disk until a solution was found and they wanted the broken disks +back.

+
+
+ + + Tags: debian, english. + + +
+
+
+ +
+
Intel SSD 520 Series 180 GB with Lenovo firmware still lock up from sustained writes
+
10th July 2013
+

A few days ago, I wrote about +the +problems I experienced with my new X230 and its SSD disk, which +was dying during installation because it is unable to cope with +sustained write. My supplier is in contact with +Lenovo, and they wanted to send a +replacement disk to try to fix the problem. They decided to send an +identical model, so my hopes for a permanent fix was slim.

+ +

Anyway, today I got the replacement disk and tried to install +Debian Edu Wheezy with encrypted disk on it. The new disk have the +same firmware version as the original. This time my hope raised +slightly as the installation progressed, as the original disk used to +die after 4-7% of the disk was written to, while this time it kept +going past 10%, 20%, 40% and even past 50%. But around 60%, the disk +died again and I was back on square one. I still do not have a new +laptop with a disk I can trust. I can not live with a disk that might +lock up when I download a new +Debian Edu / Skolelinux ISO or +other large files. I look forward to hearing from my supplier with +the next proposal from Lenovo.

+ +

The original disk is marked Intel SSD 520 Series 180 GB, +11S0C38722Z1ZNME35X1TR, ISN: CVCV321407HB180EGN, SA: G57560302, FW: +LF1i, 29MAY2013, PBA: G39779-300, LBA 351,651,888, LI P/N: 0C38722, +Pb-free 2LI, LC P/N: 16-200366, WWN: 55CD2E40002756C4, Model: +SSDSC2BW180A3L 2.5" 6Gb/s SATA SSD 180G 5V 1A, ASM P/N 0C38732, FRU +P/N 45N8295, P0C38732.

+ +

The replacement disk is marked Intel SSD 520 Series 180 GB, +11S0C38722Z1ZNDE34N0L0, ISN: CVCV315306RK180EGN, SA: G57560-302, FW: +LF1i, 22APR2013, PBA: G39779-300, LBA 351,651,888, LI P/N: 0C38722, +Pb-free 2LI, LC P/N: 16-200366, WWN: 55CD2E40000AB69E, Model: +SSDSC2BW180A3L 2.5" 6Gb/s SATA SSD 180G 5V 1A, ASM P/N 0C38732, FRU +P/N 45N8295, P0C38732.

+ +

The only difference is in the first number (serial number?), ISN, +SA, date and WNPP values. Mentioning all the details here in case +someone is able to use the information to find a way to identify the +failing disk among working ones (if any such working disk actually +exist).

+
+
+ + + Tags: debian, english. + + +
+
+
+ +
+
July 13th: Debian/Ubuntu BSP and Skolelinux/Debian Edu developer gathering in Oslo
+
9th July 2013
+

The upcoming Saturday, 2013-07-13, we are organising a combined +Debian Edu developer gathering and Debian and Ubuntu bug squashing +party in Oslo. It is organised by the +member assosiation NUUG and +the Debian Edu / Skolelinux +project together with the hack space +Bitraf.

+ +

It starts 10:00 and continue until late evening. Everyone is +welcome, and there is no fee to participate. There is on the other +hand limited space, and only room for 30 people. Please put your name +on the event +wiki page if you plan to join us.

+
+
+ + + Tags: debian, debian edu, english, nuug. + + +
+
+
+
The Thinkpad is dead, long live the Thinkpad X230?
5th July 2013
@@ -99,6 +294,46 @@ fixed. :)

+
+
The Thinkpad is dead, long live the Thinkpad X230
+
4th July 2013
+

Half a year ago, I reported that I had to find a replacement for my +trusty old Thinkpad X41. Unfortunately I did not have much time to +spend on it, but today the replacement finally arrived. I ended up +picking a Thinkpad +X230 with SSD disk (NZDAJMN). I first test installed Debian Edu +Wheezy as a roaming workstation, and it worked flawlessly. As I write +this, it is installing what I hope will be a more final installation, +with a encrypted hard drive to ensure any dope head stealing it end up +with an expencive door stop.

+ +

I had a hard time trying to track down a good laptop, as my most +important requirements (robust and with a good keyboard) are never +listed in the feature list. But I did get good help from the search +feature at Prisjakt, which +allowed me to limit the list of interesting laptops based on my other +requirements. A bit surprising that SSD disk are not disks, so I had +to drop number of disks from my search parameters.

+ +

I am not quite convinced about the keyboard, as it is significantly +wider than my old keyboard, and I have to stretch my hand a lot more +to reach the edges. But the key response is fairly good and the +individual key shape is fairly easy to handle, so I hope I will get +used to it. My old X40 was starting to fail, and I really needed a +new laptop now. :)

+ +

I look forward to figuring out how to turn off the touch pad.

+
+
+ + + Tags: debian, english. + + +
+
+
+
Fourth alpha release of Debian Edu/Skolelinux based on Debian Wheezy
3rd July 2013
@@ -613,426 +848,6 @@ make a decision that would work for them.

-
-
Fixing the Linux black screen of death on machines with Intel HD video
-
11th June 2013
-

When installing RedHat, Fedora, Debian and Ubuntu on some machines, -the screen just turn black when Linux boot, either during installation -or on first boot from the hard disk. I've seen it once in a while the -last few years, but only recently understood the cause. I've seen it -on HP laptops, and on my latest acquaintance the Packard Bell laptop. -The reason seem to be in the wiring of some laptops. The system to -control the screen background light is inverted, so when Linux try to -turn the brightness fully on, it end up turning it off instead. I do -not know which Linux drivers are affected, but this post is about the -i915 driver used by the -Packard Bell -EasyNote LV, Thinkpad X40 and many other laptops.

- -

The problem can be worked around two ways. Either by adding -i915.invert_brightness=1 as a kernel option, or by adding a file in -/etc/modprobe.d/ to tell modprobe to add the invert_brightness=1 -option when it load the i915 kernel module. On Debian and Ubuntu, it -can be done by running these commands as root:

- -
-echo options i915 invert_brightness=1 | tee /etc/modprobe.d/i915.conf
-update-initramfs -u -k all
-
- -

Since March 2012 there is -a -mechanism in the Linux kernel to tell the i915 driver which -hardware have this problem, and get the driver to invert the -brightness setting automatically. To use it, one need to add a row in -the -intel_quirks array in the driver source -drivers/gpu/drm/i915/intel_display.c (look for "static -struct intel_quirk intel_quirks"), specifying the PCI device -number (vendor number 8086 is assumed) and subdevice vendor and device -number.

- -

My Packard Bell EasyNote LV got this output from lspci --vvnn for the video card in question:

- -

-00:02.0 VGA compatible controller [0300]: Intel Corporation \
-    3rd Gen Core processor Graphics Controller [8086:0156] \
-    (rev 09) (prog-if 00 [VGA controller])
- Subsystem: Acer Incorporated [ALI] Device [1025:0688]
- Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- \
-    ParErr- Stepping- SE RR- FastB2B- DisINTx+
- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- \
-    SERR-  [disabled]
- Capabilities: 
- Kernel driver in use: i915
-

- -

The resulting intel_quirks entry would then look like this:

- -

-struct intel_quirk intel_quirks[] = {
-       ...
-        /* Packard Bell EasyNote LV11HC needs invert brightness quirk */
-	{ 0x0156, 0x1025, 0x0688, quirk_invert_brightness },
-       ...
-}
-

- -

According to the kernel module instructions (as seen using -modinfo i915), information about hardware needing the -invert_brightness flag should be sent to the -dri-devel -(at) lists.freedesktop.org mailing list to reach the kernel -developers. But my email about the laptop sent 2013-06-03 have not -yet shown up in -the -web archive for the mailing list, so I suspect they do not accept -emails from non-subscribers. Because of this, I sent my patch also to -the Debian bug tracking system instead as -BTS report #710938, to make -sure the patch is not lost.

- -

Unfortunately, it is not enough to fix the kernel to get Laptops -with this problem working properly with Linux. If you use Gnome, your -worries should be over at this point. But if you use KDE, there is -something in KDE ignoring the invert_brightness setting and turning on -the screen during login. I've reported it to Debian as -BTS report #711237, and -have no idea yet how to figure out exactly what subsystem is doing -this. Perhaps you can help? Perhaps you know what the Gnome -developers did to handle this, and this can give a clue to the KDE -developers? Or you know where in KDE the screen brightness is changed -during login? If so, please update the BTS report (or get in touch if -you do not know how to update BTS).

-
-
- - - Tags: debian, english. - - -
-
-
- -
-
Third alpha release of Debian Edu / Skolelinux based on Debian Wheezy
-
10th June 2013
-

The third wheezy based alpha release of Debian Edu was wrapped up -today. This is the release announcement:

- -

New features for Debian Edu 7.0.0 alpha2 released -2013-06-10

- -

This is the release notes for for Debian Edu / Skolelinux 7.0.0 edu -alpha2, based on Debian with codename "Wheezy".

- -

About Debian Edu and Skolelinux

- -

Debian Edu, also known as -Skolelinux, is a Linux distribution based on Debian providing an -out-of-the box environment of a completely configured school -network. Immediately after installation a school server running all -services needed for a school network is set up just waiting for users -and machines being added via GOsa², a comfortable Web-UI. A netbooting -environment is prepared using PXE, so after initial installation of -the main server from CD, DVD or USB stick all other machines can be -installed via the network. The provided school server provides LDAP -database and Kerberos authentication service, centralized home -directories, DHCP server, web proxy and many other services. The -desktop contains -more -than 60 educational software packages and more are available from -the Debian archive, and schools can choose between KDE, Gnome, LXDE -and Xfce desktop environment.

- -

This is the third test release based on Debian Wheezy. Basically -this is an updated and slightly improved version compared to the -Squeeze release.

- -

Software updates

- - - -

Other changes

- - - -

Known issues

- - - -

Where to get it

- -

To download the multiarch netinstall CD release you can use

- - - -

The MD5SUM of this image is: 27bbcace407743382f3c42c08dbe8178 -
The SHA1SUM of this image is: e35f7d7908566cd3075375b3721fa10ee420d419

- -

How to report bugs

- -

http://wiki.debian.org/DebianEdu/HowTo/ReportBugs -

-
- - - Tags: debian edu, english. - - -
-
-
- -
-
Is there a PHP expert in the building? Debian Edu need help!
-
5th June 2013
-

Here is a call for help from the Debian Edu / Skolelinux project. -We have two problems blocking the release of the Wheezy version we -hope to get released soon. The two problems require some with PHP -skills, and we seem to lack anyone with both time and PHP skills in -the project: - -

    - -
  1. It is impossible to log into the slbackup web interface - (slbackup-php) using the root user and password. This is - BTS report #700257. - This used to work, but stopped working some time since Squeeze. - Perhaps some obsolete PHP feature was used?
  2. - -
  3. It is not possible to "mass import" user lists in Gosa, neither - using ldif nor using CSV files. The feature was disabled after a - major rewrite of Gosa, and need to be ported to the new system. - This is BTS report - #698840.
  4. - -
- -

If you can help us, please join us on IRC -(#debian-edu on -irc.debian.org) and provide patches via the BTS.

-
-
- - - Tags: debian edu, english. - - -
-
-
- -
-
Debian Edu interview: Cédric Boutillier
-
4th June 2013
-

It has been a while since my last English -Debian Edu and Skolelinux -interview last November. But the developers and translators are still -pulling along to get the Wheezy based release out the door, and this -time I managed to get an interview from one of the French translators -in the project, Cédric Boutillier.

- -

Who are you, and how do you spend your days?

- -

I am 34 year old. I live near Paris, France. I am an assistant -professor in probability theory. I spend my daytime teaching -mathematics at the university and doing fundamental research in -probability in connexion with combinatorics and statistical physics.

- -

I have been involved in the Debian project for a couple of years -and became Debian Developer a few months ago. I am working on Ruby -packaging, publicity and translation.

- -

How did you get in contact with the Skolelinux / Debian Edu -project?

- -

I came to the Debian Edu project after a call for translation of -the -Debian Edu manual for the release of Debian Edu Squeeze. Since -then, I have been working on updating the French translation of the -manual. - -

I had the opportunity to make an installation of Debian Edu in a -virtual machine when I was preparing localised version of some screen -shots for the manual. I was amazed to see it worked out of the box and -how comprehensive the list of software installed by default was.

- -

What amazed me was the complete network infrastructure directly -ready to use, which can and the nice administration interface provided -by GOsa². What pleased -me also was the fact that among the software installed by default, -there were many "traditional" educative software to learn languages, -to count, to program... but also software to develop creativity and -artistic skills with music (Ardour, -Audacity) and -movies/animation (I was especially thinking of -Stopmotion).

- -

I am following the development of Debian Edu and am hanging out on -#debian-edu. -Unfortunately, I don't much time to get more involved in this -beautiful project.

- -

What do you see as the advantages of Skolelinux / Debian -Edu?

- -

For me, the main advantages of Skolelinux/Debian Edu are its -community of experts and its precise documentation, as well as the -fact that it provides a solution ready to use.

- -

I would add also the fact that it is based on the rock solid Debian -distribution, which ensures stability and provides a huge collection -of educational free software.

- -

What do you see as the disadvantages of Skolelinux / Debian -Edu?

- -

Maybe the lack of manpower to do lobbying on the -project. Sometimes, people who need to take decisions concerning IT do -not have all the elements to evaluate properly free software -solutions. The fact that support by a company may be difficult to find -is probably a problem if the school does not have IT personnel.

- -

One can find support from a company by looking at -the -wiki dokumentation, where some countries already have a number of -companies providing support for Debian Edu, like Germany or -Norway. This list is easy to find readily from the manual. However, -for other countries, like France, the list is empty. I guess that -consultants proposing support for Debian would be able to provide some -support for Debian Edu as well.

- -

Which free software do you use daily?

- -

I am using the KDE Plasma Desktop. But the pieces of software I use -most runs in a terminal: Mutt and OfflineIMAP for emails, latex for -scientific documents, mpd for music. VIM is my editor of choice. I am -also using the mathematical software -Scilab and -Sage (built from -source as not completely packaged for Debian, yet). - -

Do you have any suggestions for teachers interested in -using the free software in Debian to teach mathematics and -statistics?

- -

I do not have any "nice" recommendations for statistics. At our -university, we use both R and -Scilab to teach statistics and probabilistic simulations. For -geometry, there are nice programs:

- - - -

I like also -cantor, which -provides a uniform interface to SciLab, Sage, -Octave, etc...

- -

Which strategy do you believe is the right one to use to -get schools to use free software?

- -

My suggestions would be to

- - -
-
- - - Tags: debian edu, english, intervju. - - -
-
-
-

RSS feed