LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-29-2004, 12:23 AM   #1
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Rep: Reputation: 30
Partitioning


When I inatalled Mandrake I had 16 gb of unformated space and when I installed it Mandrake make a 7 gb and a 9 gb partition for linux and my question is how do I merge these two partitions without losing data?
 
Old 06-29-2004, 08:07 AM   #2
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
anybody got an idea?
 
Old 07-01-2004, 01:10 AM   #3
phlyersphan
Member
 
Registered: Jun 2004
Location: Chicago, IL USA
Distribution: Mandrake 10
Posts: 103

Rep: Reputation: 15
by nature, modifying/resizing partitions is destructive (ie. you lose your data). programs like Partition Magic can non-destructively modify partitions, but i'm not sure if that prog only works under windows, and being new to linux i know of no linux equivalent.

Last edited by phlyersphan; 07-01-2004 at 02:40 AM.
 
Old 07-01-2004, 02:30 AM   #4
KlaymenDK
Member
 
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD v6.0
Posts: 123

Rep: Reputation: 15
Well if you have a spare HD you can do this, towers-of-hanoi style. You don't say what your current 2nd partition is -- I'll chance it and say it's either /home or perhaps /usr. If it's /usr I don't know if you can pull this off, but /home should be doable.

- What you do is, pop in the extra disk (I'm presuming it's bigger than your second partition).
- Log in as root and mount that new disk as /mnt/newdisk.
- Copy everything from /home to /mnt/newdisk. Do <something brilliant> to preserve access rights.
- Unmount both /home and /mnt/newdisk (do this while being logged in as root, of course, so /home is not used.
- Mount your 2nd disk as /home. (Reboot?)
- Blame somebody else than me if this doesn't work -- I'm not an expert (see my status). But this is what I'd do, in any case.

Good luck!
 
Old 07-01-2004, 02:33 AM   #5
KlaymenDK
Member
 
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD v6.0
Posts: 123

Rep: Reputation: 15
Oh yes, after you're done with the above, time to merge your partitions:
- Use a disk partitioning tool (such as PowerQuest PartitionMagic, others might do equally well) to enlarge your primary partition (back up first of course, but PQM should be able to do it non-destructively).
- Create a new directory there, call it e.g. /homesoon.
- Copy all of /home to /homesoon, again preserving access rights and whatnot.
- Unmount /home, rename /homesoon to /home.
- Done? Weep? Cheer?

/me runs and hides, just in case.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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