Dual booting, want to get rid of windows partition
Linux - NewbieThis 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
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.
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?
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.