Hi, > > I have used generic_make_request function. before > that i have filled up the struture buffer_head. > Iniatially i am trying to write just one block of > size 512 bytest of data in a raw hard disk. I need > to know few things > Use "sync_dirty_buffer()" to write buffer heads instead of "make_generic_request()" . . . mark_buffer_dirty(bh); sync_dirty_buffer(bh); . . . > > 1) what value to be given for the member b_blocknr, > b_rsector, b_dev and b_rdev. > > 2) other thing, is it possible to write on a hard > disk without a file system. > Yes, you can write to raw partition (without any file system) by just setting it's blocksize correctly use "set_blocksize()" for that. niTin -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/