Help - Search - Members - Calendar
Full Version: I Need To Move /home From /dev/hda3 To /dev/hda5
Linuxhelp > Support > Technical Support
cabuche_br
Hi,

At the bottom You will find my /etc/fstab file. I have suse running (installed it just yesterday) and I heard that Kubuntu might be a good try (I don't know much about linux, but enough to think that I would be better with a debian based distro). So I need to help from anyone about how to "move" my /home used with SUSE to the mounted drive with / ?

Also, after putting "suse" all in the same partition, how do I proceed to install kubuntu? Just format /dev/hda3 and install it there? What about the bootloader? Normal?

Thanks for your attention,

Rene

QUOTE
kurumin@renebs:~> cat /etc/fstab
/dev/hda5            /                    reiserfs  acl,user_xattr        1 1
/dev/hda6            /filesmp3            vfat      user,iocharset=utf8,users,gid=users,umask=0002 0 0
/dev/hda3            /home                reiserfs  acl,user_xattr        1 2
/dev/hda1            /win_C              vfat      ro,user,iocharset=utf8,users,gid=users,umask=0002 0 0
/dev/hda2            swap                swap      pri=42                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
proc                /proc                proc      defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                sysfs      noauto                0 0
/dev/cdrecorder      /media/cdrecorder    subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0            /media/floppy        subfs      fs=floppyfss,procuid,nodev,nosuid,sync 0 0
DS2K3
Mount the new home drive (ie mnt -t auto /dev/hda5 /mnt/new_home) then cp -R /home/* /mnt/new_home/ To copy everytihng across. Make sure it's all there, and then reformat and install the new distro

D
cabuche_br
QUOTE (DS2K3 @ May 18 2005, 08:38 AM)
Mount the new home drive (ie mnt -t auto /dev/hda5 /mnt/new_home) then cp -R /home/* /mnt/new_home/ To copy everytihng across.  Make sure it's all there, and then reformat and install the new distro

D

Hi,

Thank your for your help. I have done what you said. Should I have to do something else?

What about my /etc/fstab file under SUSE (/dev/hda5)? Should I just comment the line about /dev/hda3 ?

Again, thank you,
rene

I just edited this post with another comment/question bellow:

Please let me know if what I added at the ps: is on the "right track" for solving my problem,

ps:I've just spent some time analysing the foldertree under /mnt/new_home it is, as you know, the same tree under / what I noticed is that /home is there but empty!
From that I figure out the folowing steps that might solve the problem I created:
1) ERASE the line about /dev/hda3 from my /etc/fstab;
2) "cp -R /mnt/new_home/USERNAME /mnt/new_home/home/ " for all my USERS accounts, confirm if its all there - like you said.
3) reboot and see it is all ok.
4) if it is, I can proceed with the kubuntu install
DS2K3
You can take the line out if you want, but if you're going to format anyway there isnt a lot of point

[quote]
"cp -R /mnt/new_home/USERNAME /mnt/new_home/home/ " for all my USERS accounts, confirm if its all there - like you said.
[/quote

You need to use "cp -r /home/* /mnt/new_home/". It will copy everything in /home whihc is your current home drive to /mnt/new_home which is where you mounted the new home drive

/home shouldn't be empty...

D
cabuche_br
QUOTE (DS2K3 @ May 18 2005, 11:28 AM)
You can take the line out if you want, but if you're going to format anyway there isnt a lot of point

Hi,

I am not going to format the / partition, only the /home, that is. The device /dev/hda3 is going to be the Kubuntu installation, and /dev/hda5 will be SuSE.

About the moving files. I've tested booting up without the line in fstab that mounts /dev/hda3 as /home and what I got was a sequence of error messages about not being able to save and/or find the .kde folders, etc.

I have done the "cp -r ..." command as root, could that be the problem?

Shouldn't I use the command "cp -r /home/* /mnt/new_home/home/" for the user folders be in the right place?

Thanks,

Rene
michaelk
Wait, your wanting to move your existing home partition i.e. hda3 back to the / partition i.e. hda5 and not to a new partition. What you want to do is:

mount -t auto /dev/hda3 /mnt/new_home

cp -r /mnt/new_home/* /home/ (in reality it is actually old home not new but names do not matter)


You need to log in as root. That way you should not see any kde errors.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.