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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-26-2011, 01:23 PM
|
#1
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,116
|
move partition with directory & contents to another drive.
I have a partition sda10 which is named /home partimage, it resides within my Debian logical partition, but is not added to my fstab as I prefer not to automount after login.
It's approximately taking up 400G space on my Debian hdd sda & I would like to move to sdb windows drive which has 750G unallocated space also without automounting.
Would it be easier to just create the partition & just move the directory to it?
|
|
|
|
08-26-2011, 01:39 PM
|
#2
|
|
Member
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 200
Rep:
|
wouldn't the following work:
Code:
dd if=/dev/sda10 of=/dev/sdbX
|
|
|
|
08-26-2011, 01:51 PM
|
#3
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,116
Original Poster
|
Thank you for your response, I usually use clonezilla, never used the command line to do it.
So my question is can I take it out of logical & create & place on a primary partition.
Also does this command create the partition or does it need to be created prior to the dd command you supplied?
|
|
|
|
08-28-2011, 08:10 PM
|
#4
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,937
|
Quote:
|
Would it be easier to just create the partition & just move the directory to it?
|
This sounds ok to me, especially if you want to retain Linux perms etc (I assume you mean an ext3 or ext4 partition).
Create the new partition, mount it, mv the old dir to a new name eg /home2 on new partition, rename old to /home3, rename new to /home and reboot/test.
If ok, delete old one...
|
|
|
|
08-28-2011, 10:12 PM
|
#5
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,116
Original Poster
|
Would this command work, or do I need to add to the command?
or would the command that chickenjoy gave be better.
Last edited by EDDY1; 08-28-2011 at 10:17 PM.
|
|
|
|
08-29-2011, 12:13 AM
|
#6
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,116
Original Poster
|
Have the device names changed in the commands on this howto dated from 2005
http://www.linuxquestions.org/questi...ommand-362506/
Or are the commands upto date
Last edited by EDDY1; 08-29-2011 at 01:19 AM.
|
|
|
|
08-29-2011, 02:40 AM
|
#7
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,116
Original Poster
|
I've created a partition on sdb3 & am going to copy everything fro sda10 to sdb3 they are all image files I will just copy individual folders .
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:16 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|