LaMont Jones wrote:
On Tue, Mar 18, 2008 at 04:29:45PM +0100, rudy gevaert wrote:
It is not possible to use cfdisk on disks that have more than 255 heads.
Our storage system advises to use 256 heads. Changing MAX_HEADS in cfdisk.h
to a higher number lets us use cfdisk.
Even with the change, it is not possible to use cfdisk successfully on
disks that have more than 255 heads.
from /usr/include/linux/hdreg.h:
struct hd_geometry {
unsigned char heads;
unsigned char sectors;
unsigned short cylinders;
unsigned long start;
};
Your change just means that we tell the kernel to use HEADS%256 :-(
Hi,
I don't see why my change has an effect (Note I meant to say 'edit
cfdisk.c'). I have successfully partitioned a lun.
I needed to change MAX_HEADS because cfdisk would start with the option
-h 256.
I see that in hdreg.h the unsigned char has an effect, but it is not
clear how that effects me...
Could explain a bit more?
Thanks
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen Systems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]