Accidentally made an ext4 file system on my encrypted Windows 10 OS partitionUse (Windows) BitLocker-encrypted drive on Ubuntu 14.04 LTSCommon protected (Encrypted) partition for both Windows and UbuntuCan't mount encrypted partition - “No key available with this pass-phrase”. Did the Ubuntu Gnome installer destroy my encrypted drive?DD a BitLocker/TPM encrypted drive

Kicad: How to give nets / wires multiple names

Is "to go berserk" used by native speakers or is it obsolete?

Hammering under water?

Feeling burned-out in PhD. program and thinking about dropping out

Is it possible to remove the trash icon from the dock on macOS Catalina?

How can I deal with my coworkers using unknown jargon and acronyms?

Why should interrupts be short in a well configured system?

How do I recover from a cryptocurrency scam?

What did Rex Kramer mean by routing the plane in Lake Michigan?

A story in which God (the Christian god) is replaced

extract nth pattern from a file

Lazav Ability on the Stack

How did the USSR track Gagarin's Vostok-1 orbital flight? Was tracking capability an issue in the choice of orbit?

Anacruses, Bar Lines, and Line Breaks

Summary Proceeding in New Zealand - Denying liability but not requesting a hearing

Why is Gaia operating around Earth orbit? Why not send it to Neptune's orbit?

Why can I solve an impossible equation using linear algebra?

What's the purpose of using a union with only one member?

Why voltage regulators instead of voltage dividers for supplying power to loads?

Why are compartments in western European day trains falling out of fashion?

Could anyone judge whether or not what I have experienced are types of abuse?

Brainfuck interpreter written in C

Is a borosilicate glass pot safe to use on a gas burner stovetop?

Is comerse required when used with a determinate amount?



Accidentally made an ext4 file system on my encrypted Windows 10 OS partition


Use (Windows) BitLocker-encrypted drive on Ubuntu 14.04 LTSCommon protected (Encrypted) partition for both Windows and UbuntuCan't mount encrypted partition - “No key available with this pass-phrase”. Did the Ubuntu Gnome installer destroy my encrypted drive?DD a BitLocker/TPM encrypted drive






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1


















I have two drives on my Windows 10 PC that are both encrypted using Bitlocker. I read somewhere that the only way to make sure the drives are actually encrypted is to boot a live OS and see if you can access them or not without unlocking the drives.



I wanted to pretend like I was penetration testing my own computer, so I burned Xubuntu on a flash drive and booted from it. I wanted to mount the C drive (OS drive) so I first did:



sudo mount -v /dev/sda4 /mnt/hdd 


(sda4 is the main OS partition)



then since there was some error I did:



mkfs.ext4 /dev/sda4 


I believe the above command is precisely where I messed up. I had no idea what I was doing and was just googling running different things to see if I could get into the encrypted drive. For some reason my brain thought running all these random commands was fine since the drive was encrypted so obviously there was no damage I could do from a live OS, right?



After this I decided I was done and restarted my PC to boot back into Windows 10. This is where I realized I messed up. Instead of the boot screen I was met with "attemping to repair" (which ends up failing to fix every time) and now I can't boot into my OS.



So apparently now I've created an ext4 file system on my Windows 10 partition which I guess corrupted it in some way that Windows can't use it anymore. Are my files gone? I really don't know what to do. And I think the fact that my drives are encrypted with bitlocker makes the situation worse. I really appreciate any and all help










