 So, last week I showed you this video where I have a two gig flash drive that I made look like to the computer as if it was a one terabyte drive. It's a fun little trick. I'm going to show you how to do this. I'm going to show you how to do this so you can mess with your friends and make them think that you have a one terabyte drive or a 10 terabyte drive, whatever size you want when you really don't. Please don't use this to try to con people. So in last week I showed you how to check to make sure your drives are really the size that you think they are, but right now you can see that I have this two gig drive and you can see also down here it says 1.9 gigabyte drive. So let's go ahead and also look at this in the shell. If I say mount you can see that we're working with drive SDC 1. Again make sure when you plug a drive in that when you're doing the stuff we're doing today that you're accessing the right drive whether it's dev, sda, sdb, sdc, whatever it is because you don't want to wipe out the wrong drive. So there we go we have that drive you can see that it's a VFAT and if I say df-h you can see that it is a 1.9 gig or a 2 gig drive. So let's go ahead and I'm going to create a folder here, make there flash, it's just an empty drive for me to work in I really don't need to do that but I just like to keep things separate. And now I'm going to use a tool called MKDOSFS, it's a program that allows you to make whoops MKDOSFS, it allows you to make DOS partitions. So what we're going to do today is we're basically going to create a FAT32 format partition. We're going to make an image first and then put it on the drive or at least the head of it on the drive and that the header of that file is going to fake the size of the drive. So we man real quick and look at the man file, the manual of this program. You can see that it creates MSDOS files systems under Linux and we're going to be using the capital C command so dash C which creates a file given as a device. Basically instead of actually writing to a partition we are going to create it in a file like an image basically. So I'm going to go MKDOSFS dash C, we'll call this temp file and I'll say 1-0-0-0-0-0-0-0. That should be a terabyte, there might be a shorter way to write that. We'll go ahead and hit enter and if I list it out you'll see that I have a file here that supposedly is a 1 terabyte, 954 gigabyte image and what I can also do here is list dash S and that file and here it's actually telling me a different size. If I do it with a dash H for human readable here it says that it's 239 megabytes. So it's not really already we're getting fake readings because the operating systems looking at two different ways of the sizing this and one part of it is the header of the file saying how big it is when it's really not that size. So now what I need to do is write that to our drive so first off I'm going to look again you can see here that we said SDC1 is my partition so what I'm going to do here is I'm going to do this pseudo U mount that drive I'm going to make sure it's unmounted. Now this little side note for you a lot of people think that if you have pseudo permissions that you are root and pseudo unroot do have some differences. They work in different ways but also there's certain things that pseudo users by default and there's different ways you can set up how pseudo works but by default pseudo users don't have all the permissions root do does. I've been using Linux for 10 years or so and I'd say there have been three or four times where there's something I can't do as pseudo that I can do as far as permissions. So if I say pseudo and we use the head command the head command shows the top of a file and we're going to say dash C and actually we need to run the command again earlier I said LS dash S and our temp file to get the file size in kilobytes so now I can say pseudo head dash C for count and we're going to say that many capital K kilobytes of this file so I'm saying display the top portion of that file to a certain point and I'm going to redirect that into our device on right into our partition so SDC one in this case again make sure you're doing the right partition don't wipe out a partition you don't mean to if I hit enter it's gonna tell me I don't have permission and you might go why am I why is it saying permission tonight I'm pseudo because pseudo and root are not the same thing so in some systems you can type SU hit enter type in your password the root password some systems that's disabled but you can do pseudo SU and now you're running as root so same command as before without the pseudo because now your root and I hit enter and give it a chance to write that 200 and some odd megabyte to that drive and basically this is going to put a header at the beginning of that partition that's going to tell our operating system that the drive is something other than it is as far as size and we'll just give it a moment here to do that twiddling my thumbs should start this when I had stuff to explain so I'll go on to explain some stuff when we're done here it's going to show again in certain situations okay it's done so if I go back to or open up a file manager here you can see it still says it's a 2 gigabyte volume we're going to adjust that a minute that's just the label of the drive so if I click this it takes a little longer to mount than it does when it's actually a 2 gig drive but still a few seconds we can already see down at the bottom here it's counting things up 953 gigabytes and again if I open up file light which is just a GUI you can see right here that this drive is 953.4 gigabytes I can close that go back into my shell here I can say DH or DF-H and you can see that it's showing up as a nine point sorry 954 gigabytes but again as I showed you last week if I use fdisk dash sorry fdisk device SDC and hit P right away it's telling me the truth that's really only a 2 gigabyte drive so I'll quit at that so we faked it already that it shows that there is a a larger size when you're looking at the file size but we still have that pesky little problem of the default label of this drive saying that it's a 2 gigabyte volume now we can change the label and there's two different weight two different programs do that and I have found sometimes one works for me and the other doesn't but what I'm going to do here is I'm going to use m label dash I device SDC1 space colon colon and then in quotations I'm going to say one TB drive and by default it's going to make all that uppercase because a label for a fat 32 partition is all uppercase but doesn't matter if you write lowercase or uppercase it's going to adjust it and right there you can see that worked now if for some reason you try that and that does not work you can also do and you need to either be pseudo-realized I'm still root here but you can do this with pseudo but I can say DOS FS label and then the device SDC1 and then just in quotations I can say one TB drive and hit enter and there that one says warning lowercase it's making all uppercase and then it says invalid argument so like I said I'm not sure why but sometimes this one works for me and sometimes this one works for me maybe has it has something to do with how I've partitioned the drive or something along those lines but try both those commands one should work if the other doesn't and both those programs should be in your repositories if you're not installed already but now the label showing one gig or one terabyte drive our file manager and again I'm using PC man here I can also look at thunder than our and then our is also saying that it's one terabyte you can see down here one terabyte free and the label still showing that and I think I also have Nautilus installed so here's Nautilus and if I click on that drive and maybe right click properties right there it says one terabyte free so all my file managers my programs look at partition usage are all saying that if I list out in the shell it's saying that it's a one terabyte but either fdisk or G parted type in my password here for G parted G parted is not fooled and either is fdisk because again it's not looking at that hitter it's actually looking at the size of device so that's how you check and that's how you change and again I showed you last week how to revert it back to the proper thing again it's showing that's one terabyte and you can write to it if you try to copy one terabyte of files it's going to be writing one terabyte of files but once it hits that gig the two gigs whatever size the drive actually is it's gonna start overriding files that are on there without telling you and corrupting files so don't think that you actually made it into a one terabyte drive you're just faking it hopefully just for fun and as always I thank you for watching if you enjoyed this tour you found it useful I asked that you like subscribe comment and share all those things are very helpful to me be sure to visit my website filmsbychrist.com that's Chris the K there should be a link in the description as always I hope that you have a great day thanks for watching these videos on taking USB flash drives and modifying the headers of the partitions to fool people into thinking they're bigger but at the same time also seeing how to check to make sure that you're not being fooled yourself and how to fix a drive that has been modified I hope you enjoyed these videos and I hope you enjoy all my videos I hope you visit my website filmsbychrist.com and if you like my videos please think about supporting me over at patreon.com that's patreon.com forward slash metal x1000 there you can become a supporter and you can give extra input and get a little bit more feedback and early videos and stuff like that I appreciate all your support and again if you can't support me through something that pint financially through like patreon I asked that you share like and subscribe my videos and comment below all those things help boost the ratings on my videos which helps me out a lot and also helps me share things I want to teach with other people as always thanks for watching and again I hope that you have a great day