From: andriy <l.andriy@gmail.com> To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org> Subject: [sisyphus] grub2+lvm+root_fs Date: Fri, 02 Aug 2013 13:27:52 +0300 Message-ID: <51FB89A8.3070104@gmail.com> (raw) Здравствуйте! Пробую перевести систему с одного HDD на другой, с обыкновенной разбивки диска на LVM. LVM создал без проблем. Скопировал данные. Но не могу сделать другой HDD загружаемым. Структура диска с LVM -32мб места для загрузчика (должно было бы хватить) - sdb1 (просто раздел) - sdb2 (swap) - sdb3 содержит LVM: dm0 - root (/dev/mapper/andriy2tblvm--vol-AndriyL2TBlvm--root, uuid=f86aeba8-708b-4f85-884f-ca984c1497c5), dm1 - home. В /etc/sysconfig/grub2 GRUB_PRELOAD_MODULES='lvm' update-grub генерирует такой /boot/grub/grub.cfg: -------------- insmod lvm ... ... menuentry 'ALT Linux 6.0.1 Spt' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f86aeba8-708b-4f85-884f-ca984c1497c5' { savedefault load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod lvm insmod ext2 set root='lvm/andriy2tblvm--vol-AndriyL2TBlvm--root' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='lvm/andriy2tblvm--vol-AndriyL2TBlvm--root' f86aeba8-708b-4f85-884f-ca984c1497c5 else search --no-floppy --fs-uuid --set=root f86aeba8-708b-4f85-884f-ca984c1497c5 fi echo 'Loading Linux 3.9.9-std-def-alt1 ...' linux /boot/vmlinuz-3.9.9-std-def-alt1 root=/dev/mapper/andriy2tblvm--vol-AndriyL2TBlvm--root ro failsafe vga=normal panic=30 splash init=/sbin/systemd echo 'Loading initial ramdisk ...' initrd /boot/initrd-3.9.9-std-def-alt1.img } .... -------------- grub-install /dev/sdb - все ок /etc/fstab: [root@andriy grub]# cat /etc/fstab proc /proc proc nosuid,noexec,gid=proc 0 0 devpts /dev/pts devpts nosuid,noexec,gid=tty,mode=620 0 0 tmpfs /tmp tmpfs nosuid 0 0 /dev/mapper/andriy2tblvm--vol-AndriyL2TBlvm--root / ext4 defaults 1 1 UUID=55e04e27-7119-472d-8598-ded3ecbf3ada swap defaults 0 0 /dev/sr0 /media/cdrom udf,iso9660 ro,noauto,user,utf8 0 0 none /proc/bus/usb usbfs defaults,devgid=428,devmode=664 0 0 /dev/mapper/andriy2tblvm--vol-AndriyL2TBlvm--home /home ext4 defaults 1 1 На этапе загрузки получаю: initrd: loop: ERROR: /root: Not mounted initrd: Stage 'loop' failed .... Crtrl-D Что я делаю не так или где почитать как правильно?
next reply other threads:[~2013-08-02 10:27 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-08-02 10:27 andriy [this message] 2013-08-02 10:32 ` Anton Gorlov 2013-08-02 10:35 ` andriy 2013-08-03 10:22 ` [sisyphus] [solved :)] grub2+lvm+root_fs andriy 2013-08-03 10:48 ` Anton Gorlov 2013-08-03 12:16 ` andriy 2013-08-17 16:00 ` Aleksey Avdeev
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=51FB89A8.3070104@gmail.com \ --to=l.andriy@gmail.com \ --cc=sisyphus@lists.altlinux.org \ /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
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git