Skip to content

[Help] Have I killed my windows?

I was formatting a usb to make a live usb drive, but accidentally mistook /dev/md126 (windows raid0) for my usb (/dev/sde)

The command I ran was

sudo mkdosfs -n 'Label' -I /dev/sdd      

I only realized that the usb shouldn't be a md device seconds after I ran it Cx

Windows no longer boots...

I don't know the specifics for what a new partition table can do to a drive, but if there is a way to at least make it seem like there's a partition on the drive would be amazing.

After all, I use arch most of the time anyway so missing windows isn't that big of a deal. A simple yes/no would suffice.

1 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
2hdyrf

Author

9
posts
50
comments
20
media
View profile

8 comments

You wrote a FAT16 filesystem to /dev/sdd...

Yeah, your Windows install on that disk is pretty well screwed. You can probably get some of the data of with recovery though.

3 points

Use testdisk to get the data off and then reinstall windows. Although I find windows install more painful than the arch one nowadays.

2 points

Yes

If you're looking into recovery of files: PhotoRec, Ddrescue and UFS (paid) are good options. Restoring is a bit more tricky.

1 points

You only rewrote the partition layout and information. You didn't actually fill the drive with zeroes. You should be able to recover your data, if not even completely restore your partition.

testdisk and gparted should be able to help you out.

1 points

The filesystem keeps track of every file on the disk, so without it, or with a blank one, the disk looks completely empty.

You can recover some data but you've destroyed any possibility of getting the drive into a bootable state without a reinstall.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.