Jump to content

faking free capacity of usb drive

Cupar19
Go to solution Solved by Fraser Cow,
Just now, Cupar19 said:

i already made a backup and have an exact replica drive with it on just in case that does happen

Ah, in that case go right ahead lol. A simple way to do it would be to shrink the drive and just have unallocated space.

ok guys so i know this seems a bit sketchy but i SWEAR i only want to do this as a prank on my friend, but i have filled his 32gb flash drive until it is full but i would like to have windows display it as still having 27gb left so he cant understand why files wont go onto it.

 

i understand if people who know dont want to say as this does seem quite sketchy but if anybody would that would be greatly appreciated.

Link to comment
Share on other sites

Link to post
Share on other sites

The files will go on it, but it will overwrite any existing data, thus corrupting the device.

 

Ninja'd lol

My stuff:

Spoiler

CPU :  Intel i5 8400 | GPU : MSI GTX 970 Gaming 4GB

 

RAM : 32GB Corsair Vengeance DDR4 @ 3600MHz

 

Mouse : Logitech G502 HERO SE | Keyboard : Mountain Everest Max w/ Cherry MX Brown

 

Headset : Beyerdynamics DT990 Pro 250Ω w/ AT2020USB+

 

Monitor : Acer XF240H @  144Hz

 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Underi said:

The files will go on it, but it will overwrite any existing data, thus corrupting the device.

 

Just now, M.Yurizaki said:

You'd have to overwrite the firmware so that it reports a higher capacity than it has. Even then though, the OS will tell the drive to write more data and the drive will happily do it, but it'll start corrupting existing data rather than flat out refuse.

ahh ok so no way to not harm the existing data?

Link to comment
Share on other sites

Link to post
Share on other sites

ill try making a second small partion and hope he just doesnt look at the capacity

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, M.Yurizaki said:

You could modify the firmware even more to report a fake value and know how much it really has and return an error or something to the OS.

how would i modify the firmware?
 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Fraser Cow said:

Your practical joke isn't very practical, last thing you need is a accidentally corrupt a project he's working on and has no backup for.

i already made a backup and have an exact replica drive with it on just in case that does happen

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, AshleyAshes said:

Count down until we have a thread titled 'I screwed all the data on my friend's USB, how do I get it back!?' begins now. o____o

 

Just now, TechyBen said:

You want to break his USB drive? What a friend.

i already made a backup and have an exact replica drive with it on just in case that does happen

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Cupar19 said:

i already made a backup and have an exact replica drive with it on just in case that does happen

Ah, in that case go right ahead lol. A simple way to do it would be to shrink the drive and just have unallocated space.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Cupar19 said:

how would i modify the firmware?

If you have to ask that question, then you probably shouldn't be doing this.

 

I mean, it involves the following:

  • Finding the source code for the firmware (which is likely closed source to the vendor, so good luck)
  • Knowing what kind of microcontroller is running on the USB drive
  • Knowing C (most likely), and possibly assembly language for the microcontroller
  • Knowing what the OS is expecting so you can return the correct thing

Among others. So it's not a very practical joke.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, M.Yurizaki said:

If you have to ask that question, then you probably shouldn't be doing this.

 

I mean, it involves the following:

  • Finding the source code for the firmware (which is likely closed source to the vendor, so good luck)
  • Knowing what kind of microcontroller is running on the USB drive
  • Knowing C (most likely), and possibly assembly language for the microcontroller
  • Knowing what the OS is expecting so you can return the correct thing

Among others. So it's not a very practical joke.

ok well thx for the help il try this idea though

 

Just now, Fraser Cow said:

Ah, in that case go right ahead lol. A simple way to do it would be to shrink the drive and just have unallocated space.

 

Link to comment
Share on other sites

Link to post
Share on other sites

You could see about wiring a speaker to it, so it makes a loud buzzing noise (probably need an oscillator/crystal too... :/

 

https://www.brighthubengineering.com/consumer-appliances-electronics/68808-make-yourself-a-simple-homemade-electronic-buzzer/#imgn_3

 

Or just buy a small sparkfun/hobby craft buzzer and link it to the 5v rail of the USB stick behind a (existing or added) resistor... don't accept my electrical advice though, as you'll probably fry his PC too...

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, TechyBen said:

You could see about wiring a speaker to it, so it makes a loud buzzing noise (probably need an oscillator/crystal too... :/

 

https://www.brighthubengineering.com/consumer-appliances-electronics/68808-make-yourself-a-simple-homemade-electronic-buzzer/#imgn_3

 

Or just buy a small sparkfun/hobby craft buzzer and link it to the 5v rail of the USB stick behind a (existing or added) resistor... don't accept my electrical advice though, as you'll probably fry his PC too...

ohh cool idea ill try that on mine but doesnt help my plan

Link to comment
Share on other sites

Link to post
Share on other sites

Why not just format the drive and create a 27GB partition and leave the rest as unallocated space?...

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×