hi, my partitions are those /dev/hdb1 /boot /dev/hdb2 swap /dev/hdb3 / I want to move /home directory to another hdd for later installs. I have an unformatted partition /dev/hda3 and I want to mount it to /home without disturbing the existing user directories, files, their permissions, ownerships, and groupships. should this work?: reboot in rescue mode (suse 7.2 disk 1) format /dev/hda3 (by the way i dont know how to format as ext2, or formatting in linux in general, please direct me to the relevant command for this) /mount -t ext2 /dev/hda3 /mnt/temp # cp /home/* /mnt/temp -r # umount /dev/hda3 # rm /home/* -r # mount -t ext2 /dev/hda3 /home does it really work? or will I have the groups or ownerships changed? or any other things that I should know before attempting such a radical change with my fully working system? thanks, baris
Baris Hasdemir writes:
hi,
my partitions are those /dev/hdb1 /boot /dev/hdb2 swap /dev/hdb3 /
I want to move /home directory to another hdd for later installs.
I have an unformatted partition /dev/hda3 and I want to mount it to /home without disturbing the existing user directories, files, their permissions, ownerships, and groupships.
should this work?: reboot in rescue mode (suse 7.2 disk 1) format /dev/hda3 (by the way i dont know how to format as ext2, or formatting in linux in general, please direct me to the relevant command for this) /mount -t ext2 /dev/hda3 /mnt/temp # cp /home/* /mnt/temp -r
Do a man on cp. cp -a will preserve owner, group, perms, links, etc.
# umount /dev/hda3 # rm /home/* -r # mount -t ext2 /dev/hda3 /home
does it really work? or will I have the groups or ownerships changed? or any other things that I should know before attempting such a radical change with my fully working system?
thanks, baris
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Wed, Oct 24, 2001 at 01:09:52PM -0400, Baris Hasdemir wrote:
hi,
my partitions are those /dev/hdb1 /boot /dev/hdb2 swap /dev/hdb3 /
I want to move /home directory to another hdd for later installs.
You don't need to reboot to do this. 1. Be sure all users with a directory under /home are logged out. 2. Log in as root. 3. Format your "other" partition as ext2. and mount it as /mnt. 4. Copy everything from /home to /mnt. The trick to this is to use the a and x options: cp -ax /home/* /mnt 5. umount /mnt 6. umount /home 7. Edit /etc/fstab to put /home on the new pertition. 8. mount /home All done! -- ____________________________________________________________________ Robert Paulsen paulsen@texas.net
On Wed, Oct 24, 2001 at 12:20:38PM -0500, Robert C. Paulsen Jr. wrote:
On Wed, Oct 24, 2001 at 01:09:52PM -0400, Baris Hasdemir wrote:
hi,
my partitions are those /dev/hdb1 /boot /dev/hdb2 swap /dev/hdb3 /
I want to move /home directory to another hdd for later installs.
You don't need to reboot to do this.
1. Be sure all users with a directory under /home are logged out. 2. Log in as root. 3. Format your "other" partition as ext2. and mount it as /mnt.
No-one has told him how to do this yet ! mke2fs /dev/other replacing "other" by the hd device name of course.
4. Copy everything from /home to /mnt. The trick to this is to use the a and x options:
cp -ax /home/* /mnt
5. umount /mnt 6. umount /home 7. Edit /etc/fstab to put /home on the new pertition. 8. mount /home
All done!
-- Regards Cliff
Does the "cp" command make softlink as softlinks, or did it copy all the
stuf as it is, whitout making softlinks.
Personaly, I prefer the TAR command.
Regards
Pascal Miquet
----- Original Message -----
From: "Cliff Sarginson"
On Wed, Oct 24, 2001 at 12:20:38PM -0500, Robert C. Paulsen Jr. wrote:
On Wed, Oct 24, 2001 at 01:09:52PM -0400, Baris Hasdemir wrote:
hi,
my partitions are those /dev/hdb1 /boot /dev/hdb2 swap /dev/hdb3 /
I want to move /home directory to another hdd for later installs.
You don't need to reboot to do this.
1. Be sure all users with a directory under /home are logged out. 2. Log in as root. 3. Format your "other" partition as ext2. and mount it as /mnt.
No-one has told him how to do this yet !
mke2fs /dev/other
replacing "other" by the hd device name of course.
4. Copy everything from /home to /mnt. The trick to this is to use the a and x options:
cp -ax /home/* /mnt
5. umount /mnt 6. umount /home 7. Edit /etc/fstab to put /home on the new pertition. 8. mount /home
All done!
-- Regards Cliff
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Thu, Oct 25, 2001 at 04:07:46PM +0200, Pascal Miquet wrote:
Does the "cp" command make softlink as softlinks, or did it copy all the stuf as it is, whitout making softlinks.
The "a" option is short-hand for the "dpR" options and "d" says not to dereference soft-links. Thus it preserves soft-links. -- ____________________________________________________________________ Robert Paulsen paulsen@texas.net
participants (5)
-
Baris Hasdemir
-
Cliff Sarginson
-
Jesse Marlin
-
Pascal Miquet
-
Robert C. Paulsen Jr.