LinuxQuestions.org
Help answer threads with 0 replies.
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 12-29-2004, 12:44 PM   #1
NomadABC
Member
 
Registered: Dec 2004
Posts: 189

Rep: Reputation: 33
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?
 
Old 12-29-2004, 04:59 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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).
 
Old 12-29-2004, 05:04 PM   #3
Ironica
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 64

Rep: Reputation: 15
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... ?
 
Old 12-29-2004, 06:02 PM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
You may want to use 'parted' to resize your fedora partition.
 
Old 12-30-2004, 12:21 PM   #5
NomadABC
Member
 
Registered: Dec 2004
Posts: 189

Original Poster
Rep: Reputation: 33
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.
 
Old 12-30-2004, 04:31 PM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
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.
 
Old 12-30-2004, 05:28 PM   #7
NomadABC
Member
 
Registered: Dec 2004
Posts: 189

Original Poster
Rep: Reputation: 33
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 05:41 PM.
 
Old 12-30-2004, 06:31 PM   #8
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
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 06:37 PM.
 
Old 12-31-2004, 08:17 AM   #9
NomadABC
Member
 
Registered: Dec 2004
Posts: 189

Original Poster
Rep: Reputation: 33
Really gone to town and re-installed Linux on the whole hard drive. Who needs Windows anyway!

Thanks for your help.
 
Old 01-27-2005, 03:01 AM   #10
p.roumegoux
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
Talking

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
 
  


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
Partitioning... Ophidian Slackware - Installation 2 09-04-2005 06:12 PM
Partitioning regorbro Linux - General 5 12-05-2004 03:07 PM
Partitioning Help Redwolf_Eddy Linux - Newbie 4 04-19-2004 02:55 PM
Need help with partitioning snatale1 Linux - Newbie 2 08-16-2003 03:38 PM
partitioning TravisB Linux - General 7 07-31-2002 08:30 PM


All times are GMT -5. The time now is 09:45 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration