Re: [RFC] Detect other software using embedding area

2010-09-05 Thread C. P. Ghost
On Tue, Aug 31, 2010 at 2:54 PM, Thomas Schmitt wrote: > Maybe one should use external boot media of > which GRUB can claim complete ownership. > I.e. an USB stick or a CD which hosts GRUB and > a custom configuration. > This way, GRUB would have no shares in the > embattled area at all. This way

Re: Which partitioning schemes should be supported by GRUB?

2010-06-09 Thread C. P. Ghost
2010/6/10 Grégoire Sutre : > On 06/07/2010 10:46 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > >> There are two parts of this question: >> 1) Which partition schemes should GRUB be able to read modules and >> payloads from ? It's platform-indepedent > > Agreed. > >> and 2 conditions apply: >>

Re: Are BSD partitions not supported?

2010-05-24 Thread C. P. Ghost
2010/5/24 Grégoire Sutre : > On 05/23/2010 05:44 PM, C. P. Ghost wrote: > >> With bsdlabel_v3.diff, and the image I've posted here, I get dropped >> into grub_rescue. This breaks Vladimir's second patch on FreeBSD. >> :-( > > Thanks for testing the patch.

Re: Are BSD partitions not supported?

2010-05-23 Thread C. P. Ghost
2010/5/23 Grégoire Sutre : > On 05/19/2010 09:20 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > [snip] > -  delta = grub_partition_get_start (disk->partition); > +      delta = grub_le_to_cpu32 (whole_disk_be.offset); > > As dicsussed on irc, this makes the delta completely dependent on the >

Re: Are BSD partitions not supported?

2010-05-20 Thread C. P. Ghost
On Wed, May 19, 2010 at 9:41 PM, C. P. Ghost wrote: > The next test would be to create two slices on an image, > and redo the tests on the second slice (which won't start > at offset 0 of the disk, so we can be sure the logic is > correct). Will do this tomorrow with the pa

Re: Are BSD partitions not supported?

2010-05-19 Thread C. P. Ghost
2010/5/19 Vladimir 'φ-coder/phcoder' Serbinenko : > Regards > Vladimir 'φ-coder/phcoder' Serbinenko Trying the *second* patch (now with -L/usr/lib32 instead of removing -lgcc): phenom# grub-install --root-directory=/mnt --modules=ufs2 /dev/md /usr/local/sbin/grub-setup: warn: Your embedding a

Re: Are BSD partitions not supported?

2010-05-19 Thread C. P. Ghost
2010/5/19 Navdeep Parhar : >>> /usr/local/bin/gcc44 -o kernel.img kernel_img-kern_i386_pc_startup.o >>> kernel_img-kern_i386_misc.o kernel_img-kern_main.o >>> kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o >>> kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o >

Re: Are BSD partitions not supported?

2010-05-19 Thread C. P. Ghost
2010/5/19 Vladimir 'φ-coder/phcoder' Serbinenko : >> /usr/local/bin/gcc44 -o kernel.img kernel_img-kern_i386_pc_startup.o >> kernel_img-kern_i386_misc.o kernel_img-kern_main.o >> kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o >> kernel_img-kern_file.o kernel_img-kern_fs.o kern

Re: Are BSD partitions not supported?

2010-05-19 Thread C. P. Ghost
2010/5/19 C. P. Ghost : > 2010/5/19 Vladimir 'φ-coder/phcoder' Serbinenko : >> Mailer. Now I attach it > > Ah, thanks. Patches fine now. I get a compile error: > > gcc  -nostdlib -static-libgcc  -m32 -Wl,-r,-d -o pre-regexp.o > regexp_mod-gnulib_regex.o re

Re: Are BSD partitions not supported?

2010-05-19 Thread C. P. Ghost
2010/5/19 Vladimir 'φ-coder/phcoder' Serbinenko : > Mailer. Now I attach it Ah, thanks. Patches fine now. I get a compile error: gcc -nostdlib -static-libgcc -m32 -Wl,-r,-d -o pre-regexp.o regexp_mod-gnulib_regex.o regexp_mod-commands_regexp.o nm -g --defined-only -P -p pre-regexp.o | sed 's/^\

Re: Are BSD partitions not supported?

2010-05-19 Thread C. P. Ghost
On Wed, May 19, 2010 at 12:06 AM, C. P. Ghost wrote: > 2010/5/18 Vladimir 'φ-coder/phcoder' Serbinenko : >> This bsdlabel has 2 strangenesses. First one is seen in your log: >> >>  a:   497936       16    unused        0     0 >> In other words for some s

Re: Are BSD partitions not supported?

2010-05-18 Thread C. P. Ghost
2010/5/18 Vladimir 'φ-coder/phcoder' Serbinenko : > This bsdlabel has 2 strangenesses. First one is seen in your log: > >  a:   497936       16    unused        0     0 > In other words for some strange reason it's declared as unused entry slot. Ah, you're right! My mistake. I'll edit the type to

Re: Are BSD partitions not supported?

2010-05-18 Thread C. P. Ghost
2010/5/18 Vladimir 'φ-coder/phcoder' Serbinenko : > C. P. Ghost wrote: >> On Sun, May 16, 2010 at 6:24 PM, C. P. Ghost wrote: >> >>> is support for BSD partitions (or maybe ufs2) broken in grub2 (1.98)? >>> >> >> No replies so far? C

Re: Are BSD partitions not supported?

2010-05-18 Thread C. P. Ghost
On Sun, May 16, 2010 at 6:24 PM, C. P. Ghost wrote: > is support for BSD partitions (or maybe ufs2) broken in grub2 (1.98)? No replies so far? Could a developer *please* have a closer look at this? TIA, -cpghost. -- Cordula's Web. http://www.co

Are BSD partitions not supported?

2010-05-16 Thread C. P. Ghost
Hello, is support for BSD partitions (or maybe ufs2) broken in grub2 (1.98)? On FreeBSD 8.0-STABLE #0 r207730 amd64: === 1. Creating a disk image: phenom# dd if=/dev/zero of=disk.img bs=512 count=50 50+0 records in 50+0 records out 25600 bytes transferred in 3.318285 secs (77148

Re: grub-mkrescue without --image-type=floppy?

2010-05-16 Thread C. P. Ghost
On Thu, May 13, 2010 at 9:55 AM, Colin Watson wrote: > On Wed, May 12, 2010 at 08:31:12PM +0200, C. P. Ghost wrote: >> How does one create a floppy image with grub-mkrescue? >> >> Old documentation says that there's a --image-type=floppy >> option, but it isn&#x

grub-mkrescue without --image-type=floppy?

2010-05-12 Thread C. P. Ghost
Hello, GRUB2 newbie here, so sorry if it is the wrong list or a FAQ. How does one create a floppy image with grub-mkrescue? Old documentation says that there's a --image-type=floppy option, but it isn't there on grub-1.98. Do I have to use the grub-mkrescue script from an older version (say, gru