LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 11-16-2005, 02:02 PM   #1
yorgodillo
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
lvm2 booting - can't find ext3


Dear All,

I have Fedora Core 4.

I created a volume group called lvm-root.

In that volume group I created only one logical partition, called lvm0.

I mounted it and copied my current root filesystem there (using cp -ax).

I used mkinitrd 5.0.8 with the appropriate fstab file (see bottom) and the kernel
version 2.6.11-1.1369_FC4.

Booting from the cloned root filesystem (lvm0) was impossible as I got
the following error :

VFS: can't frin ext3 filesystem on dev ram0

Note : before that message I got the message that lvm-root was
successfully activated.

My fstab file is :
===============
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/lvm-root/lvm0 / ext3 defaults,errors=remount-ro 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=SWAP-sda7 swap swap defaults 0 0
/dev/sda1 /media/windows_C ntfs ro,umask=0222 0 0

/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
/dev/hda /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0

My initrd's init script is :
================
#!/bin/nash

mount -t proc /proc /proc
setquiet
echo Mounting proc filesystem
echo Mounting sysfs filesystem
mount -t sysfs /sys /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs /dev /dev
mkdir /dev/pts
mkdir /dev/shm
mkdir /dev/mapper
echo Creating initial device nodes
mknod /dev/console c 5 1
mknod /dev/null c 1 3
mknod /dev/ram b 1 1
mknod /dev/rtc c 10 135
mknod /dev/systty c 4 0
mknod /dev/tty c 5 0
mknod /dev/zero c 1 5
mknod /dev/tty0 c 4 0
mknod /dev/tty1 c 4 1
mknod /dev/tty2 c 4 2
mknod /dev/tty3 c 4 3
mknod /dev/tty4 c 4 4
mknod /dev/tty5 c 4 5
mknod /dev/tty6 c 4 6
mknod /dev/tty7 c 4 7
mknod /dev/tty8 c 4 8
mknod /dev/tty9 c 4 9
mknod /dev/tty10 c 4 10
mknod /dev/tty11 c 4 11
mknod /dev/tty12 c 4 12
mknod /dev/ttyS0 c 4 64
mknod /dev/ttyS1 c 4 65
mknod /dev/ttyS2 c 4 66
mknod /dev/ttyS3 c 4 67
echo Setting up hotplug.
echo -n /sbin/hotplug > /proc/sys/kernel/hotplug
echo Creating block device nodes.
mkblkdevs
echo "Loading scsi_mod.ko module"
insmod /lib/scsi_mod.ko
echo "Loading sd_mod.ko module"
insmod /lib/sd_mod.ko
echo "Loading libata.ko module"
insmod /lib/libata.ko
echo "Loading sata_nv.ko module"
insmod /lib/sata_nv.ko
echo "Loading jbd.ko module"
insmod /lib/jbd.ko
echo "Loading ext3.ko module"
insmod /lib/ext3.ko
echo "Loading dm-mod.ko module"
insmod /lib/dm-mod.ko
echo "Loading dm-mirror.ko module"
insmod /lib/dm-mirror.ko
echo "Loading dm-zero.ko module"
insmod /lib/dm-zero.ko
echo "Loading dm-snapshot.ko module"
insmod /lib/dm-snapshot.ko
echo Making device-mapper control node
mkdmnod
mkblkdevs
echo Scanning logical volumes
lvm vgscan --ignorelockingfailure
echo Activating logical volumes
lvm vgchange -ay --ignorelockingfailure lvm-root
resume LABEL=SWAP-sda7
echo Creating root device.
mkrootdev -t ext3 -o defaults,errors=remount-ro,ro /dev/lvm-root/lvm0
echo Mounting root filesystem.
mount /sysroot
echo Setting up other filesystems.
setuproot
echo Switching to new root and running init.
switchroot

Thanks in advance
 
Old 11-16-2005, 04:02 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
You need to move /boot to a non-LVM partition. Grub cannot look inside an LVM.
 
Old 11-18-2005, 04:02 PM   #3
yorgodillo
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
lvm2 booting - can't find ext3

Dear WhatsHisName,

The actual boot process is indeed initiated from an non-lvm partition. This is my grub.conf :

default=1
timeout=5
splashimage=(hd0,8)/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,5)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img
title Fedora Core (2.6.11-1.1369_FC4) 2
root (hd0,8)
kernel /vmlinuz-2.6.11-1.1369_FC4 root=/dev/ram0 rhgb quiet
initrd /initrd-lvm2-2.6.11-1.1369_FC4.img
title Windows XP (SP2)
rootnoverify (hd0,0)

It boots, activates the volgroup and then it says that it cannot find an ext3 filesystem which I suppose its the root filesystem. My partition table is the following

Disk /dev/sda: 37.0 GB, 37019566080 bytes
255 heads, 63 sectors/track, 4500 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3040 24418768+ 86 NTFS volume set
/dev/sda2 3041 4500 11727450 f W95 Ext'd (LBA)
/dev/sda5 4102 4114 104391 7 HPFS/NTFS
/dev/sda6 3519 4101 4682884+ 83 Linux
/dev/sda7 4115 4245 1052226 82 Linux swap / Solaris
/dev/sda8 4246 4500 2048256 83 Linux
/dev/sda9 3041 3042 16033+ 83 Linux
/dev/sda10 3043 3518 3823438+ 8e Linux LVM

As you can see, the Linux LVM partition (/dev/sda10), where the root filesystem lies, is after the /dev/sda9 where the initrd, the kernel and the rest stuff that boot the system lie. Indeed the /dev/sda9 is in the grub.conf the (hd0,8). Thank you for your help
 
  


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
My Sarge lost after reinstall winXP.....VFS:Can't find ext3.. deepclutch Debian 9 12-03-2005 11:01 PM
Problem with Booting after creating ext3 partition on External USB ynyus75 Suse/Novell 1 11-13-2005 02:23 PM
ext3 disk booting error huberg Linux - Hardware 1 09-06-2005 07:44 AM
VFS: Can't find ext3 filesystem manudath Linux - Hardware 0 02-22-2005 05:04 PM
ext3 Filesystem & Dual-Booting? Darkstar274 Linux - Software 1 01-14-2004 04:20 PM


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