LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-24-2010, 02:36 AM   #1
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Rep: Reputation: 0
Question How to redo my dual boot OS?


I have an OSS 11.3/WinXPPro dual boot system. Unfortunately, Windows is a mess because of a botched restoration. I guess I need to start again from scratch. I assume if I attempt to reinstall Windoze that the whole dual boot system is going to get botched up anyway.

I would like to know what would be the best approach since I am going to start by installing Windoze to the HD. Here is a readout of what I currently have from gparted:

Partition / File Sys / Mount Point / Flags

/dev/sda1 ntfs /media/sda1
/dev/sda2 extended boot,lba
/dev/sda5 linux-swap
/dev/sda6 ext4 /media/sda6
/dev/sda7 ext4 /media/sda7
unallocated unallocated

Gparted gives me several choices of formatting or deleting. Common sense tells me to reformat all those linux partitions to ntfs, BUT common sense failed me when I attempted to restore all my settings in Windows.

Please let me know what is the best approach. Thanks in advance.
 
Old 10-24-2010, 02:56 AM   #2
tiredofbilkyyaforallican
Member
 
Registered: Aug 2010
Location: 3rd rock from the sun
Distribution: LMDE/Peppermint/Mint 9,&10/along with a few others
Posts: 152

Rep: Reputation: 22
Make sure you backup everything as you are going to lose it all as windoze thinks it is the ONLY OS in the world and it will delete Linux before loading .
 
0 members found this post helpful.
Old 10-24-2010, 03:39 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
Just create the needed partition(s) for windows, and for linux.
Install windows on the ntfs partition you created, then install linux on the other partition(s)
Linux will install a bootloader in the MBR, so you can dual boot.
Make sure to install windows first,then linux since windows will overwrite the MBR.
If you only want to reinstall windows, after installation you need to run the bootloader (grub or lilo) from a live CD in order to dualboot again.

Quote:
Make sure you backup everything as you are going to lose it all as windoze thinks it is the ONLY OS in the world and it will delete Linux before loading .
Windows will only delete linux if you tell it to do so.
If linux has his own partition, it will not be deleted.
It will however overwrite the MBR.

Kind regards
 
Old 10-24-2010, 03:42 PM   #4
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
You don't really need to reinstall linux in order to reinstall windows. When installed, windows would rewrite master boot record (MBR — first 512 bytes of hard disc).
In order to restore grub you should copy MBR with dd if=/dev/sda of=<some easy accessible file> bs=512 count=1 command. Then you can reinstall windows, as usual. After that you should boot your computer from live-cd, and restore MBR with dd if=<some easy accessible file> of=/dev/sda bs=512 count=1. Magic!
 
1 members found this post helpful.
Old 10-24-2010, 04:05 PM   #5
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Original Poster
Rep: Reputation: 0
Question

Thanks everyone for your replies. I am hoping for answers more specific as to how I should work these partitions:

Partition / File Sys / Mount Point / Flags

/dev/sda1 ntfs /media/sda1
/dev/sda2 extended boot,lba
/dev/sda5 linux-swap
/dev/sda6 ext4 /media/sda6
/dev/sda7 ext4 /media/sda7
unallocated unallocated

I'm not worried about losing any info on this HD because I'm just now trying trying to set it up. Although OSS 11.3 is perfect, WinXP is an utter mess; this happened because I restored wrong.

Only last night, I discovered that windoze has a file transfer wizard and there are certain protocols I have to follow. The way windoze is now it's complete garbage, so reinstalling would only rehash the garbage.

I want to start fresh again, so I would like to know: Do I delete the above partitions? Thanks for your help!
 
Old 10-24-2010, 08:20 PM   #6
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Original Poster
Rep: Reputation: 0
Question

Is there a resource that tells me how to use gparted to safely wipe my HD, so I can reinstall a dual boot system again? Thanks in advance.
 
Old 10-25-2010, 10:42 AM   #7
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,965

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
Quote:
Common sense tells me to reformat all those linux partitions to ntfs
The above is a quote from your first post. What would you hope to accomplish by doing that? Linux won't work on an ntfs partition.

If you have no data on the computer you want to save, just install windows and then Opensuse. If your Opensuse is working, you could just re-install windows to sda1. Or you could use GParted and delete the partitions, create new ones and format and install.

If you have no data to save, I'm not sure what you mean by 'safely wipe my HD'?
 
Old 10-25-2010, 04:46 PM   #8
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
If you have no data to save, I'm not sure what you mean by 'safely wipe my HD'?
I've read stories from others who haphhazardly deleted partitions only to discover that less space was available on their HD from their 1st use.

I discovered devices > create partition on gparted. That's exactly what I need w/o too much trouble.

Windoze is going to take hours to reinstall anyway. I figured why not just start fresh? OSS 11.3 takes almost no time to install with no trouble in comparison.
 
Old 10-25-2010, 05:09 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
If you do a clean Windows installation it will use the partition you choose in the installer. This partition will be formatted before the install, so there will not be any type of "rehashing". Maybe you confuse that with an repair-installation.
If your openSuse install is perfect, as you stated, why would you want to reinstall it. You do not need to do that, just install Windows to the same partition you did it the first time and make sure to format that partition. Be sure to use the commands given by Samotnik to save and restore your bootloader, and by all means, if you have valuable data, be sure to back it up.
 
1 members found this post helpful.
Old 10-27-2010, 04:31 PM   #10
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by Samotnik View Post
..When installed, windows would rewrite master boot record (MBR first 512 bytes of hard disc).
In order to restore grub you should copy MBR with dd if=/dev/sda of=<some easy accessible file> bs=512 count=1 command. Then you can reinstall windows, as usual. After that you should boot your computer from live-cd, and restore MBR with dd if=<some easy accessible file> of=/dev/sda bs=512 count=1. Magic!
You guys have been really helpful. I need a few pointers on using the console commands. I figure that I will have to copy MBR to a flash drive because the live-CD does not access the HDs. Can someone please provide the syntax for:

dd if=/dev/sda of=<some easy accessible file> bs=512 count=1

I mean, what does the path to the file look like on a flash drive?

Thanks in advance.
 
  


Reply

Tags
dual boot, partitioning, partitions, scratch


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
My FC6 / XP dual boot to FC10 / XP dual boot upgrade plan... is this sane? rylan76 Fedora - Installation 6 02-03-2009 07:31 AM
Yum redo needed Lsatenstein Fedora 6 03-09-2007 06:03 PM
Installing dual Boot 98/Linux - WONT 'LILO' Dual Boot !? L1nux3d Linux - Laptop and Netbook 15 02-11-2006 05:36 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai Suse/Novell 1 12-14-2004 05:04 PM


All times are GMT -5. The time now is 06:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration