I’d like to open SD card as physical drive on Linux.
Somethink like:
CreateFile(“PHYSICALDRIVE0”,…)
On MS Windows.
How can I do it?
I’d like to open SD card as physical drive on Linux. Somethink like: CreateFile(PHYSICALDRIVE0,…)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All devices are represented as files under the
/devdirectory. These files can be opened exactly like regular files, e.g.open(/dev/sdb, ...).Disk-like devices are also symlinked in the directories
/dev/disk/by-id/,/dev/disk/by-path, and/dev/disk/by-uuid, which makes it much easier to find to matching device file.