LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dual booting, want to get rid of windows partition (http://www.linuxquestions.org/questions/linux-newbie-8/dual-booting-want-to-get-rid-of-windows-partition-248629/)

ksgill 10-28-2004 11:23 PM

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

wolfe2554 10-28-2004 11:36 PM

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

bobwall 10-28-2004 11:36 PM

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.

ksgill 10-29-2004 12:32 AM

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


All times are GMT -5. The time now is 05:12 PM.