LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-07-2008, 05:01 PM   #1
webquinty
Member
 
Registered: Apr 2008
Location: España
Distribution: Suse
Posts: 218

Rep: Reputation: 32
Install linux on Compact Flash, how to???


Hello,

I tried to install slackware on compact flash but it does not work.

I use compact flash wit CF-IDE adapter, so I made partitions like HD, with swap and ext3 linux partition.

After installed system and lilo, I rebooted system but nothing happened.

My questions are:

1.- Can I use ext3 with compact flash, or is it necessary use JFFS2?
2.- If I use compact flash, is it neccessary create a swap partition?

Best regards.
 
Old 04-07-2008, 08:17 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,549
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

You should look at 'Slackware® 12.0 USB_Install'.
 
Old 04-08-2008, 12:26 PM   #3
webquinty
Member
 
Registered: Apr 2008
Location: España
Distribution: Suse
Posts: 218

Original Poster
Rep: Reputation: 32
Thanks a lot.

I will try it.

Best regards
 
Old 05-05-2008, 11:20 AM   #4
webquinty
Member
 
Registered: Apr 2008
Location: España
Distribution: Suse
Posts: 218

Original Poster
Rep: Reputation: 32
Hello

Hello,

well I tried to install slackware on my compact flash using this manual but I understand that this manual is to install slackware from USB device, like pendrive, but any thing else.

So, How can I install slackware on my compact flash???

any advice???


best regards
 
Old 05-05-2008, 11:26 AM   #5
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Quote:
Originally Posted by webquinty View Post

After installed system and lilo, I rebooted system but nothing happened.
Where did you install Lilo? On your primary HDD?
Quote:
My questions are:

1.- Can I use ext3 with compact flash, or is it necessary use JFFS2?
2.- If I use compact flash, is it neccessary create a swap partition?

Best regards.
Flash has limited writes, using EXT3 will wear it off fast. EXT3 is journaling and repeatedly writes to the disk. Use EXT2 instead (you can convert EXT3 to EXT2 without reinstalling). Same warning goes for swap.
 
Old 05-05-2008, 11:33 AM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Boot and run Linux from a USB flash memory stick www.pendrivelinux.com

Carry a portable Linux version with you on a USB flash pen drive.
Easily bring your portable desktop with you wherever you go.

This is probably the best site for info on installing to a USB drive, there are links to HOW-TO's for many different Linux distributions.

Last edited by farslayer; 05-05-2008 at 11:34 AM.
 
Old 05-05-2008, 11:37 AM   #7
Cuetzpallin
Member
 
Registered: Feb 2008
Location: Monterrey, MX
Distribution: Slackware since 3.4 and love it!!!
Posts: 162

Rep: Reputation: 31
Wink

Try slax: http://www.slax.org/
 
Old 05-06-2008, 06:35 AM   #8
webquinty
Member
 
Registered: Apr 2008
Location: España
Distribution: Suse
Posts: 218

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Emerson View Post
Where did you install Lilo? On your primary HDD?


Flash has limited writes, using EXT3 will wear it off fast. EXT3 is journaling and repeatedly writes to the disk. Use EXT2 instead (you can convert EXT3 to EXT2 without reinstalling). Same warning goes for swap.
I installed lilo in ext3 partiton of compact flash.

What is the meaning of "Same warning goes for swap"???. I am confuse.

Best regards
 
Old 05-06-2008, 08:03 AM   #9
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
When BIOS boots your rig it looks for your primary HDD to execute the MBR code. Unless you tell BIOS flash is your primary HDD your Lilo will not be found.
Swap is also a space where unlimited writes may occur. Better do without it.
 
Old 05-06-2008, 08:08 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,963

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Flash memory has a limited number write/erase of cycles. Depends on the device but with wear level technology it is on the order of 1,000,000 cycles. However, as already posted ext3 default journal write time is 5 sec. So yes you would want to use jffs2 or ext2 which does not have a journal. swap depends on how much RAM and what applications you want to run. If you swap is used then it will also decrease the memories life span.

A CF-IDE is treated basically like a non removable regular hard drive. Did you install lilo to the Master Boot Record (MBR)? What do you mean by nothing happened? Where there any error messages when you tried to boot?
 
Old 05-06-2008, 09:51 AM   #11
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Rep: Reputation: 33
I suggest you to use LFS to build your own Linux, and let the whole system run in Memory. I think it will decrease the write/erase CF times.

About LFS, you can refer to http://www.linuxfromscratch.org.

Regards,
Phillip
 
Old 05-06-2008, 11:12 AM   #12
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
I never be able to install lilo on a Compact Flash (I don't know why but I didn't search a long time). Try grub instead, for me it always works.
As said in other replies, write cycles on a Compact Flash are limited. More over, Compact Flash devices are very slow, you'd better to run your system from a ram disk...
 
Old 05-06-2008, 12:44 PM   #13
webquinty
Member
 
Registered: Apr 2008
Location: España
Distribution: Suse
Posts: 218

Original Poster
Rep: Reputation: 32
Uahhhhhhhhhhh!!!!!!!!!!!!!
Wonderfull, a lot fo replies. Thanks a lot.

Quote:
swap depends on how much RAM and what applications you want to run. If you swap is used then it will also decrease the memories life span.
Well, this is no a problem, I have a lot of memory to run my application without swap.

Quote:
So yes you would want to use jffs2 or ext2 which does not have a journal.
Ok, now I will try these kinds of file system.

Quote:
I never be able to install lilo on a Compact Flash (I don't know why but I didn't search a long time). Try grub instead, for me it always works.
I downloaded grub but I can not install it. Tomorrow I will look for some manual to do it , step by step.

But, at this moment I can not boot CF.

Buffffffff, it is very hard.

best reagards.
 
Old 05-07-2008, 09:50 AM   #14
webquinty
Member
 
Registered: Apr 2008
Location: España
Distribution: Suse
Posts: 218

Original Poster
Rep: Reputation: 32
Hello

Well, I do it.

I install grub in ext2 file system, and compact flash boot normaly.
But now I have other problem. Salckware use by default LILO, and GRUB need kernel image and initrd.img.

But in boot folder I have only vmlinuz and System.map, but no initrd.img.

so, How can I fix this problem???

any idea?

Best regards
 
Old 05-07-2008, 10:15 AM   #15
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Quote:
GRUB need kernel image and initrd.img.
GRUB can boot with an initrd, but I quite sure you can remove the "initrd" line, if your system is well configured (no need of module for booting and so on). But I say it again, for performance, and CF life, you'd better to make your system on an initrd and stay on it!
 
  


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
Is it possible to install RHEL on a compact flash card? chickenjoy Red Hat 1 06-07-2007 07:26 AM
how to install fedora 4 on 2G compact Flash yjx2003 Linux - Software 3 07-04-2006 10:07 PM
net install to compact flash knobby67 Debian 3 04-12-2006 04:32 AM
linux on Compact Flash swatisameerp Linux - Hardware 3 04-05-2006 08:30 AM
linux on compact flash tomank Linux - General 3 04-26-2004 04:08 PM


All times are GMT -5. The time now is 07:01 PM.

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