Gentoo Archives: gentoo-user

From: sam new <maoben1234@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] root in LVM with ext4 as mount ext2
Date: Thu, 12 Aug 2010 04:04:20
Message-Id: AANLkTin1incmrVytq3pY+YkA6R_G-rQmmS=GnQ4jGHbz@mail.gmail.com
1 Hi all,
2 I transfer data to a new harddisk ,and use LVM . when it boots up
3 ,the root is mounted as ext2 ,the real filesystem is ext4 ,how should I do ?
4
5 here is /etc/fstab
6 /dev/sda5 /boot ext3 noatime 0 1
7 /dev/mapper/sysvg-root / ext4
8 noatime 0 1
9 /dev/mapper/sysvg-usr /usr ext4
10 noatime 0 1
11 /dev/mapper/sysvg-home /home ext4
12 noatime 0 1
13 /dev/mapper/sysvg-var /var ext4
14 noatime 0 1
15 /dev/sda6 none swap sw 0 0
16 /dev/cdrom /mnt/cdrom auto users,noauto,ro 0 0
17 /dev/sda2 /mnt/cpan ntfs-3g users 0 0
18 /dev/sda3 /mnt/dpan ntfs-3g users 0 0
19 #/dev/sda6 /mnt/epan ntfs-3g users 0 0
20 #/dev/sda1 /mnt/vbox ntfs-3g
21 users,exec 0 0
22 #/dev/fd0 /mnt/floppy auto noauto 0 0
23
24 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
25 # POSIX shared memory (shm_open, shm_unlink).
26 # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
27 # use almost no memory if not populated with files)
28 shm /dev/shm tmpfs
29 nodev,nosuid,noexec 0 0
30 proc /proc proc
31 defaults 0 0
32
33
34 and menu.lst the initramfs I use genkernel
35 title Gentoo Linux 2.6.34-r1 LVM
36 root (hd0,4)
37 kernel /boot/kernel-2.6.34-gentoo-r1 dolvm root=/dev/ram0
38 real_root=/dev/sysvg/root rootfstype=ext4 init=/linuxrc
39 splash=silent,theme:emergence console=tty quiet
40 initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r1

Replies

Subject Author
[gentoo-user] Re: root in LVM with ext4 as mount ext2 sam new <maoben1234@×××××.com>