LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-28-2009, 10:28 PM   #1
Changes
Member
 
Registered: Oct 2008
Posts: 190

Rep: Reputation: 16
Filesystem for SSD drive


I just bought a netbook that comes with a standard hard drive (EeePC 1005HA-M). My plan is to replace the HD with a SSD to have better battery life and resistance to shock, but it'll be some time before I buy it and they deliver it to me, so I'm using it with the original HD in the meantime.

On said HD I've installed CrunchBang Linux, after repartitioning everything in ext4.
The easiest way to convert to SSD without having to waste time reinstalling everything is, if I'm not mistaken, simply to hook up both the drive and the SSD to another computer and DD the former's system partition to the latter's. However, this would mean having ext4 partitions on a SSD, and I've heard it said that you should only use ext2 on flash drives in order to preserve it (since they last a limited number of write cycles).

Is this true? Do I have to redo everything in ext2, or can I just leave it as it is?

Thanks.
 
Old 08-28-2009, 10:37 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You don't want to use a journaling filesystem. Also use the "noatime" mount option to disable updating the access timestamp every time you read a file.

You can simply partition the new drive and copy all of the files over. If you already created an image backup, such as onto an external drive, you could mount the partitions on it using losetup & mount, and copy files from the image. Don't bother copying /proc, /sys, /dev/ or /tmp. The first two are psuedo filesystems. /dev/ is created when you boot, and the files in /tmp aren't important.

Look at the tar info manual. It has an example piping tar'ed files to copy one filesystem to another. Using "cp -a" will work as well but using tar might work out better going from computer to computer via rsh or ssh. There is also rsync.
Another option is to put one of the drives in an enclosure, then partition & format it. Next copy the files.
You could backup the old drive (HD), replace it with the new drive (SSD), partition and format the SSD drive and finally restore the files from the backup.

You might want to use "df -h" on each partition to see how much free space you have. Maybe you want to make adjustments to the sizes of your partitions,

Last edited by jschiwal; 08-28-2009 at 10:49 PM.
 
Old 08-29-2009, 12:16 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by Changes View Post
The easiest way to convert to SSD without having to waste time reinstalling everything is, if I'm not mistaken, simply to hook up both the drive and the SSD to another computer and DD the former's system partition to the latter's.
I'd rather use cp -a, rsync, or whatever fits you. Format the partition the way you want, copy everything preserving permissions, and then just reinstall the bootloader.

Quote:
However, this would mean having ext4 partitions on a SSD, and I've heard it said that you should only use ext2 on flash drives in order to preserve it (since they last a limited number of write cycles).
If you have a recent kernel (at least 2.6.30_rc1 or later), I'd give nilfs a try. It's supposed to improve the handling of this kind of devices.
 
Old 08-29-2009, 09:04 AM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Quote:
Originally Posted by Changes View Post
I've heard it said that you should only use ext2 on flash drives in order to preserve it (since they last a limited number of write cycles).

Is this true?
Quote:
Originally Posted by jschiwal View Post
You don't want to use a journaling filesystem. Also use the "noatime" mount option to disable updating the access timestamp every time you read a file.
While it may once have been an issue, the write life cycle concern with SSD has become FUD. Apple has been selling the MacBook Air since January 2008, which is their ultra-thin laptop with an SSD. Going a step further into intense use, Sun introduced it's 7000 series storage systems last year and has been beating out NetApp in price/performance in part by using ZFS and putting ZFS's write intent log on SSD's.

I found an in depth analysis of the issue here http://www.storagesearch.com/ssdmyths-endurance.html. About halfway down that story, he does a calculation for a 64G SSD with a write endurance of 2 million writes. Assuming a rogue data logger putting blocks of data to the SSD at rate of 80MB/sec non-stop, he comes up with a life for the SSD of 51 years. The numbers have improved over time and also improve with size of SSD. And, I mean, who is going to let a rogue data logger run non-stop for 51 years?

That article was dated 2007.
 
Old 08-30-2009, 08:49 AM   #5
Changes
Member
 
Registered: Oct 2008
Posts: 190

Original Poster
Rep: Reputation: 16
Hmm. Based on Choogendyk's post, it would seem I don't need to bother with a non-journaling filesystem, and I can just do a hard copy of everything on the SSD.
How much data does a journaling filesystem write during normal operation, anyway?

Also, if I understand correctly, journaling basically means the partition doesn't need a filesystem check everytime the computer gets switched off without everything having been properly unmounted. I assume there's more to it than simply this?

Edit: another question that has just come to me - should I disable caching from Firefox? People have told me I should, but if 80 M/s nonstop lasts 51 years, I don't think a 50MB browsing cache can make much of a difference.

Last edited by Changes; 08-30-2009 at 09:12 AM.
 
Old 09-02-2009, 10:18 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The ssd drive in a netbook may not be the more expensive type that may be better in this regard. Also, the writes may be distributed across the entire drive and not for example a swap partition. IMHO, at least mount any partition with the `noatime' option.
 
  


Reply



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 Hard Drive and MySQL Fredde87 Linux - Hardware 3 07-13-2009 03:32 PM
How to disable read prefetch for an SSD drive MartyMcFly Linux - Hardware 1 01-20-2009 10:42 AM
Filesystem for a netbook with a SSD suicideducky Linux - General 4 12-16-2008 03:03 AM
New Linux user: Acer Aspire One, Limpus Linux OS w/8gb SSD drive acpiusa Linux - General 1 08-27-2008 05:22 AM
kernel accessing pata cd rom drive instead of sata OS hard drive for filesystem elaps2007 Linux - Kernel 0 03-19-2008 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:04 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
Open Source Consulting | Domain Registration