Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1H9T5w-0006a6-HP for mharc-grub-devel@gnu.org; Tue, 23 Jan 2007 16:22:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H9T5v-0006Zw-2M for grub-devel@gnu.org; Tue, 23 Jan 2007 16:22:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H9T5s-0006Zk-Gk for grub-devel@gnu.org; Tue, 23 Jan 2007 16:22:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9T5s-0006Zh-BM for grub-devel@gnu.org; Tue, 23 Jan 2007 16:22:16 -0500 Received: from [212.150.49.172] (helo=mtaout2.barak.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9T5r-0001gE-Te for grub-devel@gnu.org; Tue, 23 Jan 2007 16:22:16 -0500 Received: from [192.168.1.2] ([82.166.209.2]) by mtaout2.barak.net.il (Sun Java System Messaging Server 6.2-6.02 (built Apr 25 2006)) with ESMTPA id <0JCC00GVUBCSV830@mtaout2.barak.net.il> for grub-devel@gnu.org; Tue, 23 Jan 2007 23:22:04 +0200 (IST) Date: Tue, 23 Jan 2007 23:20:27 +0200 From: niv To: ace@sannes.org, grub-devel@gnu.org Message-id: <45B67C1B.4030608@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit User-Agent: Thunderbird 1.5.0.9 (X11/20070101) X-detected-kernel: Solaris 9.1 Cc: Subject: grub-setup fails to acess lvm X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 21:22:19 -0000 I will provide the info , then the section I couldnt get past: 1. # cat device.map (hd0) /dev/hda (hd1) /dev/hdb (hd2) /dev/hdc (hd3) /dev/sda (hd4) /dev/sdb 2. (chroot) kurbin grub # lvdisplay File descriptor 6 left open --- Logical volume --- LV Name /dev/vg/RaidRoot VG Name vg LV UUID Y6cGVN-LGVo-xgjG-05BM-XdRn-2lPN-dyiTuF LV Write Access read/write LV Status available # open 2 LV Size 200.00 GB Current LE 51200 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:0 --- Logical volume --- LV Name /dev/vg/boot VG Name vg LV UUID feiwNM-e85R-a33T-ozDL-kHvr-aVB2-w4GwPp LV Write Access read/write LV Status available # open 1 LV Size 32.00 MB Current LE 8 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1 --- Logical volume --- LV Name /dev/vg/swap VG Name vg LV UUID SDX7rq-Bjtu-D8bR-8OJF-Ov33-cfFj-K9stU5 LV Write Access read/write LV Status available # open 0 LV Size 512.00 MB Current LE 128 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:2 3. (chroot) kurbin grub # ./grub-setup -d $PWD -v -r '(md1)' -m $PWD/device.map '(md1,1)' grub-setup: info: prefix = /grub grub-setup: error: Can't open /dev/md1,1: No such file or directory 4. (chroot) kurbin grub # ./grub-setup -d $PWD -v -r '(md1)' -m $PWD/device.map '(m d1)' grub-setup: info: prefix = /grub grub-setup: info: /dev/sda starts from 0 grub-setup: info: getting the size of /boot/grub/boot.img grub-setup: info: reading /boot/grub/boot.img grub-setup: info: getting the size of /boot/grub/boot.img grub-setup: info: getting the size of /boot/grub/core.img grub-setup: info: reading /boot/grub/core.img grub-setup: info: getting the size of /boot/grub/core.img grub-setup: info: the size of hd3 is 156301488 grub-setup: info: setting the root device to `md1' grub-setup: info: opening the device `/dev/sda' grub-setup: info: will leave the core image on the filesystem grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G RUB grub-setup: info: couldn't open the core image grub-setup: info: error message = unknown device grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G RUB again grub-setup: info: couldn't open the core image grub-setup: info: error message = unknown device grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G RUB again grub-setup: info: couldn't open the core image grub-setup: info: error message = unknown device grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G RUB again grub-setup: info: couldn't open the core image grub-setup: info: error message = unknown device grub-setup: info: attempting to read the core image `(md1)/grub/core.img' from G RUB again grub-setup: info: couldn't open the core image grub-setup: info: error message = unknown device grub-setup: error: Cannot read `(md1)/grub/core.img' correctly what to put instead of md1??