LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-13-2019, 09:14 AM   #1
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 14.2
Posts: 253

Rep: Reputation: 46
Running Slackware off a microSD card?


I have this recurring fantasy to run Slackware on my work laptop. I don't want to disturb the Windows 10 install, so installing Slackware to a microSD card would be great. I could leave it plugged in and just boot to it when I reboot my laptop and choose the card to boot from. When I reboot, back to Windows.

Is this even feasible? From researching USB flash drives from a while ago you want something that can specifically write random 4k files fairly quickly. It should be benchmarked to be over 1 MB/s. There are only a handful of USB flash drives that can do that apparently, but with microSD cards, it seems there are a lot of cards that meet this requirement.

Has anyone had any experience running Slackware off a microSD card? Was it a miserably slow experience? Raspberry Pis seem to do it all the time and I haven't seen people complain about the speeds.

James
 
Old 02-13-2019, 09:18 AM   #2
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Slackware
Posts: 1,511
Blog Entries: 3

Rep: Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527
I don't know about Slackware, but you could run Porteus, which is based on Slackware, off an SD card. It's designed for it.

http://www.porteus.org/
 
Old 02-13-2019, 09:20 AM   #3
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 11.0
Posts: 160

Rep: Reputation: 178Reputation: 178
I was doing exactly this with my work laptop using Eric's Slackware Live on a 64gb USB stick, but it was running a bit slow for my tastes.

I use Porteus for this purpose now, and I absolutely love it. Blazing fast, modular, works like a charm.
 
3 members found this post helpful.
Old 02-13-2019, 09:27 AM   #4
kgha
Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 119

Rep: Reputation: 83
I've run slackware-based distros (SlackEl and the now long since gone FluxFLux) from an ordinary SD card and yes, it can be done, but of course it will be slightly slower than using a HDD/SSD. But a full install on a SD will always be faster than running a live version from a stick or card (not least when booting)

And there are micro SDs out there boasting 80MB r/w speed, e.g SanDisk's Ultra microSDXC Class 10 - about $10 for 32GB.

There is of course a slight risk for errors when resizing partitions, but if you have lots of free space on your HDD/SSD I would nevertheless contemplate creating a Linux partition. IIRC Windows10 are installed over more than one partition - one for the OS and one for user files. Resizing the latter should be troublefree. I once resized partitions on a PC running WinXP, creating space for a Linux install without any issues.

EDIT: at a second reading I saw that you're talking about your work laptop. Then of course it might be a good idea leaving it alone - or your IT department may complain.

Last edited by kgha; 02-13-2019 at 09:33 AM.
 
Old 02-13-2019, 09:35 AM   #5
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 14.2
Posts: 253

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by Lysander666 View Post
I don't know about Slackware, but you could run Porteus, which is based on Slackware, off an SD card. It's designed for it.

http://www.porteus.org/
I will look into that, thanks!

James
 
Old 02-13-2019, 09:41 AM   #6
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 14.2
Posts: 253

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by kgha View Post
And there are micro SDs out there boasting 80MB r/w speed, e.g SanDisk's Ultra microSDXC Class 10 - about $10 for 32GB.
I am looking at this: https://www.amazon.com/gp/product/B07G3H5RBT/

Ratings are super high and it's one of the fastest.

Quote:
Originally Posted by kgha View Post
There is of course a slight risk for errors when resizing partitions, but if you have lots of free space on your HDD/SSD I would nevertheless contemplate creating a Linux partition. IIRC Windows10 are installed over more than one partition - one for the OS and one for user files. Resizing the latter should be troublefree. I once resized partitions on a PC running WinXP, creating space for a Linux install without any issues.

EDIT: at a second reading I saw that you're talking about your work laptop. Then of course it might be a good idea leaving it alone - or your IT department may complain.
Yes, I don't want any imperial entanglements. I still need Windows as there are a couple of programs I need to run which I don't know if they work in Linux. I might be able to find ways around using them. Also, if I need my laptop repaired or I suddenly need to leave my job I can pull the sd card and keep all my stuff, they can keep the laptop.

James
 
Old 02-13-2019, 09:52 AM   #7
kgha
Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 119

Rep: Reputation: 83
That SanDisk Extreme Pro card seems fast (and large) enough!

As has been discussed in another thread, it must of course be remembered that an SD card will wear out faster than a SSD/HDD and that it might give up altogether (as most of us have experienced with USB sticks). But in my experience, SanDisk products are reliable enough.
 
1 members found this post helpful.
Old 02-13-2019, 10:49 AM   #8
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 379

Rep: Reputation: 183Reputation: 183
I think if you can get your machine to boot from SD, it should work.

I tried this with AlienBob's excellent live XFCE iso, but my bios/efi doesn't support booting directly from SD. I plugged it into a USB adaptor and it did work. If you can find a way to chainload it, from a bootloader running off a USB stick or a gpt partition/mbr on a standard hdd, that should work too.

I found the read/writes to be a bit slow for my liking. Once some reads start on a directory, things tend to respond quickly, but I find there tends to be an initial hiccup in even doing simple operations like 'ls'.

By way of example, I also tried mounting /home to my SD card, and it really caused some major hiccups, especially with playing YouTube videos on Chromium. I guess it tried to read/write a lot of temporary data to /home, which would result in major pauses in video playback every couple of minutes.

So while it may work for some simple word processing and basic web browsing/email, I wouldn't recommend for multimedia-heavy web browsing.
 
Old 02-13-2019, 12:33 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,528

Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
look in the BIOS if you can get to it to see if you can even use your work laptop's BIOS and make sure it has boot from SDCard option. Most new ones do, but you might be locked out of your BIOS and boot list options. I'd look into that first, if you have not already done so, before buying anything for your project.

Code:
noatime
add to your fstab for your SD Card to cut back on read writes to it.

Last edited by BW-userx; 02-13-2019 at 12:36 PM.
 
Old 02-13-2019, 05:27 PM   #10
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.2
Posts: 305

Rep: Reputation: 115Reputation: 115
In addition to slow i/o speeds, microSD cards have a finite number of write operations, and therefore aren't great for journaling file systems or for swap: consider a portable ssd.

I successfully got mine to boot on multiple efi systems (with luks+crypt)! The tricky part is to address file systems by UUID in elilo.conf, fstab, and when making initrd. I also followed the extra instructions at the bottom of README_UEFI.txt:

Quote:
If the menu entry doesn't work on your system, you can still force your
machine to boot ELILO automatically by copying the files in /EFI/Slackware on your EFI System Partition to /EFI/BOOT on your EFI System Partition, and renaming /EFI/BOOT/elilo.efi to /EFI/BOOT/BOOTX86.EFI.

Last edited by slac-in-the-box; 02-13-2019 at 05:29 PM. Reason: link didn't work first time
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware on Raspberry Pi - prepartitioning of microSD card Olaus Slackware - ARM 2 11-01-2018 02:26 AM
PengPod boot microSD card djheadley Linux - Software 1 04-15-2014 03:27 PM
Label of MicroSD memory card alfredo10 Linux - Hardware 2 07-02-2012 10:32 AM
Mint 8: regular user can't access ext3 partition on mounted microSD card joe.attaboy Linux - General 7 01-23-2011 11:37 PM
Repair Corrupted microSD Card hkothari Linux - Hardware 5 06-14-2010 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration