LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-04-2011, 07:47 PM   #1
franklin.sucre
LQ Newbie
 
Registered: Nov 2010
Location: vadgaon
Posts: 12

Rep: Reputation: 0
Question how to merge 2 partitions, say /dev/hda8 and /dev/hda9?


Dear all,

Is that possible to merge the 2 ext3 partitions without moving data in the old partitions? What i did was, i created new partition say /dev/hda8, which is to be merged to some old partition say /dev/hda3. Is this possible?

Thanks in Advance...
Franklin
 
Old 05-04-2011, 08:48 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
IMO, the best way would be to back your data up, remove hda8, and resize hda3. I also found an article for you, it may help without the need to lose all of your data. http://www.howtoforge.com/linux_resi...xt3_partitions

Hope that helps,

Josh
 
Old 05-04-2011, 09:34 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,138

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
Short answer, NO.

Even worse if these are not LVM (or btrfs or zFS or the like). To enlarge a "normal" partition needs contiguous space following the partition. You may need to organise that as well.
Do-able, but can get messy.
 
Old 05-07-2011, 07:14 PM   #4
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix
Posts: 140

Rep: Reputation: 23
I think you need to resize the partition /dev/hda3, to make room to contain all data. This will, most probably, require to modify (shrink, move etc) other partitions.

It is safer to keep backup, because every operation that modifies partitioning is potentially dangerous for the data (hardware failure, power failure, software bugs, even bad connectors and cables could corrupt the filesystem).

I had to do this myself on a 750GB external USB drive, almost full with 3 partitions on it. I took some days to backup and restore the data, and just a few minutes to delete 2 partitions + 1 extended, and expand the remaining first partition of the drive! I had no problem, so I needed to restore the contents of the old 2nd and 3rd partitions only. Nevertheless, even the 1st partition was safe this manner.

Merging partitions is long ago an asked feature for GParted. However, it isn't simple at all: what to do with file/folder permissions, with files or directories with identical names, what to do in case of different filesystems, etc.
 
  


Reply

Tags
partitioning


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
Slack 12.2 -borked superblock on /dev/hda8 the_penguinator Slackware 4 01-06-2010 09:28 AM
ubuntu 6.10 install (dual boot with XP) - how to put grub in /dev/hda9? Airidh Ubuntu 5 04-05-2007 08:54 AM
dosfsck -rw /dev/hda8 >>> error gaaln Linux - Software 3 08-24-2006 03:30 PM
my hda8 is now hda9 and linux is gone billgnu Linux - General 5 12-11-2005 03:41 AM


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

Main Menu
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