LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 06-26-2009, 01:25 PM   #1
ziggyjoe21
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Need help formatting hard drive


Just bought Dell Inspiron laptop with Ubuntu, but need to install Windows on it.

I read you have to format the hard drive before you can install windows, but I don't know how to. Dell tech support charges $130 for over the phone help.

Any help is greatly appreciated.
 
Old 06-26-2009, 01:30 PM   #2
italiano40
Member
 
Registered: Jan 2006
Distribution: CentOS 5.3, Mac OSX 10.6.8
Posts: 70
Blog Entries: 1

Rep: Reputation: 17
if you need to format and partition a drive i would install gparted on ubuntu if you want the whole drive reformatted then use the live cd of gparted
 
Old 06-26-2009, 01:52 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"formatting the drive" normally means installing a filesystem. I think all you need to do is delete all the partitions--this you can do with any partition utility. Any Linux live CD will have a partitioning tool, or you can use GParted, which comes on its own live CD.
 
Old 06-29-2009, 11:51 PM   #4
vulariter
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
If you want to get rid of everything on the drive, before you install Windows, it's more a matter of destroying the partition table (the "map" that tells an OS where the partitions are), than it is about actually reformatting. Reformatting is to create a new file system. Creating any new file systems is essentially useless, since most Windows installers (XP, 2000, NT, and further back) want to reformat the partition(s).

I say, boot into a Linux live CD and run these key strokes to wipe out your primary drive's partition table (once you are on a root command line):

fdisk /dev/sda

<press return>

<press "o">

<press enter>

<press "w">

<press enter>

reboot

<press enter>

<done>

Once you reboot, insert your Windows CD (hopefully XP), and when you get to the partitioning prompt, create your partition(s) as with ntfs (and don't use the "quick format", if you can help it)....

Keep in mind that the instructions I've given are highly destructive and are to used with care. Please also keep in mind that this method will destroy your Ubuntu install (perhaps, beyond repair), although this method should not be considered a "secure" delete (for which you should lookup the "dban" live CD).

Enjoy!

vulariter

Last edited by vulariter; 06-29-2009 at 11:54 PM.
 
Old 07-01-2009, 01:07 AM   #5
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 654

Rep: Reputation: 53
The above respondents are offering excellent advice.

But remember one thing... Windows doesn't play too nice with other operating systems and often will destroy the GRUB boot menu (i.e. unless you use a boot floppy you're going to boot into Windows everytime) solution- install Windows first and Linux second.
 
Old 07-03-2009, 08:22 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think that you want to use gparted to reduce your Linux partition's size, making room for Windows. Leave the free space unformatted. Select this unformatted space during the windows installation.

After installing Windows, you will need to fix the Linux entries in /boot/grub/menu.lst and if needed in /etc/fstab to reflect your new partition scheme. The new naming scheme for partitions in menu.lst and the fstab files may help reducing the amount of fixup you need. For example, if fstab uses the uuid of the partition instead of the device name, it won't need editing.

Add an entry for Windows to /boot/grub/menu.lst. Mine looks like this:
[code]
title Windows Vista
rootnoverify (hd0,1)a
---
If your Dell computer has a "recovery" partition, you might not want to delete that partition, just in case.

Good Luck!

Last edited by jschiwal; 07-03-2009 at 08:31 AM.
 
Old 07-03-2009, 08:25 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Just bought Dell Inspiron laptop with Ubuntu, but need to install Windows on it.
Do you want to remove ubuntu and install windows, or do you want to install windows together with ubuntu (dual boot) ?
 
  


Reply



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
Hard Drive formatting! help!! the-yikes Slackware - Installation 16 01-29-2007 02:43 PM
Help Me!! Need help formatting my Hard Drive Mr. G Linux - Software 4 07-25-2006 10:57 AM
Formatting a Hard Drive dudeman41465 Linux - Software 3 10-13-2005 04:09 PM
Hard-drive formatting kc0bus Linux - Newbie 5 07-02-2005 12:14 PM
Formatting Hard Drive baber_abbasi Linux - Software 2 01-04-2005 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:13 AM.

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