LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2008, 11:10 PM   #1
Excalibre
LQ Newbie
 
Registered: Jun 2008
Posts: 18

Rep: Reputation: 0
Can I safely copy one partition to another and delete the first?


I'm screwing around with my partitioning scheme in order to make room to try some other distros and I'm wondering how to copy my / partition to elsewhere on the disk. I'm thinking just make two partitions the same size (and format, which is ext3), and then use the "dd" command, right? Or will that destroy my file system? Like, "dd if=/dev/sda5 of=/dev/sda3"? gparted will allow the user to move a partition but I've heard that it's buggy and not reliable.

Last edited by Excalibre; 06-27-2008 at 11:16 PM.
 
Old 06-28-2008, 12:16 AM   #2
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
I've used gparted several times to resize and copy partitions and never had an issue. (I always backup any first, but have never had to restore because of anything gparted has done). If you are creating a new partition on the same disk so another OS or distro can be installed, it may not be necessary to copy your existing partition, just shrink it to make room for another. A mounted partition cannot be moved or resized, and you can't umount the partition your OS is running on, so the easiest way is to boot from a live CD or rescue CD that has gparted on it.
 
Old 06-28-2008, 12:20 AM   #3
Honeysuckle
Member
 
Registered: Dec 2007
Location: Australia
Distribution: Puppy, debian
Posts: 118

Rep: Reputation: 15
Quote:
Originally Posted by Excalibre View Post
gparted will allow the user to move a partition but I've heard that it's buggy and not reliable.
I think there is an inherent risk of data corruption whenever you move or copy data, but I've used gparted several times and never had an error. I moved all of the partitions on my laptop the other day, including 2 windows partitions. Although I anticipated problems (I was prepared to restore everything, if necessary), it did it without problem. If you have a backup, I think gparted is worth using.
 
Old 06-28-2008, 12:35 AM   #4
Excalibre
LQ Newbie
 
Registered: Jun 2008
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lwasserm View Post
I've used gparted several times to resize and copy partitions and never had an issue. (I always backup any first, but have never had to restore because of anything gparted has done). If you are creating a new partition on the same disk so another OS or distro can be installed, it may not be necessary to copy your existing partition, just shrink it to make room for another. A mounted partition cannot be moved or resized, and you can't umount the partition your OS is running on, so the easiest way is to boot from a live CD or rescue CD that has gparted on it.
Yeah, I would just resize if that were an option but it's really not; the partition is in a bad spot because I created it last week as a stopgap for various reasons but if I want my partition table to be at all reasonable I have to move and resize my / partition.

If it's safe to use gparted's move tool, though, I'll do that instead. I'm guessing from the responses here that it's not as risky as I was led to believe.
 
  


Reply

Tags
partition



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
delete files uncompressed into wrong directory safely petersk Linux - General 3 03-04-2007 01:38 PM
how to safely rid myself of an xp partition? kateshine Linux - Newbie 4 08-12-2006 04:28 PM
How to safely re-partition squinn Linux - Newbie 3 08-23-2005 02:38 PM
Safely resizing NTFS partition jnsg Linux - General 9 01-12-2005 11:35 PM
increasing my ex3 partition safely ?? abbasakhtar Linux - Newbie 4 10-05-2003 10:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 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
Open Source Consulting | Domain Registration