Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct partition *sp;
- char buf[512];
- fd = open(floppyimage, 0, 0_RDONLY);
- read(fd, buf, 512);
- sp = (struct partition *)&buf[0x1BE];
- prinf("sys_type=%x\n", sp->sys_type);
- printf("start_sector=%d nr_sectors=%d\n", sp->start_sector, sp->nr_sectors);
Add Comment
Please, Sign In to add comment