如何在LVM上使用/ partition安装ubuntu 12.10?

安装Ubuntu 12.10后,我再也无法启动我的机器了。 我收到以下错误。

Gave up waiting for root device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Check root= (did the system wait for the right device?) - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/mapper/isw_cjchifbged_Volume0p6 does not exist. Dropping to a shell! 

我在一个拥有Windows 7和Intel快速启动(win swap partition)的系统上安装了Ubuntu 12.10。 硬盘是假的0,这是live cd所理解的。 我想要一个双启动 ,所以我有一个主/启动分区和LVM中的其余Ubuntu 。 Windows驻留在两个主分区中(一个60GB用于C:一个350MB用于启动Windows 7)

在这种情况下如何安装ubuntu 12.10? 12.04安装程序似乎理解了我对LVM的意图,并提供了一个可启动系统。
我不能选择“在LVM上安装”选项,因为这将使用win7交换/hibernate分区破坏我已经存在的LVM。 相反,我选择“其他东西”并指定用于安装的现有分区(/ boot,/,/ home,swap)。

我的分区方案如下所示,但请记住,这是我安装12.04时的备份信息。 用于12.10安装的方案略有不同,但它在概念上是相似的

 Disk /dev/mapper/isw_cjchifbged_Volume0: 256.1 GB, 256066715648 bytes 255 heads, 63 sectors/track, 31131 cylinders, total 500130304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 32768 bytes / 65536 bytes Disk identifier: 0xe240c089 Device Boot Start End Blocks Id System /dev/mapper/isw_cjchifbged_Volume0p1 * 125831168 126547967 358400 7 HPFS/NTFS/exFAT /dev/mapper/isw_cjchifbged_Volume0p2 126547968 127062015 257024 83 Linux /dev/mapper/isw_cjchifbged_Volume0p3 2048 125831167 62914560 7 HPFS/NTFS/exFAT /dev/mapper/isw_cjchifbged_Volume0p4 127062016 500127743 186532864 f W95 Ext'd (LBA) /dev/mapper/isw_cjchifbged_Volume0p5 483315712 500127743 8406016 84 OS/2 hidden C: drive /dev/mapper/isw_cjchifbged_Volume0p6 127064064 168024063 20480000 83 Linux /dev/mapper/isw_cjchifbged_Volume0p7 466497536 483313663 8408064 82 Linux swap / Solaris /dev/mapper/isw_cjchifbged_Volume0p8 168026112 466495487 149234688 83 Linux Partition table entries are not in disk order 

我为解决问题而尝试的是以下内容:
从Live CD启动(实际上是:usb驱动器),
将/,/ boot,/ dev,/ sys和/ proc以及chroot挂载到该系统中(遵循本指南 ),
apt-get install lvm2安装;遵循本指南 ;自动触发dpkg-reconfigure lvm2

这并没有解决我的问题。 当我从那个shell(BusyBox内置的shell ash)中检查/ dev / mapper时,它是空的。

由于我覆盖了以前的Ubuntu 12.04安装,因此没有Windows MBR,因此grub安装程序没有创建Windows选项。 为了确保我能够启动至少某些东西,我运行了Windows恢复工具bootrec.exe /FixMbr 。 现在我的磁盘上有一个完全无法访问的僵尸-ubuntu:P

我自己想通了:

我刚刚再试一次。 我这样做的方法是先使用gparted创建我的分区方案,然后使用ubuntu安装程序并将我想要的分区指定给特定的挂载点。 因为这是我第一次这样做的方式,我不知道是什么让安装程序改变了它的想法。

重要的注意事项:如果您已经安装了某个版本的Grub,并且没有默认的Windows MBR,那么grub安装程序显然不会检测到您的窗口,因此它不会为它创建启动菜单项。 所以首先恢复你的Windows MBR。 最后,不要忘记选择正确的设备(在我的情况下为/dev/mapper/isw…Volume0)来编写mbr。