Marcus-Sweden
May 5th, 2011, 12:12 PM
Hey, since I'm bad at Linux but want to learn, I usaly seperate my instalation and my private files at seperatde partitions, and earlier keept the /home/ folder empty.
But In 2010 I manage to put /home directory on a separate partion.
And then again now at the latest uppgrade I happened to destroy something. Therefore I formatted and installed the Linux fresch and I have now a perfect Ubuntu 11.04 on one partition.
But now I want to mount on my old /home/ on its own partion as /home in my new linux.
How do I do?
I guese I should unmount my new /home, and then mount on my old home on this mount point? and how do you do?
I also understand that it has something with /etc/fstab file to do?
But then I get I dont understand.
When I open Disk Utillity in Ubuntu I get the following information.
My partion with my dear old home directory called: /dev/sdb5 and if I understan right its type is ext4 (version 1.0) (since it says nothing about Linux Partition Type (0x83)
It says that it is mounted:
Mounted at /media/4f91178c-dd93-40ff-b548-d15c48f37c77
So if I got it right this partion instead of being mounted on /media/ so it should be mounted at /home/ but how do I do it? and what do I write? And how do you avoid destroy anything? files etc.
Also:
When I open this "old" /home in Ubuntu from the desktop, I find three folders.
friend (old home directory I created for friends)
Lost-found
marcus (my old directory with all my files that I do not want to spoil)
Is there a risk that they will disappear?
I have opened my / etc / fstab and so here it is on it.
Very very gratefull for help an answer!!! :-)
Kind regards.
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb1 during installation
UUID=c2c7fcb3-09a9-4b35-b589-7f0dc386630f / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=3c6da7e7-66a9-4c56-a187-40bac6a29412 none swap sw 0 0
# swap was on /dev/sdb6 during installation
UUID=65e2d94d-072c-4038-a98c-e3b059337696 none swap sw 0 0
But In 2010 I manage to put /home directory on a separate partion.
And then again now at the latest uppgrade I happened to destroy something. Therefore I formatted and installed the Linux fresch and I have now a perfect Ubuntu 11.04 on one partition.
But now I want to mount on my old /home/ on its own partion as /home in my new linux.
How do I do?
I guese I should unmount my new /home, and then mount on my old home on this mount point? and how do you do?
I also understand that it has something with /etc/fstab file to do?
But then I get I dont understand.
When I open Disk Utillity in Ubuntu I get the following information.
My partion with my dear old home directory called: /dev/sdb5 and if I understan right its type is ext4 (version 1.0) (since it says nothing about Linux Partition Type (0x83)
It says that it is mounted:
Mounted at /media/4f91178c-dd93-40ff-b548-d15c48f37c77
So if I got it right this partion instead of being mounted on /media/ so it should be mounted at /home/ but how do I do it? and what do I write? And how do you avoid destroy anything? files etc.
Also:
When I open this "old" /home in Ubuntu from the desktop, I find three folders.
friend (old home directory I created for friends)
Lost-found
marcus (my old directory with all my files that I do not want to spoil)
Is there a risk that they will disappear?
I have opened my / etc / fstab and so here it is on it.
Very very gratefull for help an answer!!! :-)
Kind regards.
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb1 during installation
UUID=c2c7fcb3-09a9-4b35-b589-7f0dc386630f / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=3c6da7e7-66a9-4c56-a187-40bac6a29412 none swap sw 0 0
# swap was on /dev/sdb6 during installation
UUID=65e2d94d-072c-4038-a98c-e3b059337696 none swap sw 0 0