[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] HELP! --> mount: error 2 mounting ext2 flags



Hi guys! I googled soooo  much but without any successsss...

My setting:
- lilo 22.2
- kernel 2.4.36.5 with lvm,ext2,ext3 static compiled

My fstab:
/dev/hda1 /boot ext3 noatime 1 2
/dev/VOLROOT/ROOTLV / ext2 noatime 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/VOLHOME/HOMELV /home ext2 noatime 1 2
none /proc proc defaults 0 0
/dev/sda2 swap swap defaults 0 0
usbfs /proc/bus/usb usbfs auto 0 0

I have in my linux box:
- 1 ide disk, boot partition -> /dev/hda1
- 1 scsi 3ware controller -> /dev/sda (2Tb) and /dev/sdb (2Tb)
      - it is partitioned into /dev/sda1,/dev/sda2,/dev/sda3 and 
/dev/sdb1

(my future boot partition will be /dev/sda1, now it is /dev/hda1)
my swap partition is /dev/sda2
my ROOTLV logical volume = /dev/sda3
my HOMELV logical volume = /dev/sdb1

Ok, now I write my lilo.conf:
boot=/dev/hda
map=/boot/map
install=/boot/lilo-menu/boot.b
vga=788
default=LVM-2.4.36.5
keytable=/boot/it-latin1.klt
lba32
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.4.36.5
        label=linux-2.4.36.5
        root=/dev/hda5
        initrd=/boot/initrd-2.4.36.5.img
        append="devfs=mount ramdisk_size=8192"
        read-only
image=/boot/vmlinuz-2.4.36.5
        label=LVM-2.4.36.5
        root=/dev/VOLROOT/ROOTLV
        initrd=/boot/initrd-lvm-2.4.36.5.img
        append="devfs=mount ramdisk_size=20198"
        read-only
other=/dev/fd0
        label=floppy
        unsafe


Now I write my initrd->linuxrc:
#!/bin/nash
echo "Inserting modules..."
insmod /lib/modules/3w-9xxx.o
insmod /lib/modules/iteraid.o
insmod /lib/modules/linear.o
insmod /lib/modules/raid1.o
insmod /lib/modules/raid5.o

echo "Mounting /proc filesystem..."
mount -t proc /proc /proc

echo "Creating device file..."
raidautorun /dev/md0
raidautorun /dev/md1

echo "Setting up LVM Volume Groups..."
vgscan
vgchange -a y
vgmknodes

echo "Creating root device..."
mkrootdev /dev/root
echo 0x0100 > /proc/sys/kernel/real-root-dev

echo "Mounting root filesystem..."
mount --ro -t ext2 /dev/VOLROOT/ROOTLV /sysroot
umount /proc
pivot_root /sysroot /sysroot/initrd
echo "Remounting devfs at correct place if necessary..."
handledevfs


So, when my linuxbox boots, I read:
Loading LVM-2.4.36.5 
............................................................................
:
:
Setting up LVM Volume Groups...
vgscan -- reading all physical volumes (this may take a while...)
NBD, minor 0: Request when not-ready.
NBD, minor 1: Request when not-ready.
:
: (much more NBD messages)
:
NBD, minor 98: Request when not-ready.
NBD, minor 99: Request when not-ready.
vgscan -- found inactive volume group "VOLROOT"
vgscan -- found inactive volume group "VOLHOME"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your 
volume groups

vgchange -- volume group "VOLHOME" successfully activated
vgchange -- volume group "VOLROOT" successfully activated

vgmknodes -- successfully made all nodes of volume group "VOLHOME"
vgmknodes -- successfully made all nodes of volume group "VOLROOT"

Creating root device...
Mounting root filesystem...
mount: error 2 mounting ext2 flags Freeing unused kernel memory: 196k 
freed
sh-2.05#

Have you any suggests?

Thanks, Alessandro






_______________________________________________
Tutto quello che vuoi a partire da 1€
http://pages.ebay.it/tiscali/canaleaste.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]