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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-29-2004, 11:44 AM
|
#1
|
|
Member
Registered: Dec 2004
Posts: 189
Rep:
|
HD Partitioning
Recently installed Fedora 3 onto a 60G hard drive, partitioning it into 20:40G windows:Fedora. I'm getting to the point where I am going to stop using windows (on this machine) and want to free up the 20G for the use of Lunix users. It has taken blood, sweat and tears to get this machine to network with my Windows machines, so I don't want to re-install. Is ther a way in Linux of using the 20G partition for user space and then getting rid of the boot loader?
|
|
|
|
12-29-2004, 03:59 PM
|
#2
|
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,574
|
You will need a bootloader, no matter what you do. To remove windows from the menu, just edit grub.conf.
To complete remove windows and make /dev/hda1 available for users, you first need to re-format /dev/hda1 for Linux.
Use fdisk (see man fdisk) to write the partition table. With fdisk, be very careful to specify /dev/hda1. If you say /dev/hda, you will apply the command to the entire disk.
Then use mkfs to make a Linux filesystem on /dev/hda1.
Then cd to /mnt and make a mount point for the partition (/mnt/data or some such name). mkdir data
Finally, edit /etc/fstab to point /dev/hda1 to /mnt/data (with appropriate parameters - look at the line for /dev/hda2 for what to put in).
|
|
|
|
12-29-2004, 04:04 PM
|
#3
|
|
Member
Registered: Jan 2003
Distribution: LFS
Posts: 64
Rep:
|
You should just delete the Windows partition, as it's probably FAT32 or NTFS. Then you can create an Ext3 partition in it's place. Then as root, you can temporarily mount it, and move the contents of the /home directory to it. Then you can umount and edit /etc/fstab, so that it mounts that partition to /home.
Getting rid of the boot loader? You do realise that if you do that, you won't be able to boot Linux either... ?
|
|
|
|
12-29-2004, 05:02 PM
|
#4
|
|
Senior Member
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,756
Rep: 
|
You may want to use 'parted' to resize your fedora partition.
|
|
|
|
12-30-2004, 11:21 AM
|
#5
|
|
Member
Registered: Dec 2004
Posts: 189
Original Poster
Rep:
|
Three excellent replies. Unfortunately, I only understand some of each:
I have to have a bootloader: I can live with that.
How do I know (for sure) which drive Windows is on, and do I use fdisk to delete it?
What is an ext3 partition, and how do I create it?
I can understand the mkfs and then mounting of the partition. Doesn't this mean that the disk is formatted and then recognised by Linux. The last bit (...and move the contents of the /home directory to it. Then you can umount and edit /etc/fstab, so that it mounts that partition to /home) loses me.
I really don't want to erase part of Linux as it is working so well.
|
|
|
|
12-30-2004, 03:31 PM
|
#6
|
|
Senior Member
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,756
Rep: 
|
ext2, ext3 (and reiser) are filesystems. mkfs can create ext3 filesystem for you.
cfdisk can make your life easyer than plain fdisk.
As soon as you start cfdisk you will see which partition belongs to Windows.
Using parted may be a little scary, in particular if you do not know exactly what you are doing. In case you decide not to resize your partition(s) then better mount the new one somewhere where it suits your needs best. One possibility was mentioned by Ironica. If your users are just Samba users, then you should mount it under a shared directory, so can they access it without creating new share under Samba.
|
|
|
|
12-30-2004, 04:28 PM
|
#7
|
|
Member
Registered: Dec 2004
Posts: 189
Original Poster
Rep:
|
Tried cfdisk and get command not found. Bit the bullet and tried fdisk (fdisk /dev/hda1). the command prompt appears, I type d (to delete the partition) and nothing happens. Is there another way of getting rid of the partition without resorting to a re-install?
Realised I have to enter commands. So, entered d to delete, then n for new and finally w for write. Restarted the machine and the partition is still there and working. Summat not right!
Last edited by NomadABC; 12-30-2004 at 04:41 PM.
|
|
|
|
12-30-2004, 05:31 PM
|
#8
|
|
Senior Member
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,756
Rep: 
|
fdisk /dev/hda (not /dev/hda1)
You cannot delete the partition without accessing the whole device.
p displays your existing partition table
Last edited by Emerson; 12-30-2004 at 05:37 PM.
|
|
|
|
12-31-2004, 07:17 AM
|
#9
|
|
Member
Registered: Dec 2004
Posts: 189
Original Poster
Rep:
|
Really gone to town and re-installed Linux on the whole hard drive. Who needs Windows anyway!
Thanks for your help.
|
|
|
|
01-27-2005, 02:01 AM
|
#10
|
|
LQ Newbie
Registered: Jan 2005
Posts: 2
Rep:
|
When fdisk is used, you have to commit the changes you have made.
d delete a partition
p shows the effect
w finally writes the new partition table to disk
if you forgot to w(rite) the partition table, no change will be effective
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:45 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|