help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub-install fails when image is 64 meg and succeeds when image is 2


From: Andrew Stuart
Subject: Re: grub-install fails when image is 64 meg and succeeds when image is 256 meg
Date: Mon, 5 Oct 2015 08:13:46 +1100

Thank you the guidance. Having looked at the output of fdisk I can see the 
start sector is different for the 64meg version.

So I changed my parted command as follows and it works:

sudo parted -s -a optimal test.img mkpart primary ext2 2048s '100%'


thanks!


On 5 Oct 2015, at 7:59 am, Andrew Stuart <address@hidden> wrote:

Please show "fdisk -l" for both images.

address@hidden:~$ sudo fdisk -l /dev/loop0

Disk /dev/loop0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0e508c47

Device       Boot Start    End Sectors Size Id Type
/dev/loop0p1 *        1 131071  131071  64M 83 Linux



address@hidden:~$ sudo fdisk -l /dev/loop0

Disk /dev/loop0: 256 MiB, 268435456 bytes, 524288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0dde66d2

Device       Boot Start    End Sectors  Size Id Type
/dev/loop0p1 *     2048 524287  522240  255M 83 Linux


_______________________________________________
Help-grub mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-grub




reply via email to

[Prev in Thread] Current Thread [Next in Thread]