LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2007, 04:01 PM   #1
PherricOxide
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
mkswap on wrong partition (help!)


I was attempting to dual boot my Windows XP machine, but accidentally ran mkswap on the XP partition. When I look at the partition with fdisc it still says it's an NTFS partition, and I can mount it and view all the files in Linux. However, when I try and boot I just get a black screen. I tried loading up the Windows recovery console, but it doesn't see Windows installed anymore. Considering mkswap only took half a second, I don't think it edited anything except a few sectors. Is there any way to reverse the effects?
 
Old 12-17-2007, 04:06 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Unless someone already knows the answer, somebody needs to run an experiment to see what exactly is changed by "mkswap". It seems possible that it is something simple and easy to fix.

If you can see the files, there is hope.

If this is not resolved by 9PM PST, I may be able to dig further.
 
Old 12-18-2007, 08:18 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
It looks like "mkswap" only writes to the first 8 sectors of the partition. I believe that this is the start of where NTLDR lives.

I think "fixboot" in the Windows recovery console restores NTLDR, but I have never had occasion to do this.
 
  


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
Performed mkswap on / partition! phaeton Linux - General 3 03-15-2006 10:18 AM
Added second harddrive as a partition, but now the partition size is wrong.. mlsbraves Linux - General 5 08-17-2005 09:10 PM
/sbin/mkswap: Permission Denied Ikebo Fedora 3 08-17-2005 12:11 AM
mkswap harakiri! lol Martin Strand Linux - Newbie 5 04-19-2005 02:59 PM
Wrong swap partition GaryS Linux - Hardware 4 03-20-2004 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration