LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2017, 08:55 AM   #1
newblinx
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
Using mkdosfs by mistake


Hi, by mistake i use the command:

sudo mkdosfs -F 32 -I /dev/sdb1

using a live cd kali distribution trying to format a usb stick, when i reboot my PC my hard drive (using windows 10) showed the message: No boot partition found.

Am kinda freaking out.

I have these choices until now:

1) ask in linux forums for help -now trying it-

2) use windows cd to try to repair MBR

3) recover as much files as i can with an undelete or unformat program (suggestions welcome)

I have done nothing to my hard drive, i disconnect it from the pc and am using a back up now until i figure this out.

Thanks for any help!
 
Old 08-04-2017, 09:18 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,788
Blog Entries: 13

Rep: Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830
While you have done option #1, I can tell you that options 2 and 3 are nothing you can do.

You have re-initialized the file system.

Perhaps a forensic disk recovery company can do this, however it is expensive and my impression is that as soon as they have been told that the disk has had either a new file system initialized, formatted, or repartitioned - many of them will not take on the work and cite that the job is largely impossible.
 
1 members found this post helpful.
Old 08-04-2017, 09:30 AM   #3
newblinx
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Well, my Hard Drive was full disk True Crypt encripted, after putting my password the boot partition error appear and i just freak out.

I just put it as a slave disk, use true crypt to mounted without pre-boot authentification and voíla!! all files are there.

So i guess it's just the MBR that's damaged right?

Am backing up everything right now, any ideas to make it bootable again?

And sorry I was not thinking that it was a disk with multiple partitions, however this does make sense and therefore it really mattered which partition you affected with this file system create command.

Last edited by rtmistler; 08-04-2017 at 09:49 AM.
 
Old 08-04-2017, 09:48 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,788
Blog Entries: 13

Rep: Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830Reputation: 4830
Quote:
Originally Posted by newblinx View Post
Well, my Hard Drive was full disk True Crypt encripted, after putting my password the boot partition error appear and i just freak out.

I just put it as a slave disk, use true crypt to mounted without pre-boot authentification and voíla!! all files are there.

So i guess it's just the MBR that's damaged right?

Am backing up everything right now, any ideas to make it bootable again?
Glad to hear. Suggest you copy all your data off of that disk. You could try a repair installation. You'll need the install media for the main OS which managed the MBR in the first place. Since you said Windows 10, perhaps there is a boot menu and a restore option where information is stored on a hidden partition for this purpose. Meanwhile, doing this action could be destructive to the existing file system, hence why I recommend you get all your data copied off of the disk.
 
Old 08-04-2017, 09:51 AM   #5
newblinx
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rtmistler View Post
Glad to hear. Suggest you copy all your data off of that disk. You could try a repair installation. You'll need the install media for the main OS which managed the MBR in the first place. Since you said Windows 10, perhaps there is a boot menu and a restore option where information is stored on a hidden partition for this purpose. Meanwhile, doing this action could be destructive to the existing file system, hence why I recommend you get all your data copied off of the disk.
Thanks, that's what am doing right now, copying everything off the disk and having zero problems, all files are fine (am so happy!).

So i guess yes, i will try after finishing the backup to restore the OS with the installation disk, thanks!

P.S., guess i just found another plus to having full disk encryption on the HD
 
Old 08-05-2017, 08:08 PM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think what you found is that you ruined /dev/sda1, but the MBR and other partitions are still OK.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdosfs generates invalid boot sector HadroLepton Linux - Newbie 6 10-28-2010 12:26 PM
What is the value of block in mkdosfs? archieval Programming 8 10-07-2010 04:58 AM
mkdosfs -I -F 16 /dev/sda killed my HD. Help! glore2002 Slackware 7 09-02-2008 03:04 AM
mkdosfs no such file or directory verbose Linux - General 3 08-02-2007 01:00 PM
mkdosfs slackware_newbie Linux - Hardware 1 12-03-2006 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration