LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2004, 12:48 AM   #1
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Rep: Reputation: 15
Unhappy questions about removing windows xp


Hi

I want to remove windows xp and give its freespace to linux by following article:
http://www.linuxfocus.org/English/Ju...rticle101.html

I was able to remove windows xp using fdisk /dev/hda1 and t(t,1,83) then mke2fs /dev/hda1 as indicated by the article, now when I type fdisk -l gives the following:

Disk /dev/hda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2362 18972733+ c Win95 FAT32 (LBA)
/dev/hda2 2363 3585 9823747+ 83 Linux
/dev/hda3 3586 3649 514080 82 Linux swap

the /dev/hda1 is still Win95 FAT32 (LBA) but not Linux? But I followed the article anyway to create a mount point mkdir /mnt/tmp, then mount -t ext2 /dev/hda1 /mnt/tmp. The article then says "Copy / to /mnt/tmp/ while preserving its structure: cp -ax / /mnt/tmp/. " After I type cp -ax / /mnt/tmp/ :

cp: missing destination file
Try `cp --help' for more information.

I'm stuck here and not sure what to do. I think the article wants to copy all the files in dev/hda2 to /dev/hda1 and make hda1 as a root, but the cp -ax //mnt/tmp/ doesn't work for me?

Thank you very much
 
Old 05-16-2004, 01:49 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
I believe, though not 100% sure, that the partition table is only read once by the kernel at bootup. And, therefore, you should reboot linux in order for it to recognize the new table.
 
Old 05-16-2004, 02:29 AM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Yes, you should always restart after making any changes to the partition tables.

You might also want to look into using cfdisk, it is much easier to use.
 
Old 05-16-2004, 12:07 PM   #4
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Original Poster
Rep: Reputation: 15
Hi

Thanks for the replies, but today after restarting my computer, fdisk -l still gives:

Disk /dev/hda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2362 18972733+ c Win95 FAT32 (LBA)
/dev/hda2 2363 3585 9823747+ 83 Linux
/dev/hda3 3586 3649 514080 82 Linux swap

If I do "fdisk /dev/hda1" then t or t(t,1,83) again, this time it says "No partition is defined yet!"
Is there anyway I can use fdisk again to change hda1 Win95 FAT32 to Linux?

Thank you very much
 
  


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
Fedora 2 removing windows jml90 Fedora 1 08-08-2005 03:41 AM
Issues with removing Windows? ploosh Linux - Newbie 3 03-08-2005 01:06 PM
removing windows??? Tuul Linux - Newbie 5 01-16-2005 04:10 PM
Removing Windows 2000 jordan_innl Linux - Software 2 11-11-2003 04:12 PM
Removing Windows partition... Enil8 Linux - Newbie 6 07-13-2003 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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