public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] root in LVM with ext4 as mount ext2
@ 2010-08-12  3:22 sam new
  2010-08-12 11:09 ` [gentoo-user] " sam new
  0 siblings, 1 reply; 5+ messages in thread
From: sam new @ 2010-08-12  3:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1767 bytes --]

Hi all,
       I transfer data to a new harddisk  ,and use LVM . when it boots up
,the root is mounted as ext2 ,the real filesystem is ext4 ,how should I do ?

here is /etc/fstab
/dev/sda5               /boot           ext3            noatime         0 1
/dev/mapper/sysvg-root          /               ext4
noatime         0 1
/dev/mapper/sysvg-usr          /usr            ext4
noatime         0 1
/dev/mapper/sysvg-home         /home           ext4
noatime         0 1
/dev/mapper/sysvg-var          /var            ext4
noatime         0 1
/dev/sda6               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            users,noauto,ro 0 0
/dev/sda2               /mnt/cpan       ntfs-3g         users           0 0
/dev/sda3               /mnt/dpan       ntfs-3g         users           0 0
#/dev/sda6               /mnt/epan       ntfs-3g         users           0 0
#/dev/sda1               /mnt/vbox       ntfs-3g
users,exec           0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs
nodev,nosuid,noexec     0 0
proc                    /proc           proc
defaults                0 0


and menu.lst  the initramfs  I use genkernel
 title Gentoo Linux 2.6.34-r1 LVM
root (hd0,4)
kernel /boot/kernel-2.6.34-gentoo-r1 dolvm root=/dev/ram0
real_root=/dev/sysvg/root rootfstype=ext4 init=/linuxrc
splash=silent,theme:emergence console=tty quiet
initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r1

[-- Attachment #2: Type: text/html, Size: 1950 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: root in LVM with ext4 as mount ext2
  2010-08-12  3:22 [gentoo-user] root in LVM with ext4 as mount ext2 sam new
@ 2010-08-12 11:09 ` sam new
  2010-08-12 11:32   ` Alex Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: sam new @ 2010-08-12 11:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1930 bytes --]

any one help?

On 12 August 2010 11:22, sam new <maoben1234@gmail.com> wrote:

> Hi all,
>        I transfer data to a new harddisk  ,and use LVM . when it boots up
> ,the root is mounted as ext2 ,the real filesystem is ext4 ,how should I do ?
>
> here is /etc/fstab
> /dev/sda5               /boot           ext3            noatime         0 1
> /dev/mapper/sysvg-root          /               ext4
> noatime         0 1
> /dev/mapper/sysvg-usr          /usr            ext4
> noatime         0 1
> /dev/mapper/sysvg-home         /home           ext4
> noatime         0 1
> /dev/mapper/sysvg-var          /var            ext4
> noatime         0 1
> /dev/sda6               none            swap            sw              0 0
> /dev/cdrom              /mnt/cdrom      auto            users,noauto,ro 0 0
> /dev/sda2               /mnt/cpan       ntfs-3g         users           0 0
> /dev/sda3               /mnt/dpan       ntfs-3g         users           0 0
> #/dev/sda6               /mnt/epan       ntfs-3g         users           0
> 0
> #/dev/sda1               /mnt/vbox       ntfs-3g
> users,exec           0 0
> #/dev/fd0               /mnt/floppy     auto            noauto          0 0
>
> # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
> # POSIX shared memory (shm_open, shm_unlink).
> # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
> #  use almost no memory if not populated with files)
> shm                     /dev/shm        tmpfs
> nodev,nosuid,noexec     0 0
> proc                    /proc           proc
> defaults                0 0
>
>
> and menu.lst  the initramfs  I use genkernel
>  title Gentoo Linux 2.6.34-r1 LVM
> root (hd0,4)
> kernel /boot/kernel-2.6.34-gentoo-r1 dolvm root=/dev/ram0
> real_root=/dev/sysvg/root rootfstype=ext4 init=/linuxrc
> splash=silent,theme:emergence console=tty quiet
> initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r1
>
>
>

[-- Attachment #2: Type: text/html, Size: 2294 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: root in LVM with ext4 as mount ext2
  2010-08-12 11:09 ` [gentoo-user] " sam new
@ 2010-08-12 11:32   ` Alex Schuster
  2010-08-12 11:48     ` sam new
  2010-08-12 11:54     ` sam new
  0 siblings, 2 replies; 5+ messages in thread
From: Alex Schuster @ 2010-08-12 11:32 UTC (permalink / raw
  To: gentoo-user

sam new writes:

> any one help?

Yes, google. With 'rootfstype=ext4 initrd genkernel' the first hit shows 
bug #221245 (rootfs is incorrectly mounted as ext2). I assume you have 
ext4 compiled as module?

	Wonko



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: root in LVM with ext4 as mount ext2
  2010-08-12 11:32   ` Alex Schuster
@ 2010-08-12 11:48     ` sam new
  2010-08-12 11:54     ` sam new
  1 sibling, 0 replies; 5+ messages in thread
From: sam new @ 2010-08-12 11:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

thanks, I have google yet maybe wrong keywords ,yes i compiled as
module,does it comiled in kernel can slove the problem?

On 12 August 2010 19:32, Alex Schuster <wonko@wonkology.org> wrote:

> sam new writes:
>
> > any one help?
>
> Yes, google. With 'rootfstype=ext4 initrd genkernel' the first hit shows
> bug #221245 (rootfs is incorrectly mounted as ext2). I assume you have
> ext4 compiled as module?
>
>        Wonko
>
>

[-- Attachment #2: Type: text/html, Size: 731 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: root in LVM with ext4 as mount ext2
  2010-08-12 11:32   ` Alex Schuster
  2010-08-12 11:48     ` sam new
@ 2010-08-12 11:54     ` sam new
  1 sibling, 0 replies; 5+ messages in thread
From: sam new @ 2010-08-12 11:54 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

I have check it again ,I compile it into the kernel
 On 12 August 2010 19:32, Alex Schuster <wonko@wonkology.org> wrote:

> sam new writes:
>
> > any one help?
>
> Yes, google. With 'rootfstype=ext4 initrd genkernel' the first hit shows
> bug #221245 (rootfs is incorrectly mounted as ext2). I assume you have
> ext4 compiled as module?
>
>        Wonko
>
>

[-- Attachment #2: Type: text/html, Size: 663 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-12 12:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-12  3:22 [gentoo-user] root in LVM with ext4 as mount ext2 sam new
2010-08-12 11:09 ` [gentoo-user] " sam new
2010-08-12 11:32   ` Alex Schuster
2010-08-12 11:48     ` sam new
2010-08-12 11:54     ` sam new

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox