Quote:
It might be in coreutils:
|
Indeed it is.
nutanj, the package manager in most (if not all) distros can show what package a command comes from. Read up on rpm/apt or whatever your distro uses.
Here in Slackware-land, I just need to
Code:
(~) grep 'bin/dd$' /var/log/packages/*
/var/log/packages/coreutils-5.2.1-i486-1:bin/dd
Quote:
What r the different functions used to access the perticular sector,read the data from that sector, write the data......
|
I pretty sure that Linux block device drivers abstract away the concept of a 'sector'. Disks just behave like big files. i.e. to read 'sector' 10 (assuming 512 byte sectors) just use somethig like 'lseek(fd, 512*10, 0); read(fd, buf, 512);'.