LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 07-30-2009, 07:30 AM   #1
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Rep: Reputation: 0
Smile mount : error 6 mounting ext3


Hi All,

I have been getting an error of this kind whenever i try to boot. i try to boot a target pc with a bootable cd created out of my Kernel image(vmlinuz-2.6.18)and the initrd image (2.6.18) using the command /sbin/mkbootdisk on my linux pc.

***********************************************************
Red Hat nash version 3.5.14 starting
Mounting /proc filesystem
Creating block devices
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 224k freed
Kernel panic: No init found. Try passing init= option to kernel.

*********************************************************

I googled and found out that ext3 fs should be a part of the kernel and not a module . But i even tried to configure into kernel but found no improvement.

What all needs to be added ?
Please help needed urgently
 
Old 07-31-2009, 12:31 AM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
You have to build ext2 and ext3 directly into the kernel, NOT as modules.

Open your .config and make sure you see all of this in there:
Code:
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y

Last edited by foodown; 07-31-2009 at 12:37 AM.
 
Old 07-31-2009, 12:55 AM   #3
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
Hi Buddy,

Thanks for ur reply.

I checked in my .config file and found this

CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y

They have been built into the kernel.

Alternate solution Plzzzzzzz
 
Old 07-31-2009, 01:05 AM   #4
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
This is probably a dumb question, so I apologize in advance. You have built the kernel with this config, installed it, and reinstalled LILO or GRUB, right?

If this is a SATA hard drive that you are booting from, are the correct SATA drivers being built into the kernel?

Last edited by foodown; 07-31-2009 at 01:09 AM.
 
Old 07-31-2009, 01:21 AM   #5
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
What do u mean by reinstalling Grub ?????

I have enabled the Serial ATA drivers in the (SCSI low level drivers option) in make menuconfig.
What are the other SATA drivers you feel are to be built into the kernel ?


My /boot/grub/menu.lst looks like this

Title Fedora core (2.6.18)
root (hd0,0)
kernel /vmlinuz-2.6.18 ro root=LABEL=/ rghb
initrd /initrd-2.6.18.img

Any changes here ?
 
Old 07-31-2009, 01:41 AM   #6
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
I use LILO, so I am a bit out of my comfort zone, but I know that you have to recycle GRUB onto your MBR just like you would LILO after updating your kernel image.

According to the GRUB Manual, you can use the utility 'grub-install' to do this.

The config you posted looks fine to me, so long as your new kernel image is actually located at /vmlinuz-2.6.18 and everything else is correct.

If you are having to boot from a USB stick or CD at the moment, you may have to call 'grub' directly to install it for booting . . . it's all in the manual: http://orgs.man.ac.uk/documentation/grub/grub_3.html

You ARE doing a 'make bzimage' from /usr/src/linux, right? Then doing a 'cat arch/x86_64/boot/bzImage > /vmlinuz-2.6.18' or some equivalent to get the new image in place? (Again, sorry to ask dumb questions . . . these are things that easily could be it if it were me having this problem.)
 
Old 07-31-2009, 02:32 AM   #7
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
Hi Buddy,

Thanks for the reply.
Yes ,I do a "make bzImage" and a "make install" to copy the bzImage onto /boot folder.

what is the difference between / and /boot ?

Is what which is there in the .config right ?
should it be /boot/vmlinuz-2.6.18 or /vmlinuz-2.6.18 ?
 
Old 07-31-2009, 09:56 PM   #8
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by AjayCelst View Post
My /boot/grub/menu.lst looks like this

Title Fedora core (2.6.18)
root (hd0,0)
kernel /vmlinuz-2.6.18 ro root=LABEL=/ rghb
initrd /initrd-2.6.18.img
It looks like you are pointing GRUB at a kernel in /.

It doesn't really matter, as long as you are pointing GRUB to the kernel that you want to use.
 
  


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
mount error 6 mounting ext3 jwollen Linux - Newbie 3 07-23-2007 10:22 AM
Mount : error 6 mounting ext3.. and kernal panic Asificare Mandriva 2 01-15-2005 03:31 PM
mount: error 19 mounting ext3, on 2.6.6 jg167 Linux - Newbie 5 06-15-2004 03:28 AM
mount: error 6 mounting ext3 an0nym0us Linux - General 4 03-31-2004 08:37 AM
mount: error 6 mounting ext3 cknaresh Linux - Newbie 2 11-18-2002 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:29 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