I cant see my HOME partition.

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

I cant see my HOME partition.

Postby Uzi » Sat Oct 12, 2013 9:08

Hi all,

I hope this forum is helpful & friendly to newbies unlike a couple of others. I started off leaving XP for Zorin. The guys on the forum were a great help & very patient. Unfortunately some bugs / hardware incompatibility made me need to look for another distro. I have ended up with Sabayon Gnome3 because, well, it just works as it says on the box 8)

My problem is though, something went wrong during the 1st install & during the updating it crashed, so I had to renistall. Now I have a LVM setup & haven't got a clue. I usually have 3 partitions - /, /home, /swap. This means I can access the home folders from LiveCD & reinstall just / partition if needed. I can see those partitions under LVM but from LiveCD all it sees is a 500mb drive (my drive is 240Gb.

Home is backed up with Deja Dup. How do I sort my drive so I can access as above? Not had time to get into Terminal commands or to understand the Gentoo / Sabayon way yet as being confident that it is set up right is my main priority.

Cheers

Uzi.
Uzi
Baby Hen
 
Posts: 9
Joined: Sat Oct 12, 2013 8:50
Location: Cebu, Philippines

Re: I cant see my HOME partition.

Postby Honeyman » Sat Oct 12, 2013 10:24

Hi Uzi,

the reason why you can't see your HOME-partition (I assume that you can't see the other partitions either) is that the Volume Group is not active. You can activate them by doing the following either as root or by using sudo:

Code: Select all
# vgchange -a y


or

Code: Select all
$ sudo vgchange -a y


The command sets all volume groups on active (-a for all, y for yes)

To see your logical volumes do:

Code: Select all
# lvdisplay


The output could look like this:

Code: Select all
# lvdisplay
  --- Logical volume ---
  LV Path                /dev/vg_sabayonparcel/lv_root
  LV Name                lv_root
  VG Name                vg_sabayonparcel
  LV UUID                NmfEzu-HZ2P-eZW7-VcGT-ZhdN-ig2v-cyE7Lk
  LV Write Access        read/write
  LV Creation host, time localhost, 2013-09-20 00:42:08 +0200
  LV Status              available
  # open                 1
  LV Size                38,28 GiB
  Current LE             1225
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:1
   
  --- Logical volume ---
  LV Path                /dev/vg_sabayonparcel/lv_swap
  LV Name                lv_swap
  VG Name                vg_sabayonparcel
  LV UUID                kYcvtt-7d8G-JNEZ-ANDi-02sO-EeKv-c1lsz4
  LV Write Access        read/write
  LV Creation host, time localhost, 2013-09-20 00:42:16 +0200
  LV Status              available
  # open                 2
  LV Size                3,53 GiB
  Current LE             113
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:2
   
  --- Logical volume ---
  LV Path                /dev/vg_sabayonparcel/lv_home
  LV Name                lv_home
  VG Name                vg_sabayonparcel
  LV UUID                O4eC3X-FhJw-e9Jz-isc1-u320-8qlO-HPWoyA
  LV Write Access        read/write
  LV Creation host, time localhost, 2013-09-20 00:42:18 +0200
  LV Status              available
  # open                 1
  LV Size                153,00 GiB
  Current LE             4896
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:3




To get more information about the volume group:

Code: Select all
# vgdisplay


To see whether there are any volume groups or (implicitly) logical volumes to be activated in the first place:

Code: Select all
# vgscan
# lvscan


Have a look in the man page to see more options in case need be:

Code: Select all
$ man vgchange


I hope this helps you somewhat
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: I cant see my HOME partition.

Postby Uzi » Sat Oct 12, 2013 11:38

Honeyman,

Thanks so much for the very clear reply. All seems to be ok by the readout:

    --- Logical volume ---
    LV Path /dev/vg_sabayon/lv_root
    LV Name lv_root
    VG Name vg_sabayon
    LV UUID W0LnxN-KSyC-5Ujf-B71I-CgjJ-we7f-O1HbJY
    LV Write Access read/write
    LV Creation host, time localhost, 2013-10-11 06:03:45 +0800
    LV Status available
    # open 1
    LV Size 50.00 GiB
    Current LE 1600
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 251:0

    --- Logical volume ---
    LV Path /dev/vg_sabayon/lv_home
    LV Name lv_home
    VG Name vg_sabayon
    LV UUID qS0sN6-LRKl-05LI-pbug-00xD-ABxl-YViy4v
    LV Write Access read/write
    LV Creation host, time localhost, 2013-10-11 06:03:48 +0800
    LV Status available
    # open 1
    LV Size 178.41 GiB
    Current LE 5709
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 251:1

    --- Logical volume ---
    LV Path /dev/vg_sabayon/lv_swap
    LV Name lv_swap
    VG Name vg_sabayon
    LV UUID zX1cQH-5u4q-TG24-Myrd-zZ8R-u6rO-Lk7wq8
    LV Write Access read/write
    LV Creation host, time localhost, 2013-10-11 06:03:52 +0800
    LV Status available
    # open 2
    LV Size 3.97 GiB
    Current LE 127
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 251:2


................... but I tried again using a Linux Lite LiveCD and still cannot see my home drive. It just shows the 500mb as a drive & lists the Sabayon but wont access it.

What am I doing wrong?

Uzi
Uzi
Baby Hen
 
Posts: 9
Joined: Sat Oct 12, 2013 8:50
Location: Cebu, Philippines

Re: I cant see my HOME partition.

Postby Uzi » Sat Oct 12, 2013 11:49

Update........tried using the Live version of Sabayon & same result, no access to anything other than the 500mb 'drive'

Uzi.


UPDATE 2 .... a member on the Linux Facebook group suggested that the drive needed mounting via Gparted when in LiveCD. Linux Lite said LVM not supported. Sabayon though worked :D

Not ideal but at least it worked if I needed to move files off in the event of a crash.

How would I reinstall Sabayon without formatting my HOME though?

Uzi.
Uzi
Baby Hen
 
Posts: 9
Joined: Sat Oct 12, 2013 8:50
Location: Cebu, Philippines

Re: I cant see my HOME partition.

Postby Honeyman » Sat Oct 12, 2013 14:02

Hi Uzi,

well unfortunately I forgot the part about mounting the drive, this is a necessary first step I hadn't thought about. Please forgive me 8)

There are two ways you can preserve your HOME-data.

1. Make a complete backup of your personal data in /home (see * below) [Which you should do in any case!], then do a fresh install, finally copy back all the files into the new HOME-partition, again making a 'just-in-case' backup of the newly created config-files in the new HOME-partition. Basically these are all the in directories beginning with a dot .

Under Linux files or directories with a dot at the beginning are hidden from the default view (like the ~ under Windows). So examples in your HOME-partition would be .kde (In case you have KDE applications installed), or .config. When using a graphical file manager like Nautilus or Dolphin you will probably have to activate the display of hidden file in the menu, when in a terminal the following when you want to be shown the contents of a directory like you /home folder (example from my computer):
Code: Select all
[email protected] ~ $ ls -al


The ~ right before the command prompt $ tells you that you are in your /home-directory. If unsure, use the pwd command (stand for present working directory if I remember correctly) which will tell you currenlty location in the file system.

The option -a of the ls command makes it show the hidden file, the option -l gives you extended information of the files and folders contained in the directory. Listings of directories begin with a lower-case d as the first letter of the permissions settings, for example:
Code: Select all
drwxr-xr-x 47 pascal pascal  4096 12. Okt 01:33 .config


BTW: I understood that you are quite new to Linux, that's why I try to explain the steps in detail. In case you already know this, just ignore it!


2. Again, make a complete backup of your personal data in /home. When at the partitioning stage of the installation process, reuse the old HOME-partition as the new HOME-partition of your new install and UNCHECK the box 'format the partition' in the dialogue asking you what you want to use the partition for, size, file system, etc.!!! I myself have never done this, so I can't tell whether this leaves your old configuration files intact. Consequently I strongly advise you to back up your data to an external drive before re-installing, better save than sorry. Besides, shit happens.

(*) side note: Tools for doing an automated backup of your /home are for example: luckybackup, bacula, backintime as GUI applications. There are others as well, in addition to command line tools like simply copying all files and directories recursively or doig a byte by byte copy via the dd command. I'm not going into this here.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: I cant see my HOME partition.

Postby Uzi » Sat Oct 12, 2013 14:23

Honeyman,

It is getting late here in Cebu & my old braincells have had enough for one day. I will go through your kind answer tomorrow & let you know how I got on.

Cheers

Uzi.
Uzi
Baby Hen
 
Posts: 9
Joined: Sat Oct 12, 2013 8:50
Location: Cebu, Philippines

Re: I cant see my HOME partition.

Postby Honeyman » Sat Oct 12, 2013 14:46

Have a good night then. It's never a good idea to tweak a Linux system when tired.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: I cant see my HOME partition.

Postby Uzi » Sun Oct 13, 2013 3:32

Along with this post, I was also asking on Facebook Linux group & got loads of info. Clearly I need to learn more about LVM but thanks to being pointed at Gnome Disks I got this

Image

Which clearly shows all my partions as they should be & home clearly there. By using Deja Dup to backup my Home partition it looks like all is ok with my Sabayon install.

Now I start learning Linux the Sabayon way :wink:
Uzi
Baby Hen
 
Posts: 9
Joined: Sat Oct 12, 2013 8:50
Location: Cebu, Philippines


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: joost and 3 guests

cron