LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2005, 11:06 AM   #1
pwilkie
LQ Newbie
 
Registered: Feb 2005
Location: UK
Distribution: Mandrake 10.1 Official
Posts: 11

Rep: Reputation: 0
Extending home partition


Hi,

I currently dual boot Mandrake 10.1 Official with Win 2K....however it has been about 6 months since I last bothered to boot into Win2K. Time to remove it methinks.

Is it possible to remove Windows by simply rm *.* in the windows partitions via linux.

Also, can I then 'merge' these partitions with my existing home partition - i dont want to have more than my root and home partitions ideally.

For example.

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 5.7G 2.2G 3.3G 41% /
/dev/hda8 3.6G 1.2G 2.5G 32% /home
/dev/hda1 7.0G 1.9G 5.1G 27% /mnt/win_c
/dev/hda5 15G 2.0G 13G 14% /mnt/win_d

Remove contents of hda1 and hda5 - then merge hda1 and hda5 with hda8 resulting in something like the following:

Filesystem Size Used Avail Use% Mounted on
/dev/hda6 5.7G 2.2G 3.3G 41% /
/dev/hda8 21.8G 1.2G 20.6G 32% /home

Or am I asking for the equivalent of the moon on a stick here?

Thanks for any info.
 
Old 03-04-2005, 11:40 AM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
You could do this but not without data loss

You would want to redoo the parttions with home and the windows parttions. Backing up data that you would want to keep.
 
Old 03-04-2005, 11:41 AM   #3
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Looks like "moon on a stick" to me.

The problem is that /home is not contiguous physical space with win_c and win_d.

Your hard drive is currently something like this:

-----------------------------------
| win_c | win_d | / | swap | /home |
-----------------------------------

based on the "hda?" names. As you can see, you have your root partition (and I assume a swap partition (/dev/hda7)) between your Windows partitions and your /home. There is no way to "merge" them like that.

Your best bet, to fully use your hard disk, is to save everything, and then delete all partitions, set them up new, and reinstall/restore.

Last edited by Padma; 03-04-2005 at 11:43 AM.
 
Old 03-05-2005, 07:24 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Rather than reinstall you could reformat the windows partitions as linux ones (using ext3, or whatever) and then mount them in your home directory eg as /home/pwilkie/sparespace and /home/pwilkie/mp3s. Remember, partitions can be mounted just about anywhere, not just at / or /mnt
Hope this helps.
 
Old 03-05-2005, 07:32 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
tredegar's suggestion is the way I prefer to do it - mount points are just that.
Simple, it works, little chance of screwing up and losing data.

Winner all round.

Last edited by syg00; 03-05-2005 at 07:34 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending partitions bender103 Linux - Software 2 03-09-2005 06:00 AM
Extending a partition with RH Linux? xmdms Linux - Enterprise 2 11-25-2004 09:08 AM
Extending /tmp Walter Sobchek Linux - Software 3 08-11-2004 05:05 PM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 10:57 PM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08: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