Modified libusbhsfs (Dev build)

  • Thread starter Thread starter snuffbot1
  • Start date Start date
  • Views Views 17
  • Replies Replies 0
  • Likes Likes 1

snuffbot1

Well-Known Member
Member
Joined
Aug 21, 2026
Messages
204
Reaction score
159
Trophies
1
Age
61
XP
326
Country
United Kingdom
For those using @DarkMatterCore usb library that can't get certain drives to show up, here's a modified updated version from the latest dev branch.

I was creating an Audio player software and lot's of my drives would just not work with the unmodded driver, so I changed some stuff in the lib so they would...
1: Serial Number - removed that because on my 1TB and 5T wd drives just wouldn't work with that enabled.
2: None of my flash pen drives and some hdd dives wouldn't work with ScsiInquiryStandardData trying to fetch the serial - and the returned value was 0x28 instead of 0x2C

char vendor_id[0x8];
char product_id[0x10];
char product_revision[0x4];
//char serial_number[0x8]; - I commented this out
} ScsiInquiryStandardData;

LIB_ASSERT(ScsiInquiryStandardData, 0x24); //this was also changed.

Next I added a patch so the drive would show up as the name you gave it as it does in windows - for example you formatted and names it XXXDrive - then you can show that when you mount it.

After modding and rebuilding my audio player and tinwoo and some other software that can mount the drive to do stuff then most of my drives now work, so I guess not all drives return a serial and for those then you need to remove that driver check for them to work. Hopefully @DarkMatterCore can fix this if someone reports it to him. Some drives still don't work - most likely down to the sata interface. I've only got 1 drive that works in windows but doesn't work on switch all the others do, so do all my usb pen drives now.

I guess dbi/sphaira and some other software are using the unmodded driver because my drives wouldn't show up in those either. I gave the modded files to my friend MrDude and he updated Tinwoo for me, so hdd installs work now. Maybe dbi/sphaira devs should also update with this modded driver (one can only wish).
 

Attachments

Last edited by snuffbot1,
  • Like
Reactions: ber71

Site & Scene News

New Hot Discussed User Submitted