share|improve this question

























  • Sorry. The command mkfs.ext4 /dev/sda4 formated the drive with the ext4 file system. This overwrote whatever was there before. I hope you have a backup of your most valuable data (documents, pictures etc) because it will be difficult or impossible to get the data back from the formated partition. The encryption makes things worse. If you are lucky, you may be able to repair the partition with testdisk . Without encryption, maybe it would work with photorec to recover files directly from the data storage on the drive ... See cgsecurity.org

    – sudodus
    Sep 20 at 8:04







  • 1





    Actually, did you use sudo mkfs.ext4 /dev/sda4 or did you just run mkfs.ext4 /dev/sda4 . You may not have formatted the partition if you did not use sudo. This may be a simple fix that the bootrec or fixboot windows commands can fix and/or windows was probably in some unstable or hibernated "fast boot" state that it can't wake up from now. Please edit your question and post the error you got on the windows repair. Thanks!

    – mchid
    Sep 20 at 8:47






  • 1





    @sudodus Don't you need to use sudo when you run mkfs.ext4?

    – mchid
    Sep 20 at 9:15






  • 1





    Also, if the OS drive was formatted, I don't think you would get the repair option. The system should not boot at all if the OS drive was formatted.

    – mchid
    Sep 20 at 9:16







  • 1





    @mchid, Yes, you need to use sudo when you run mkfs.ext4, so there is a chance that the OP has not really formated the drive. Let us hope so :-)

    – sudodus
    Sep 20 at 10:01

















1


















I have two drives on my Windows 10 PC that are both encrypted using Bitlocker. I read somewhere that the only way to make sure the drives are actually encrypted is to boot a live OS and see if you can access them or not without unlocking the drives.



I wanted to pretend like I was penetration testing my own computer, so I burned Xubuntu on a flash drive and booted from it. I wanted to mount the C drive (OS drive) so I first did:



sudo mount -v /dev/sda4 /mnt/hdd 


(sda4 is the main OS partition)



then since there was some error I did:



mkfs.ext4 /dev/sda4 


I believe the above command is precisely where I messed up. I had no idea what I was doing and was just googling running different things to see if I could get into the encrypted drive. For some reason my brain thought running all these random commands was fine since the drive was encrypted so obviously there was no damage I could do from a live OS, right?



After this I decided I was done and restarted my PC to boot back into Windows 10. This is where I realized I messed up. Instead of the boot screen I was met with "attemping to repair" (which ends up failing to fix every time) and now I can't boot into my OS.



So apparently now I've created an ext4 file system on my Windows 10 partition which I guess corrupted it in some way that Windows can't use it anymore. Are my files gone? I really don't know what to do. And I think the fact that my drives are encrypted with bitlocker makes the situation worse. I really appreciate any and all help










share|improve this question

























  • Sorry. The command mkfs.ext4 /dev/sda4 formated the drive with the ext4 file system. This overwrote whatever was there before. I hope you have a backup of your most valuable data (documents, pictures etc) because it will be difficult or impossible to get the data back from the formated partition. The encryption makes things worse. If you are lucky, you may be able to repair the partition with testdisk . Without encryption, maybe it would work with photorec to recover files directly from the data storage on the drive ... See cgsecurity.org

    – sudodus
    Sep 20 at 8:04







  • 1





    Actually, did you use sudo mkfs.ext4 /dev/sda4 or did you just run mkfs.ext4 /dev/sda4 . You may not have formatted the partition if you did not use sudo. This may be a simple fix that the bootrec or fixboot windows commands can fix and/or windows was probably in some unstable or hibernated "fast boot" state that it can't wake up from now. Please edit your question and post the error you got on the windows repair. Thanks!

    – mchid
    Sep 20 at 8:47






  • 1





    @sudodus Don't you need to use sudo when you run mkfs.ext4?

    – mchid
    Sep 20 at 9:15






  • 1





    Also, if the OS drive was formatted, I don't think you would get the repair option. The system should not boot at all if the OS drive was formatted.

    – mchid
    Sep 20 at 9:16







  • 1





    @mchid, Yes, you need to use sudo when you run mkfs.ext4, so there is a chance that the OP has not really formated the drive. Let us hope so :-)

    – sudodus
    Sep 20 at 10:01













1













1









1








I have two drives on my Windows 10 PC that are both encrypted using Bitlocker. I read somewhere that the only way to make sure the drives are actually encrypted is to boot a live OS and see if you can access them or not without unlocking the drives.



I wanted to pretend like I was penetration testing my own computer, so I burned Xubuntu on a flash drive and booted from it. I wanted to mount the C drive (OS drive) so I first did:



sudo mount -v /dev/sda4 /mnt/hdd 


(sda4 is the main OS partition)



then since there was some error I did:



