LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-24-2017, 04:23 PM   #1
eltech-yqr
LQ Newbie
 
Registered: Oct 2005
Location: Regina
Distribution: mandrake
Posts: 5

Rep: Reputation: 1
recovering home directory - hardware change


Okay I did not back anything up recently.
Today the CPU AMD A6-3420 blew up in my laptop
The data I want to recover is on my SSD in the unit running Zorin 9 LTS 3.13.0-135 generic kernel ( updated to this kernel on wednesday.
I will use an old intel desktop I have spare and probably load a newer version of Zorin on it .
What is the easiest way to get my home directory data into the new system?

Thanks in advance
 
Old 11-24-2017, 07:19 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Never used Zorin, but data is data. If you create the same user on the new system (and it gets the same uid/guid), simply mount the SSD partition at /home. Easy.
If not you may need to chown it (recursively).

If all that doesn't work, simpy cp/rsync it over. My sigline of course applies. - ignore that, the SSD is your backup now.

Last edited by syg00; 11-24-2017 at 07:21 PM.
 
Old 12-16-2017, 06:36 PM   #3
eltech-yqr
LQ Newbie
 
Registered: Oct 2005
Location: Regina
Distribution: mandrake
Posts: 5

Original Poster
Rep: Reputation: 1
more investigation>
now have another machine running Zorin 12 running the following:
Linux workstation1 4.10.0-33-generic #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

My old zorin 9 set up was a LVM so
lvmdiskscan displays the following info:
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
/dev/sda1 [ 70.56 GiB]
/dev/sda5 [ 3.96 GiB]
/dev/sdb1 [ 243.00 MiB]
/dev/sdb5 [ 223.33 GiB] LVM physical volume
/dev/sde1 [ 14.83 GiB]
0 disks
4 partitions
0 LVM physical volume whole disks
1 LVM physical volume

I know I have a lvm of 233G which is sdb1 the original boot and sbd5 with all my data

so how do I recreate a volume group and mount the unit to access data? the original group appears to be zorin-os-vg ( gparted)
vgcreate and vgextend have given me errors
/run has a directory lvm but I am denied permission when I try to cd into. I
 
Old 12-21-2017, 09:00 AM   #4
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
so how do I recreate a volume group and mount the unit to access data? the original group appears to be zorin-os-vg ( gparted)
vgcreate and vgextend have given me errors
/run has a directory lvm but I am denied permission when I try to cd into. I
why not mount it as user root?
Usually you should see that volume group and logical volume in /dev/mapper.
if not activate it with the lvm2 tools
than mount it.
also recreate the user with the same userid, group name, group id and such.

I suppose you are using the superuser right? an ordinary user can hardly do anything in linux => quote: I am denied permission

Quote:
If all that doesn't work, simpy cp/rsync it over. My sigline of course applies. - ignore that, the SSD is your backup now.
cp -avr

Last edited by _roman_; 12-21-2017 at 09:02 AM.
 
Old 12-21-2017, 10:39 AM   #5
eltech-yqr
LQ Newbie
 
Registered: Oct 2005
Location: Regina
Distribution: mandrake
Posts: 5

Original Poster
Rep: Reputation: 1
Smile solved

The help was absolutely great
I did the following to solve
1. reread the lvm2 man pages
ran pvdisplay >> ssd_drv
ran vgdisplay >> ssd_vgd
now had data on the id
2. found and loaded gui for LVM which let me see the drive and partitions
used it to set a mount point for reboot but I must have mad an error after reboot I had a 255MB volume with grub and all the kernels available on that drive, but not any data

3. found a utility in Zorin 12 called Disks and used it to mount the drive and access the data ( it is a 236GB volume )

I love LINUX
 
Old 12-28-2017, 02:42 PM   #6
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
vgscan — scan all disks for volume groups and rebuild caches
you may ahve also looked than in /dev/mapper directory
 
Old 12-28-2017, 03:59 PM   #7
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
eltech-yqr,

I am pleased that you have successfully recovered your data.

Quote:
Okay I did not back anything up recently.
Just remember that if you repeat that mistake and have no backup for your data in the future, you run the risk of recovering nothing at all from a failed SSD.

It is easy to reinstall a Linux system on a new drive but if your data is not copied elsewhere and you run an SSD, failure at some point is inevitable.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
su:warning: cannot change directory to home/orausr: No such file or directory cdhar Linux - Newbie 4 09-11-2012 06:17 AM
[SOLVED] How do I change change the home directory to be owned by me and not root? Slackware theif519 Linux - Newbie 4 06-24-2011 12:21 PM
[SOLVED] How can i change my HOME (/home/user) directory location to something else? QueenZ Linux - Newbie 6 08-05-2010 06:26 AM
change samba home directory willy_gn Linux - Newbie 5 06-04-2010 03:46 PM
Change HOME directory? bhuwan Linux - Newbie 7 01-30-2006 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration