Find the answer to your Linux question:
Results 1 to 10 of 10
I have dual-boot Windows XP and Karmic. My Karmic is only a few weeks old, with only a few of my files. So this is the best time to try ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37

    How to display my /home partition in Nautilus?

    I have dual-boot Windows XP and Karmic.

    My Karmic is only a few weeks old, with only a few of my files. So this is the best time to try disaster recovery.

    I backed up the following folders to an HDD:

    /home
    /etc
    /usr/local
    /var

    I had two XP partitions, and three Ubuntu partitions:

    Linux swap
    /
    /home

    From the ISO CD, I re-installed Ubuntu, and mounted it on "/"

    The other existing partitions were unchanged.

    After reboot, when I click "Home" in "Places" in Nautilus, the folder is empty apart from all the default stuff.

    My old /home partition is visible as "30GB file system". All my files are still on this partition.

    What do I need to do so that my /home partition will appear under "Places" in Nautilus?
    .

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    Do you mean that you want to use the old /home partition as the current one?

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44
    Mostly yes. Even I wanted to know answer for this. I on the other hand had tried to install / seperate and then chosen to mount old /home as /home but kept unformatted. After install same case; when I click on /home it just shows the default directories.

  4. #4
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    Quote Originally Posted by coopstah13 View Post
    Do you mean that you want to use the old /home partition as the current one?
    That's correct

    In other words, I want to restore the exact same setup as I had before I re-installed Ubuntu on the system partition.

    The purpose of the "disaster recovery" simulation is to verify that if I lose the system partition, I still have the same /home partition.

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you need to mount it using /etc/fstab

    We need to know what partition it is on your disk and what filesystem in order to tell you the entry to add to the file. Do you know which it is? It should be something like /dev/sda2 or something. sudo fdisk -l will tell us the structure, but we can't be certain which partition is the old /home.

  6. #6
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    Quote Originally Posted by coopstah13 View Post
    We need to know what partition it is on your disk and what filesystem in order to tell you the entry to add to the file. Do you know which it is?
    Here are the results of: sudo fdisk -l

    Code:
    Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        1923    15446466    7  HPFS/NTFS
    /dev/sda2            1924        4598    21486937+   7  HPFS/NTFS
    /dev/sda3            4599        9729    41214757+   5  Extended
    /dev/sda5            4599        5149     4425876   82  Linux swap / Solaris
    /dev/sda6            5150        6430    10289601   83  Linux
    /dev/sda7            6431        9729    26499186   83  Linux
    I can say that sda6 is the Ubuntu partition, and sda7 is the /home partition. (The first two partitions are Windows XP, and a data partition.)
    .

  7. #7
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    assuming /home is ext3, you would need a line like this in /etc/fstab
    Code:
    /dev/sda6 /home ext3 defaults 0 1

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    In case that doesn't work, post the contents of /etc/fstab file here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    Many thanks to coopstah13, svinoba, and devils casper for all help.

    I lost my internet for about 10 hours, so to pass the time I simply re-installed Ubuntu in the same way that svinoba tried.

    This didn't work for svinoba, but in my case it worked

    Here's what I did:

    • Select the "old" Ubuntu partition. Mount at "/". Format.
    • Select the "old" /home partition. Mount at "/home". But don't format!!

    When I got my internet back, I saw the posts by coopstah13 and devils casper. I can use the suggestions in future. Thanks for that

    Here are the contents of my fstab file:

    Code:
    # / was on /dev/sda6 during installation
    UUID=69d57984-7d49-4512-8789-ce9ace05e19f /               ext4    errors=remount-ro 0       1
    # /home was on /dev/sda7 during installation
    UUID=7e65945e-9acb-43cf-936c-0d752da69c1d /home           ext4    defaults        0       2
    # swap was on /dev/sda5 during installation
    UUID=958fd681-2f7b-46f3-a00c-17b8975f8043 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0

  10. #10
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44
    It worked for you? Then I guess, I might have formatted it by mistake. I can use either of the methods for installation of next Ubu release Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...