mkfs.ext4 /dev/sda4 


I believe the above command is precisely where I messed up. I had no idea what I was doing and was just googling running different things to see if I could get into the encrypted drive. For some reason my brain thought running all these random commands was fine since the drive was encrypted so obviously there was no damage I could do from a live OS, right?



After this I decided I was done and restarted my PC to boot back into Windows 10. This is where I realized I messed up. Instead of the boot screen I was met with "attemping to repair" (which ends up failing to fix every time) and now I can't boot into my OS.



So apparently now I've created an ext4 file system on my Windows 10 partition which I guess corrupted it in some way that Windows can't use it anymore. Are my files gone? I really don't know what to do. And I think the fact that my drives are encrypted with bitlocker makes the situation worse. I really appreciate any and all help










share|improve this question














I have two drives on my Windows 10 PC that are both encrypted using Bitlocker. I read somewhere that the only way to make sure the drives are actually encrypted is to boot a live OS and see if you can access them or not without unlocking the drives.



I wanted to pretend like I was penetration testing my own computer, so I burned Xubuntu on a flash drive and booted from it. I wanted to mount the C drive (OS drive) so I first did:



sudo mount -v /dev/sda4 /mnt/hdd 


(sda4 is the main OS partition)



then since there was some error I did:



mkfs.ext4 /dev/sda4 


I believe the above command is precisely where I messed up. I had no idea what I was doing and was just googling running different things to see if I could get into the encrypted drive. For some reason my brain thought running all these random commands was fine since the drive was encrypted so obviously there was no damage I could do from a live OS, right?



After this I decided I was done and restarted my PC to boot back into Windows 10. This is where I realized I messed up. Instead of the boot screen I was met with "attemping to repair" (which ends up failing to fix every time) and now I can't boot into my OS.



So apparently now I've created an ext4 file system on my Windows 10 partition which I guess corrupted it in some way that Windows can't use it anymore. Are my files gone? I really don't know what to do. And I think the fact that my drives are encrypted with bitlocker makes the situation worse. I really appreciate any and all help







partitioning filesystem encryption format ext4






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 20 at 7:42









user2419553user2419553

1111 bronze badge




1111 bronze badge















  • Sorry. The command mkfs.ext4 /dev/sda4 formated the drive with the ext4 file system. This overwrote whatever was there before. I hope you have a backup of your most valuable data (documents, pictures etc) because it will be difficult or impossible to get the data back from the formated partition. The encryption makes things worse. If you are lucky, you may be able to repair the partition with testdisk . Without encryption, maybe it would work with photorec to recover files directly from the data storage on the drive ... See cgsecurity.org

    – sudodus
    Sep 20 at 8:04







  • 1





    Actually, did you use sudo mkfs.ext4 /dev/sda4 or did you just run mkfs.ext4 /dev/sda4 . You may not have formatted the partition if you did not use sudo. This may be a simple fix that the bootrec or fixboot windows commands can fix and/or windows was probably in some unstable or hibernated "fast boot" state that it can't wake up from now. Please edit your question and post the error you got on the windows repair. Thanks!

    – mchid
    Sep 20 at 8:47






  • 1





    @sudodus Don't you need to use sudo when you run mkfs.ext4?

    – mchid
    Sep 20 at 9:15






  • 1





    Also, if the OS drive was formatted, I don't think you would get the repair option. The system should not boot at all if the OS drive was formatted.

    – mchid
    Sep 20 at 9:16







  • 1





    @mchid, Yes, you need to use sudo when you run mkfs.ext4, so there is a chance that the OP has not really formated the drive. Let us hope so :-)

    – sudodus
    Sep 20 at 10:01

















  • Sorry. The command mkfs.ext4 /dev/sda4 formated the drive with the ext4 file system. This overwrote whatever was there before. I hope you have a backup of your most valuable data (documents, pictures etc) because it will be difficult or impossible to get the data back from the formated partition. The encryption makes things worse. If you are lucky, you may be able to repair the partition with testdisk . Without encryption, maybe it would work with photorec to recover files directly from the data storage on the drive ... See cgsecurity.org

    – sudodus
    Sep 20 at 8:04







  • 1





    Actually, did you use sudo mkfs.ext4 /dev/sda4 or did you just run mkfs.ext4 /dev/sda4 . You may not have formatted the partition if you did not use sudo. This may be a simple fix that the bootrec or fixboot windows commands can fix and/or windows was probably in some unstable or hibernated "fast boot" state that it can't wake up from now. Please edit your question and post the error you got on the windows repair. Thanks!

    – mchid
    Sep 20 at 8:47






  • 1





    @sudodus Don't you need to use sudo when you run mkfs.ext4?

    – mchid
    Sep 20 at 9:15






  • 1





    Also, if the OS drive was formatted, I don't think you would get the repair option. The system should not boot at all if the OS drive was formatted.

    – mchid
    Sep 20 at 9:16







  • 1





    @mchid, Yes, you need to use sudo when you run mkfs.ext4, so there is a chance that the OP has not really formated the drive. Let us hope so :-)

    – sudodus
    Sep 20 at 10:01
















