StevenWang
StevenWang

Reputation: 3816

I need raw read data from and write data into drive..help

I need raw read data from and write data into drive..not via existed filesystem like fat32 or something....i just wanna raw write read...... I was told in Windows i can use CreateFile WriteFile and ReadFile APIs to access data in drive directly... but I dont know in Linux whether there r similar functions....

dont tell me to use hardware driver programming, coz i am just a newbie in linux programming.. thanx a lot....

Upvotes: 0

Views: 648

Answers (1)

liori
liori

Reputation: 42227

Files /dev/hd* and /dev/sd*, depending on your setup, contain raw disk data. You need root account usually.

Use mount command to find out which disks/partitions are mapped to which files.

Upvotes: 1

Related Questions