All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel Richard G." <oss@teragram.com>
To: "'The development of GNU GRUB'" <grub-devel@gnu.org>
Subject: RE: Trouble booting from a large USB hard drive
Date: Sun, 17 Jan 2010 20:54:42 -0500	[thread overview]
Message-ID: <000e01ca97e1$3406ff30$9c14fd90$@com> (raw)
In-Reply-To: <20100118000715.GT5847@riva.ucam.org>

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 that
> operating system
> in many cases (as a convenient simple example,
> consider a Unix-based
> system referring to that partition in /etc/fstab using
> traditional
> device names rather than UUIDs), and we have no way I
> can imagine to
> tell whether that's going to be the case or not.

I was just thinking of the narrow case of a new partition table, perhaps 
narrowed even further to USB drives (unless there's an advantage to the odd 
order with IDE/SATA/SCSI disks). If the user is only modifying an existing 
table, I agree that the numbering shouldn't be touched.

> There are many
> different possible BIOS limitations (see
> http://tldp.org/HOWTO/Large-Disk-HOWTO-4.html) and I
> doubt that we can
> sensibly warn about all of them or even necessarily
> evaluate accurately
> which is the most likely.

Well, the most recent barrier (aside from the one at 2TiB that's just around 
the corner) of 137GB dates back to 2001... I suppose you could check the BIOS 
release date via DMI and warn about smaller limits if it's anywhere near that 
old. Are machines of this vintage even a worthwhile concern? I thought I'd 
read somewhere that not even overseas digital-divide charities will bother 
with such hardware.

> GRUB might be able to avoid the problem you describe
> by using ata.mod,
> provided that its core.img is embedded just before the
> first partition,
> as recommended, rather than being installed in a
> partition boot record
> past the BIOS barrier.

This isn't the norm? Was I wrong about there not being enough space before the 
first partition to store non-BIOS disk-reading routines? This wasn't the case 
with the Karmic install, so I presumed there wasn't a way to do it.

> For all kinds of reasons, I would love to have a way
> to detect these
> kinds of BIOS limitation in software, but I've never
> found a sensible
> way to do it.  The best suggestion I've heard is to
> read the BIOS
> software version using DMI or similar and then check
> it against some
> kind of giant database, but I don't have the resources
> (time or
> expertise, really) to build up such a database, and I
> don't even know
> whether BIOS version numbering is reliable enough to
> make it practical.

And it's somewhat moot anyway, since disks can be moved between systems 
(though this is less likely with fixed disks, of course). I'm thinking the 
reasonable thing to do would be to show a warning if /boot is beyond 137GB (or 
maybe 33GB? 8.4GB?) on a USB disk unconditionally, and maybe on fixed disks if 
the BIOS is detected as being older than a certain date (much as how the 
kernel doesn't use ACPI if the BIOS predates 2000/2001).

Beyond that, having the partitioner support out-of-order numbering would be 
great, though I don't see an obvious way of doing it in the 
manual-partitioning dialog. It would be easier to support it as a canned 
layout option, perhaps available only for USB disks. But I also like to have a 
separate /home, and that means manual partitioning, so....

(I'll be happy to file a wishlist bug report against ubuntu-installer if we 
can figure what would be reasonable for it to do.)


--Daniel





  parent reply	other threads:[~2010-01-18  1:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-17  9:25 Trouble booting from a large USB hard drive Daniel Richard G.
2010-01-17 14:36 ` Isaac Dupree
2010-01-17 20:45   ` Daniel Richard G.
2010-01-18  0:07     ` Colin Watson
2010-01-18  0:47       ` Isaac Dupree
2010-01-18  1:54       ` Daniel Richard G. [this message]
2010-01-18 12:38         ` Colin Watson
2010-01-18 18:15           ` Daniel Richard G.
2010-01-18  1:21 ` Grégoire Sutre
2010-01-18  2:10   ` Daniel Richard G.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000e01ca97e1$3406ff30$9c14fd90$@com' \
    --to=oss@teragram.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.