LinuxQuestions.org
Visit Jeremy's Blog.
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-28-2004, 11:23 PM   #1
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Dual booting, want to get rid of windows partition


Hi,

I am dual booting my laptop with windows XP, I wanna delete the windows partition without harming my linux partition. Is there an easy way of doing it?

Thanks

K. Gill
 
Old 10-28-2004, 11:36 PM   #2
wolfe2554
Member
 
Registered: Apr 2003
Location: denver co
Distribution: redhat9
Posts: 156

Rep: Reputation: 30
oh boy oh boy
here log in as root and run fdisk.
fdisk /dev/hda <<-- where hda is the first harddisk
first press p
this will print your partition table
then press d to delete a partition
select the partition number refering to the print out of the table.
then once back at menu press w to write to disk
then q to quit
now the next step is to change lilo.
type cd /etc
now
edit lilo.conf file
it should look like this
prompt
timeout=0
default=linux-2.4.20
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
root=/dev/hda1
image=/boot/vmlinuz-2.4.20
initrd=/boot/initrd-2.4.20.img
read-only
label=dos
image=/boot/vmlinuz-2.4.20
label=linuxbckup
initrd=/boot/initrd-2.4.20.img
read-only
append="root=LABEL=/"
now what you are looking for is something like
label=dos or label=winxp
now delete that section if it was this table I would delete everything from
image=/boot/vmlinuz-2.4.20
to label=msdos
then make sure that default is equal to the label of the linux you want
and save it then
run lilo
thats it
 
Old 10-28-2004, 11:36 PM   #3
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
The easiest partitioning tool I know is boot it (www.terabyteunlimited.com) but it requires you to make the boot disk from windows which might or might not be a problem for you. I use it for the majority of my partitioning needs (i.e. resizing/sliding partitions). Everything should be self explantory once you run it.
 
Old 10-29-2004, 12:32 AM   #4
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
Didnt work simply because formatting /dev/hda1 (windows) broke the system and I couldnt get to grub.. reinstalling the whole OS now. oh boy..
 
  


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
Dual Booting 2 Distro in different partition novice26 Linux - General 2 04-08-2005 01:55 AM
dual booting mandrake on a unformated partition slapadelic Mandriva 2 12-02-2004 06:28 PM
Dual dual booting with Suse 9.1 pro and windows 98SE UDflyer Linux - General 1 07-30-2004 02:37 PM
Are you dual booting and Windows stopped working (booting) then here's the answer: rberry88 Linux - General 1 02-12-2004 09:05 AM
partition on dual booting system learner Linux - Software 3 09-25-2003 11:57 PM


All times are GMT -5. The time now is 02:55 AM.

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