LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-13-2008, 04:57 PM   #1
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Grub/Lilo/Syslinux on /dev/sda1


OK, to know what I am trying to do, here is a history of my pursuits:

I was trying to install a Linux distribution on my Compact Flash card to use on my tablet pc. It had to be able to install programs on as I need to put on the touchscreen and wifi drivers. So, I came across ThinStation, which besides being made to control other computers, can be used as an actual distribution.

ThinStation didn't work out originally as when I found a tutorial with a complete system, it froze when trying to configure the network card (the only network card is the wireless PCMCIA card). During this install, I downloaded SysLinux and used the SysLinux/mtools/syslinux binary to install syslinux to /dev/sda (my CF card). I was not supposed to compile Syslinux, so I didn't.

Since ThinStation didn't work, I replaced the kernel (vmlinuz) with my current 12.1 huge smp kernel and deleted the initrd as well as the line concerning it in the syslinux.conf file. This booted the kernel VERY fast.. until I got the message:
Code:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (8, 2)
Now, I figured it had something to do with the fact the partition had to be formatted to vfat, and since I am now a Slacker at heart, I decided to reformat to ext3 and do it again. The problem is, I think the binary in SysLinux/mtools is only for vfat partitions.

So, essentially, how do I get Grub, Lilo, or SysLinux to install on /dev/sda and configure it to boot? As well as, I need a bash shell and dhcp so I can download the programs I need. I don't know if its possible to only install a kernel, bash, and dhcpcd as I have never really gotten that "deep" before, but I would certainly appreciate any help I am offered.

Thanks!
 
Old 06-13-2008, 06:10 PM   #2
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Just realized I would (obviously) need gcc and wget to download sources and install them.
 
Old 06-13-2008, 06:25 PM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
If you boot without initrd, the kernel MUST have all drivers necessary for booting compiled into the kernel, not a module. This includes any bus drivers and filesystem drivers for filesystems than need to be accessed to mount the root partition. Once the root partition is mounted, then you can proceed to load other drivers (ethernet etc).
 
Old 06-13-2008, 10:15 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Well, I made the initrd.gz with the following command:
Code:
mkinitrd -c -k vmlinuz-huge-smp-2.6.24.5-smp -m ext3 -f ext3 -r /dev/sda1

Here is my full error:
Code:
VFS: Cannot open root device "<NULL>" or unknown-block(8,2)
Please append a correct "root=" boot option; here are the several available partitions:
0300     125184 hda driver: ide-disk
  0301     125168 hda1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)
Here is my syslinux.cfg:
Code:
timeout 0
default vmlinuz
append loadramdisk=1
initrd=initrd.gz
ramdisk_blocksize=4096
root=/dev/hda1
ramdisk_size=262144 splash=silent vga=791
The only other errors I get are right after it unzips vmlinuz:
Code:
Missing parameter in configuration file.
Missing parameter in configuration file.
Missing parameter in configuration file.
Unknown keyword in configuration file.
I hope someone knows how to make this work, cause I am not having any luck...is there by any chance a SysLinux installer besides /mtools/syslinux? Given it requires a vfat partition. I wonder if I actually need ext3 but syslinux won't install to it.
 
Old 06-14-2008, 01:32 AM   #5
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Well, obviously 'grub' starts up. The trick is to press a key to interrupt grub, then use grub's "find" command to locate where the boot device is and specify a suitable root= option.

The CF may be '/dev/sda' on the computer you use to write to the CF with, but on the computer that boots from the CF it may be '/dev/hda' - or hdb, or sdb. Are there any special jumpers you need to put in to make the CF the IDE "master" device?
 
Old 06-14-2008, 08:56 AM   #6
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
No...see, first of all, I'm using syslinux on it right now, not grub. Secondly, my configs are set up for hda1, which is (obviously) what the table reads it as, given there is no other boot media plugged into it.
 
  


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
GRUB drive designation /dev/sda1 -> hd(1,0)?? ChootarLaal Ubuntu 13 03-01-2008 08:56 AM
Syslinux as an alternative to GRUB/LILO AP81 Linux - General 6 12-05-2007 10:18 AM
Grub boot Hard disk- make 'root=' option a variable (/dev/sda1 keeps changing), carl0ski Linux - General 4 02-03-2007 08:55 PM
How can I install Grub to /dev/sda1 stardotstar Linux - Software 3 02-13-2006 09:55 PM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM

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

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