LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 11-24-2008, 05:37 AM   #1
webquinty
Member
 
Registered: Apr 2008
Location: Espa˝a
Distribution: Suse
Posts: 210

Rep: Reputation: 32
Can not boot linux from compact flash..


Hello,
Well, I am trying to boot linux from compact flash but I can not do it.

I follow this steps:
1.- dd if=/dev/zero of=/dev/hda -> this is my compact flash in my system.
2.- lilo -M /dev/hda mbr -> to install a master boot recorder
3.- With fdisk I have create a linux partition.
4.- mkfs.ext2 /dev/hda1
5.- lilo -r /mnt/cf -C /etc/lilo.conf -> to install lilo in my compact flash.

But when I insert compact flash and switch on system, Bios say that there is not boot.

Any advice

Best reagards
 
Old 11-24-2008, 07:59 AM   #2
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
This may help.

http://www.pendrivelinux.com/search/...sa=Search#1028
 
Old 11-24-2008, 08:12 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware«
Posts: 10,894
Blog Entries: 1

Rep: Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308Reputation: 1308
Hi,
Quote:
Originally Posted by webquinty View Post
Hello,
Well, I am trying to boot linux from compact flash but I can not do it.

I follow this steps:
1.- dd if=/dev/zero of=/dev/hda -> this is my compact flash in my system.
2.- lilo -M /dev/hda mbr -> to install a master boot recorder
3.- With fdisk I have create a linux partition.
4.- mkfs.ext2 /dev/hda1
5.- lilo -r /mnt/cf -C /etc/lilo.conf -> to install lilo in my compact flash.

But when I insert compact flash and switch on system, Bios say that there is not boot.

Any advice

Best reagards
Code:
excerpt form 'man lilo';

 -r root-directory
              Before doing anything else, do a chroot to the indicated  direc-
              tory.  The new root directory must contain a /dev directory, and
              may need a /boot directory. It may also need  an  /etc/lilo.conf
              file.

You want to write to the MBR so;

Code:
excerpt from 'man lilo';

 -b bootdev
              Specify  the  boot  device;  i.e., where the boot loader will be
              installed.  "-b /dev/hda" specifies the Master Boot Record;  "-b
              /dev/sdb5"  specifies the first extended partition on the second
              SCSI disk.
So to write to the MBR;
Code:
~#lilo -v -t -b /dev/your_device     #sda, hda this will only test 
~#lilo -v -b /dev/your_device        #this will write MBR to your_device
I suggest that you look at the 'man lilo' & 'man lilo.conf' to get a good understanding.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot Linux From Scratch on a Compact Flash super_tomtom Linux - Embedded & Single-board computer 1 06-27-2008 07:28 AM
linux does not boot on external board with compact flash raklo Linux - Hardware 1 09-10-2006 04:17 PM
linux does not boot from compact flash raklo Linux - General 1 09-09-2006 03:50 AM
Boot Linux from Compact Flash IDE ludwig Linux - Hardware 2 08-18-2003 01:23 PM


All times are GMT -5. The time now is 02:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration