RE: Trouble booting from a large USB hard drive

2010-01-17 Thread Daniel Richard G.
Grégoire Sutre wrote: > > > Knowing that Windows would only mount the > > first partition when the drive was plugged in > > Does this only apply to external hard drives? Windows treats removable and fixed drives (as distinguished by what is called the "removable media bit") differently, the diffe

RE: Trouble booting from a large USB hard drive

2010-01-17 Thread Daniel Richard G.
Colin Watson wrote: > > Unfortunately, I rather suspect that the very problem > being addressed > there means that we won't be able to implement your > idea automatically. > Artificially renumbering the partitions of an existing > operating system > while installing Ubuntu would be likely to break

Re: Trouble booting from a large USB hard drive

2010-01-17 Thread Grégoire Sutre
Daniel Richard G. wrote: Knowing that Windows would only mount the first partition when the drive was plugged in Does this only apply to external hard drives? I've always put Linux as my first partition on my single hard drive without any problem (now it's with XP, but AFAIR also with 98SE

Re: Trouble booting from a large USB hard drive

2010-01-17 Thread Isaac Dupree
Colin Watson wrote: Unfortunately, I rather suspect that the very problem being addressed there means that we won't be able to implement your idea automatically. Me too, but for this reason: putting /boot near the beginning will be normal partitioner stuff, but this person's reason for caring

keyboard layout patches

2010-01-17 Thread Carles Pina i Estany
Hello, I've done a first version of keyboard_layout. Find a patch attached, or check the branch: bzr.savannah.gnu.org/srv/bzr/grub/people/cpina/keyboard_layouts I've tested only in at_keyboard. Using something like: insmod at_keyboard terminal_input at_keyboard insmod keyboard_layouts set keyma

Re: Trouble booting from a large USB hard drive

2010-01-17 Thread Colin Watson
On Sun, Jan 17, 2010 at 03:45:06PM -0500, Daniel Richard G. wrote: > Isaac Dupree wrote: > > I accidentally have an out-of-order partition table and I was > > surprised that such a thing is possible (vs. that everything gets > > automatically numbered in order). Nevertheless, it is a useful > > fe

RE: Trouble booting from a large USB hard drive

2010-01-17 Thread Daniel Richard G.
[Replying with Outlook, please forgive the atrocious formatting] Isaac Dupree wrote: > > I accidentally have an out-of-order partition table > and I was surprised > that such a thing is possible (vs. that everything > gets automatically > numbered in order). Nevertheless, it is a useful > feature

Re: [PATCH] Proof of concept interrupt wrapping

2010-01-17 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Robert Millan wrote: > On Thu, Dec 31, 2009 at 01:28:30PM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > >> Hello. We were discussing with Robert how to move BIOS interrupt >> routines out of kernel. There are following possibilities: >> 1) Have a .lowmem section in every concerned mod

Re: [multiboot] command-line format

2010-01-17 Thread richardvo...@gmail.com
> Also, I firmly believe that we shouldn't be satisfied with flawed solutions > just because they're part of our legacy baggage.  We can do better than this > because Free Software is more flexible and more powerful.  For example, NetBSD > can distribute its own version of GRUB and patch it, and co

Re: [multiboot] command-line format

2010-01-17 Thread Robert Millan
On Sun, Jan 17, 2010 at 07:02:16PM +0100, Grégoire Sutre wrote: > However, my first post in this thread was more about the multiboot > specification itself. In light of your explanations, I would re-phrase > my suggestion as follows: in the multiboot specification, require that > the first a

Re: [multiboot] command-line format

2010-01-17 Thread Grégoire Sutre
Hi Robert, Thanks for your detailed explanation, it was really helpful to me. I understand that for compatibility with some platforms, GRUB must provide a way to specify two potentially different file parameters: (a) the GRUB path to the booted file; this path does not appear in the multibo

Re: Trouble booting from a large USB hard drive

2010-01-17 Thread Isaac Dupree
Daniel Richard G. wrote: What all but confirmed it for me was an ingenious solution I saw posted somewhere: an out-of-order partition table. Put the Linux partitions first on I accidentally have an out-of-order partition table and I was surprised that such a thing is possible (vs. that everyt

Re: [PATCH] switch from sprintf to asprintf and snprintf

2010-01-17 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Robert Millan wrote: > On Fri, Jan 01, 2010 at 09:32:24AM +, Colin Watson wrote: > >> On Tue, Dec 29, 2009 at 10:30:12AM +0100, Vladimir 'φ-coder/phcoder' >> Serbinenko wrote: >> >>> +char *EXPORT_FUNC(grub_asprintf) (const char *fmt, ...) >>> + __attribute__ ((format (printf, 1, 2

Re: [PATCH] switch from sprintf to asprintf and snprintf

2010-01-17 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Robert Millan wrote: > On Tue, Dec 29, 2009 at 10:30:12AM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > >> sprintf is potentially dangerous especially with gettext, when messages >> may be larger than coder would expect. I attach the patch to fix it >> > > Could you split the pat

Re: [PATCH] switch from sprintf to asprintf and snprintf

2010-01-17 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Colin Watson wrote: > On Tue, Dec 29, 2009 at 10:30:12AM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > >> +char *EXPORT_FUNC(grub_asprintf) (const char *fmt, ...) >> + __attribute__ ((format (printf, 1, 2))); >> > > It's very confusing that you've made grub_asprintf have a dr

Trouble booting from a large USB hard drive

2010-01-17 Thread Daniel Richard G.
I recently installed Ubuntu Linux to a 500GB external hard drive, with GRUB2, and at first could not boot the system due to a GRUB "unknown filesystem" error. Resolving this problem led to some interesting revelations that I wanted to share here. Initially, the hard drive in question was partit