Hi All, <div>I have 2 questions on creating a ramdisk driver. </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>How do I init the hd_geometry for my device ie to say how do I set geo cylinders, head, sectors and size. As this is ramdisk I dont think it matters but want to confirm.</div>
<div><div>geo->cylinders = 1;</div><div>geo->heads = 1;</div><div>geo->sectors = Device.size/logical_block_size;</div></div><div>geo->start = 0; </div><div><br></div><div>Also, with my current settings, if I use DD on my ramdisk I get "blk_rq_cur_sectors" count to be always 8, which confuses my drive b'se I want to only handle 512 requests at a time. </div>
<div><br></div><div>Simple command to test the disk sing DD "sudo dd if=/dev/urandom of=/dev/sbd0 bs=512 count=1"</div><div>with bs=512 I was hoping to see only the 512 byte request</div><div><br></div>