All of lore.kernel.org
 help / color / mirror / Atom feed
From: "alexferro@tiscali.it" <alexferro@tiscali.it>
To: linux-lvm@redhat.com
Subject: [linux-lvm] HELP! --> mount: error 2 mounting ext2 flags
Date: Tue, 10 Jun 2008 16:23:44 +0200 (CEST)	[thread overview]
Message-ID: <28867486.1213107824481.JavaMail.root@ps12> (raw)

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

                 reply	other threads:[~2008-06-10 14:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28867486.1213107824481.JavaMail.root@ps12 \
    --to=alexferro@tiscali.it \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.