Linux on an SD card on an X201 Tablet

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
MisterB
Junior Member
Junior Member
Posts: 268
Joined: Wed Oct 26, 2011 7:23 pm
Location: Southwest USA

Linux on an SD card on an X201 Tablet

#1 Post by MisterB » Thu Nov 05, 2015 1:43 pm

This has been an interesting experiment. I wanted to try Mint Linux in a Thinkpad but was lacking a spare drive to try it on. I noticed that my X201 had the SD card in the internal slot on the F12 boot menu so I decided to try to install it on an SD card. I had a couple of 32gb SDHC cards lying around so I put one in the SD slot, booted from a Mint Linux 17.2 64 bit DVD. I partitioned the the SD card with Gparted into one 8gb Ext4 system partition, one 5gb swap partition for 4gb of memory and the remaining space I made into a Fat32 partition. The installation went smoothly. I installed Grub on the SD cards boot sector and it booted with all the bootable Windows partitions on the menu in addition to the Linux partition. Disk speeds are better than on a USB drive but I haven't done any detailed benchmarking yet. The only thing that didn't work the way I wanted it to was on the Windows side. Windows 7 wouldn't see the Fat32 partition and saw the Ext4 partition as an unformatted disk. I booted from the Mint DVD, deleted the first install and repartitioned the disk with Fat32 partition as the first partition and the Ext4 partition as the second, seen by Gparted and the Mint installer as sdb. I booted to Windows again and saw that the Fat32 partition was visible and the Linux partitions were not seen by Windows explorer so I booted from the Mint DVD again and installed again.

This is kind of slick. I have Linux on what amounts to a really inexpensive SSD in addition to Windows 7 in both 32 and 64 bit system partitions on the main disk. Linux can see all the data on the main disk but the data on the Linux SD is invisible to Windows. On the Linux side, I have everything working from the base install except the tablet buttons. The digitizer works just as well as in Windows. I haven't done any custom driver installs yet.

Booting from an SD card only works on my X201. I tried it on my W510 and X61s but no go. Now I wonder what other Thinkpads can do this.
Currently using: A W500, a W520, an X201T, an X220T, an X61T, a 14" T60P,a 15" UXGA T60P and a W700.
Currently idle: A spare W500, a spare X61T, a spare W700, a 14" T61, a 15" SXGA+ T60, a 14" T60, and my first Thinkpad, a 770X.

jaspen-meyer
Senior Member
Senior Member
Posts: 631
Joined: Wed May 19, 2010 11:21 pm
Location: Pardubice, Czech Republic
Contact:

Re: Linux on an SD card on an X201 Tablet

#2 Post by jaspen-meyer » Thu Nov 05, 2015 5:04 pm

I used to run a T41 with a CF card inserted into a pata adapter. Reduce disk writes and disk access with:

Code: Select all

~$ sudo nano /etc/fstab
add ',noatime' to your drives

Code: Select all

UUID=xxxxxxx /home           ext4    defaults,noatime        0       2
My T420s runs from a 4GB usb drive.

I don't know of a way for windows to see the Ext 4 partitions. On the linux side you likely don't need the swap partition.
T420 Ivy Bridge i7 3612QM, x24 xiphmont led, x60s libreboot, led, T400 libreboot, (in progress testing Q9100)

MisterB
Junior Member
Junior Member
Posts: 268
Joined: Wed Oct 26, 2011 7:23 pm
Location: Southwest USA

Re: Linux on an SD card on an X201 Tablet

#3 Post by MisterB » Thu Nov 05, 2015 10:06 pm

jaspen-meyer wrote:I used to run a T41 with a CF card inserted into a pata adapter. Reduce disk writes and disk access with:

Code: Select all

~$ sudo nano /etc/fstab
add ',noatime' to your drives

Code: Select all

UUID=xxxxxxx /home           ext4    defaults,noatime        0       2
My T420s runs from a 4GB usb drive.

I don't know of a way for windows to see the Ext 4 partitions. On the linux side you likely don't need the swap partition.
I use hibernation and the swap partition is needed for that. The noatime suggestion is good, I haven't even thought about tweaks and performance yet.
Currently using: A W500, a W520, an X201T, an X220T, an X61T, a 14" T60P,a 15" UXGA T60P and a W700.
Currently idle: A spare W500, a spare X61T, a spare W700, a 14" T61, a 15" SXGA+ T60, a 14" T60, and my first Thinkpad, a 770X.

axur-delmeria
ThinkPadder
ThinkPadder
Posts: 1269
Joined: Mon May 28, 2012 5:49 am
Location: Metro Manila, Philippines

Re: Linux on an SD card on an X201 Tablet

#4 Post by axur-delmeria » Fri Nov 06, 2015 3:57 am

Booting from an SD card only works on my X201. I tried it on my W510 and X61s but no go. Now I wonder what other Thinkpads can do this.
Can you check the output of lspci and lsusb to determine if the card reader is USB or PCIe?
Daily driver: X220 4291-P79 i5-2520M

In reserve: X61 T7500, X60 T2300
In pieces: X60s CS U1300 [board only], two retired but working X61Ts
RIP: 760XD 9546-U9E

MisterB
Junior Member
Junior Member
Posts: 268
Joined: Wed Oct 26, 2011 7:23 pm
Location: Southwest USA

Re: Linux on an SD card on an X201 Tablet

#5 Post by MisterB » Fri Nov 06, 2015 10:42 pm

axur-delmeria wrote:
Booting from an SD card only works on my X201. I tried it on my W510 and X61s but no go. Now I wonder what other Thinkpads can do this.
Can you check the output of lspci and lsusb to determine if the card reader is USB or PCIe?
It is identified in the boot menu as a USB device. It is a lot faster than a Lexar Expresscard drive I have been using as a bootable drive but that is probably due to the speed of the card, not that of the reader.
Currently using: A W500, a W520, an X201T, an X220T, an X61T, a 14" T60P,a 15" UXGA T60P and a W700.
Currently idle: A spare W500, a spare X61T, a spare W700, a 14" T61, a 15" SXGA+ T60, a 14" T60, and my first Thinkpad, a 770X.

axur-delmeria
ThinkPadder
ThinkPadder
Posts: 1269
Joined: Mon May 28, 2012 5:49 am
Location: Metro Manila, Philippines

Re: Linux on an SD card on an X201 Tablet

#6 Post by axur-delmeria » Sat Nov 07, 2015 2:35 am

MisterB wrote:It is identified in the boot menu as a USB device.
So that's why it's bootable-- the USB boot function in the BIOS handles it.

The card reader in the X61 is PCI or PCIe-based, which means it needs its own boot routine/ROM/firmware.
Unfortunately, I don't think such firmware even exists.

It's just like the case of PCIe/Expresscard SATA controllers which aren't bootable because they don't have the boot ROM (except for some Macs which have a generic AHCI boot ROM).
Daily driver: X220 4291-P79 i5-2520M

In reserve: X61 T7500, X60 T2300
In pieces: X60s CS U1300 [board only], two retired but working X61Ts
RIP: 760XD 9546-U9E

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 1 guest