LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 06-02-2004, 08:49 AM   #1
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Rep: Reputation: 30
Unable to mount root fs on 03:01, after init.


using syslinux as the bootloader. 1gb fat16 partition.

Code:
boot : bzImage init=initrd.gz root=/dev/hda1
init does its stuff. then spews this out at me, just before it would dump me to the console.

Code:
VFS: Cannot open root device 03:01
Kernel panic: VFS: Unable to mount root fs on 03:01
I guess it it reading the hdd partition okey - otherwise it wouldent be able to open initrd.gz ...
 
Old 06-03-2004, 09:15 AM   #2
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
*bump*

any help on this ?
 
Old 06-03-2004, 09:58 AM   #3
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Linux cannot run on FAT. The root partition needs to be one of the *nix supported file systems (Ext2/3, Reiser, XFS, etc).
 
Old 06-03-2004, 04:20 PM   #4
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
shit. thanks then.
 
Old 06-03-2004, 05:10 PM   #5
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
You could change the boot line to "root=/dev/ram" which would load Linux into a RAMDRIVE (assuming the kernel has RAM drive support compiled in, anyway).

What exactly are you trying to do?
 
Old 06-04-2004, 12:06 PM   #6
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
trying to *make* a distribution without all of the crap. trying to understand the way linux works.

I think I got it

I made the kernel load itself into the ram - and it all appears to be working. Thanks guys.

Is there any disadvantage of this ?

Last edited by xconspirisist; 06-04-2004 at 12:09 PM.
 
Old 06-04-2004, 04:04 PM   #7
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Well, running out of RAM makes it a "live" distro. It doesn't need a hard disk to run.
 
Old 06-04-2004, 06:40 PM   #8
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
What exactly is initrd.gz ?
 
Old 06-04-2004, 07:36 PM   #9
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
it is a ramdisk that provides modules for the kernel before the root partition can be mounted

for example, if you compile ext3 support as a module, and your root partition is in ext3, the kernel doesn't know how to read your filesystem in order to load the module.... so initrd just puts the module in ram

*edit: .gz means it is gzipped
 
Old 06-05-2004, 03:15 AM   #10
xconspirisist
Member
 
Registered: Dec 2002
Location: United Kingdom
Distribution: Ubuntu
Posts: 276

Original Poster
Rep: Reputation: 30
I am all overthe place with this project, so thanks for the help. thanks for baring with my rude language too, i was shatterd yestorday.

1) Am I correct that syslinux can only boot from fat partitions ?

2) To change initrd.gz, can I quite literally unzip it ?

3) If my kernel is on an ext3 partition, and syslinux boots that kernel, does that mean the kernel has ext3 support?

Last edited by xconspirisist; 06-05-2004 at 03:29 AM.
 
Old 06-05-2004, 12:24 PM   #11
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
syslinux is a boot loader correct? did you install it separately or did it come with your distro?
i don't know anything about syslinux... if it can only be installed on fat32 partitions (like powerquest's bootmagic) then it is probably only able to boot from fat32 partitions; in that case, you will probably want to look into using a lilo or grub boot loader

initrd doesn't need to be "changed" but should be rebuilt every time you compile a kernel; you can gunzip it and mount it in a ramdisk if you want to see its contents, but its contents are already going to be in /lib/modules/kernel-version/

to build a new initrd, i believe you simply have to do make initrd after doing make modules && make modules_install

if your kernel can mount your ext3 root partition, then it only means it has some way of understanding the ext3 format; to find out if ext3 is a module or kernel driver (builtin to the kernel), check lsmod or just go into your kernel source and do make menuconfig
 
Old 06-15-2004, 01:44 AM   #12
Sovin Nai
LQ Newbie
 
Registered: Jun 2004
Location: WA, USA
Distribution: Trying to decide.
Posts: 17

Rep: Reputation: 0
I am a semi newbie. I have been using redhat 9 and then fedora core for a year, but never delved into the actual operations of linux or console based operations. I am buying a laptop for college and so am experimenting with distros now on my desktop to decide what to put on the laptop. Here is my problem:

I am trying to install slackware 9.1 but get this same message. I used fdisk to partition and then slackware's setup formatting and installation of lilo. I made hda1 bootable in fdisk. I used the reiserfs(?) format, and am at a loss. I suppose I will try with ext3.

Sovin
 
  


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
Unable to mount root fs King4lex Debian 3 09-01-2004 07:09 PM
unable to mount root fs awreneau Debian 3 06-11-2004 11:51 AM
unable to mount root recon2 Linux - Software 18 10-13-2003 04:55 PM
Unable to mount root fs moger Linux - General 2 01-25-2003 03:28 PM
unable to mount root fs decooley Linux - Software 1 10-05-2001 06:13 AM


All times are GMT -5. The time now is 09:20 PM.

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