Linux - Laptop and NetbookHaving 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
"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.
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.