Sorry. The command mkfs.ext4 /dev/sda4 formated the drive with the ext4 file system. This overwrote whatever was there before. I hope you have a backup of your most valuable data (documents, pictures etc) because it will be difficult or impossible to get the data back from the formated partition. The encryption makes things worse. If you are lucky, you may be able to repair the partition with testdisk . Without encryption, maybe it would work with photorec to recover files directly from the data storage on the drive ... See cgsecurity.org

– sudodus
Sep 20 at 8:04






Sorry. The command mkfs.ext4 /dev/sda4 formated the drive with the ext4 file system. This overwrote whatever was there before. I hope you have a backup of your most valuable data (documents, pictures etc) because it will be difficult or impossible to get the data back from the formated partition. The encryption makes things worse. If you are lucky, you may be able to repair the partition with testdisk . Without encryption, maybe it would work with photorec to recover files directly from the data storage on the drive ... See cgsecurity.org

– sudodus
Sep 20 at 8:04





1




1





Actually, did you use sudo mkfs.ext4 /dev/sda4 or did you just run mkfs.ext4 /dev/sda4 . You may not have formatted the partition if you did not use sudo. This may be a simple fix that the bootrec or fixboot windows commands can fix and/or windows was probably in some unstable or hibernated "fast boot" state that it can't wake up from now. Please edit your question and post the error you got on the windows repair. Thanks!

– mchid
Sep 20 at 8:47





Actually, did you use sudo mkfs.ext4 /dev/sda4 or did you just run mkfs.ext4 /dev/sda4 . You may not have formatted the partition if you did not use sudo. This may be a simple fix that the bootrec or fixboot windows commands can fix and/or windows was probably in some unstable or hibernated "fast boot" state that it can't wake up from now. Please edit your question and post the error you got on the windows repair. Thanks!

– mchid
Sep 20 at 8:47




1




1





@sudodus Don't you need to use sudo when you run mkfs.ext4?

– mchid
Sep 20 at 9:15





@sudodus Don't you need to use sudo when you run mkfs.ext4?

– mchid
Sep 20 at 9:15




1




1





Also, if the OS drive was formatted, I don't think you would get the repair option. The system should not boot at all if the OS drive was formatted.

– mchid
Sep 20 at 9:16






Also, if the OS drive was formatted, I don't think you would get the repair option. The system should not boot at all if the OS drive was formatted.

– mchid
Sep 20 at 9:16





1




1





@mchid, Yes, you need to use sudo when you run mkfs.ext4, so there is a chance that the OP has not really formated the drive. Let us hope so :-)

– sudodus
Sep 20 at 10:01





@mchid, Yes, you need to use sudo when you run mkfs.ext4, so there is a chance that the OP has not really formated the drive. Let us hope so :-)

– sudodus
Sep 20 at 10:01










0






active

oldest

votes













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175416%2faccidentally-made-an-ext4-file-system-on-my-encrypted-windows-10-os-partition%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175416%2faccidentally-made-an-ext4-file-system-on-my-encrypted-windows-10-os-partition%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?