LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2012, 03:48 AM   #1
grishenko45
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
Will linux load on an SSD?


sounds like a really daft question - but that's why it's in the newbie section!

with ssd's having firmware and drivers, will i be able to install linux on it with no problems?
how would i update the firmware?

thanks
 
Old 05-24-2012, 03:53 AM   #2
nixblog
Member
 
Registered: May 2012
Posts: 426

Rep: Reputation: 52
I've got Linux installed on two SSD's with no problems. As for firmware updates to SSD drives I would say it's best to check the manufacturers website.
 
Old 05-24-2012, 04:09 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,383

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
For most people they could install a common distro to most ssd's.

As to the most efficient use and speed that is another issue.

Before you update anything you find a device you want and look at forums and web pages about that device and see what others have noted. Each maker of drives offers some way to update, see the OEM's pages for how to.
 
Old 05-24-2012, 04:19 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
This, for example, is for OCZ SSD drives:
http://www.ocztechnology.com/ssd_too...LE,_Agility_2/

They have got a native linux firmware update tool.
 
Old 05-24-2012, 05:17 PM   #5
nixblog
Member
 
Registered: May 2012
Posts: 426

Rep: Reputation: 52
I use OCZ drives now, they are very good. As the website says, don't bother updating firmware unless there is an issue causing you to upgrade. As stated too on the website, upgrading firmware on SSD's can result in a complete wipe of data on a drive - so be warned!
 
Old 05-24-2012, 06:32 PM   #6
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
SSD's don't like many random I/O operations. These are controled by the kernel "elevator" parameter. The Linux kernel has four different elevators, each with different properties. One of them, noop, is essentially a first-in first-out (FIFO) queue with no extra logic. This one is perfect for SSD. Simply add “elevator=noop” to the kernel parameters in your boot loader’s configuration (/etc/grub.conf, for example), and restart. Noop is is on the most distro's not the default scheduler so it has to be set.

Also add "noatime" an "discard" in your /etc/fstab
Code:
/dev/sda1 / ext4 defaults,noatime,discard 0 1
The discard option adds TRIM Support for the SSD.
Partition Alignment
This is the most important thing to do with a new "drive"
Proper partition alignment is essential for optimal performance and longevity.
Key to alignment is partitioning to (at least) the EBS (erase block size) of the SSD. Before your re-partition a new SSD investigate the alignment parameters from the vendor's website.

Recomendation: do not put /var on a SSD, use if you can to a normal drive with that rotating thing. Var has the most I/O and mostly logfiles package management and cache files do very much rewrites.
 
Old 05-24-2012, 08:11 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by Babertje View Post
Simply add “elevator=noop” to the kernel parameters in your boot loader’s configuration (/etc/grub.conf, for example), and restart. Noop is is on the most distro's not the default scheduler so it has to be set.
If you also have mechanical disks in your system it is better to set the elevator on a per disk basis, for example with
Code:
echo noop > /sys/block/sda/queue/scheduler
in your rc.local (assuming here that your SSD is /dev/sda),

Quote:
Also add "noatime" an "discard" in your /etc/fstab
Code:

/dev/sda1 / ext4 defaults,noatime,discard 0 1

The discard option adds TRIM Support for the SSD.
From what I have read the discard option can have serious impact on the performance. You can omit that option and manually (or per cron-job) run the fstrim command (available for ext4, don't know about other file-systems) if that is the case for you.

About the firmware updates: Intel has bootable ISOs for that purpose, so it is independent of the OS you use, Corsair supports firmware updates only from within Windows.
 
1 members found this post helpful.
Old 05-25-2012, 02:41 AM   #8
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
Thanks TobiSGD,
I have three out of four sata devices that are SSD all by the same brand, so i came up with a script to be called by /etc/rc.local
Code:
#!/bin/bash

# Brand name of the Solid State Device(s)
ssdbrand=OCZ

# get_them_all
ssd=`ls -l /dev/disk/by-id/ |grep $ssdbrand |awk '{print $11}' |cut -c7-9 |sed 's/[0-9]*//g' |sort -u |sed -n 'H;${g;s/\n/ /g;p}'`
# howmany devices
names=`echo $ssd |wc -w`

x=1
while [ $x -le $names ]
do
  echo noop > /sys/block/`echo $ssd |awk '{print $'$x'}'`/queue/scheduler
  x=$(( $x + 1 ))
done
 
  


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
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 02:46 AM
Linux O.S. on SSD? carlosinfl Linux - Hardware 9 10-14-2011 09:50 AM
SSD on Linux?! is it worth it? MystKid Linux - Hardware 11 01-19-2011 05:36 PM
[SOLVED] Linux and SSD thexero Linux - Newbie 10 08-07-2010 04:26 PM


All times are GMT -5. The time now is 10:20 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