help-grub
[Top][All Lists]
Advanced

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

Re: detecting disks and disk size


From: Andrey Borzenkov
Subject: Re: detecting disks and disk size
Date: Fri, 9 Aug 2013 06:32:38 +0400

В Thu, 8 Aug 2013 20:33:57 +0000
"Loving, Kent" <address@hidden> пишет:

> Hello,
> I am using GRUB on a CD to boot a specialized live linux on the CD. I would 
> like to customize the GRUB menu based on the number of hard disks that are 
> installed in the machine that is booting the CD. I would also like to 
> customize based on the size of the installed disks.
> 
> I've searched GUB manual, and tried every command at the GRUB> prompt that I 
> hope would work. But nothing I've tried is helping.
> 
> I tried to use ls to check (hd0) and (hd1), but ls always returns 0, even if 
> it prints an error.
> 
> Once the linux is booted I can use something like "cat /sys/block/sda/size" 
> but that's no help in GRUB.
> 
> Is there a command I am missing, or maybe a 'diskinfo' module?
> 

It sounds similar to
http://lists.gnu.org/archive/html/help-grub/2013-06/msg00039.html




reply via email to

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