cannpt boot lvm with encrypted volume without usb

Ioannis Vranos ioannis.vranos at gmail.com
Mon Oct 24 21:04:22 UTC 2011


On Mon, Oct 24, 2011 at 11:56 PM, Asif Iqbal <vadud3 at gmail.com> wrote:
> On Mon, Oct 24, 2011 at 4:51 PM, Ioannis Vranos
> <ioannis.vranos at gmail.com> wrote:
>> On Mon, Oct 24, 2011 at 11:48 PM, Asif Iqbal <vadud3 at gmail.com> wrote:
>>> On Mon, Oct 24, 2011 at 4:40 PM, Ioannis Vranos
>>> <ioannis.vranos at gmail.com> wrote:
>>>> Try running sudo update-grub.
>>>
>>> exact same error
>>
>> What is the output of sudo update-grub?
>
> iqbala at ghar-iqbala:~$ sudo update-grub
> [sudo] password for iqbala:
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-3.0.0-12-generic
> Found initrd image: /boot/initrd.img-3.0.0-12-generic
> Found memtest86+ image: /memtest86+.bin
> done
>
>
>
>>
>> Also, do you have the Hard Disk 1 to boot first?
>
> no /dev/sda1 is /boot and /dev/sdb5 is the crypted fs
>
> iqbala at ghar-iqbala:~$ sudo fdisk /dev/sda
>
> The device presents a logical sector size that is smaller than
> the physical sector size. Aligning to a physical sector (or optimal
> I/O) size boundary is recommended, or performance may be impacted.
>
> Command (m for help): p
>
> Disk /dev/sda: 750.2 GB, 750156374016 bytes
> 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disk identifier: 0x0005266a
>
>   Device Boot      Start         End      Blocks   Id  System
> /dev/sda1            2048      499711      248832   83  Linux
> /dev/sda2          501758  1465147391   732322817    5  Extended
> Partition 2 does not start on physical sector boundary.
> /dev/sda5          501760  1465147391   732322816   83  Linux


Try editting /etc/crypttab and make it:

sdb5_crypt   /dev/sda5     none     luks


(leave "sdb5_crypt" string as it is), and reboot.


-- 
Ioannis Vranos

http://www.cpp-software.net




More information about the ubuntu-users mailing list