LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2020, 05:41 PM   #46
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589

I don’t see anything that stands out in your grub.cfg. What happens when you boot the last menuentry under advance options.
You may have to re-create the initramfs
 
Old 09-26-2020, 02:12 AM   #47
Arch4GoodieLike
Member
 
Registered: Sep 2020
Location: Cave
Distribution: Arch Linux
Posts: 143

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
I don’t see anything that stands out in your grub.cfg. What happens when you boot the last menuentry under advance options.
You may have to re-create the initramfs
OMG i was just checking my backup device and the content of folder "oldandstabile" just to realize that the subfolder called /home was empty! this must have been why!

this here is 1 week old backup and intact https://ibb.co/JjNs7J2

i guess i do this?:
Code:
fdisk -l
# make directory for /mnt/sdb3
mkdir /mnt/sdb3

# create mountpoint for /dev/sdb3 /mnt/sdb3
mount /dev/sda1 /mnt/sdb3

# make directory for /mnt/sdc
mkdir /mnt/sdc

#make encrypted disk accessable
cryptsetup luksOpen /dev/sdc ArchBackup

# create mountpoint for /dev/mapper/ArchBackup /mnt/sdc
mount /dev/mapper/ArchBackup /mnt/sdc

# copy paste backup of home to sda1 and replace /home in destination
cp -ax /mnt/sdc/myusername /mnt/sdb3/home/
is that about right?

Last edited by Arch4GoodieLike; 09-26-2020 at 02:56 AM.
 
Old 09-26-2020, 05:57 AM   #48
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
with /home empty, if you attempt to log in with a username, it will return back to the login prompt. Are you able to log in as root?

Last edited by colorpurple21859; 09-26-2020 at 06:00 AM.
 
Old 09-26-2020, 06:01 AM   #49
Arch4GoodieLike
Member
 
Registered: Sep 2020
Location: Cave
Distribution: Arch Linux
Posts: 143

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
with /home empty, if you attempt to log in with a username, it will return back to the login prompt. Are you able to log in as root?
how could i test that?
 
Old 09-26-2020, 06:06 AM   #50
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
after you hit enter at the grub menu, for your installed system take a picture of where it stops at.
 
Old 09-26-2020, 06:13 AM   #51
Arch4GoodieLike
Member
 
Registered: Sep 2020
Location: Cave
Distribution: Arch Linux
Posts: 143

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
after you hit enter at the grub menu, for your installed system take a picture of where it stops at.
not sure if i can follow you what you mean but
pic1:
https://ibb.co/cg18NZ2

then after entering my pw i get pic2
pic 2
https://ibb.co/7rQKy0H

after 1 sec i get pic1 again
 
Old 09-26-2020, 06:19 AM   #52
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
yes, if your missing your user folder in /home you won't be able to login. You need to copy user folder to /home if you have a backup of it.

Last edited by colorpurple21859; 09-26-2020 at 06:23 AM.
 
Old 09-26-2020, 06:22 AM   #53
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
to login as root, there should be a way to change username to root at login screen, but not sure if arch will allow you to login as root in DE
 
Old 09-26-2020, 06:26 AM   #54
Arch4GoodieLike
Member
 
Registered: Sep 2020
Location: Cave
Distribution: Arch Linux
Posts: 143

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
yes, if your missing your user folder in /home you won't be able to login. You need to copy user folder to /home if you have a backup of it.
means this will do it?
Code:
fdisk -l
# make directory for /mnt/sdb3
mkdir /mnt/sdb3

# create mountpoint for /dev/sdb3 /mnt/sdb3
mount /dev/sda1 /mnt/sdb3

# make directory for /mnt/sdc
mkdir /mnt/sdc

#make encrypted disk accessable
cryptsetup luksOpen /dev/sdc ArchBackup

# create mountpoint for /dev/mapper/ArchBackup /mnt/sdc
mount /dev/mapper/ArchBackup /mnt/sdc

# copy paste backup of home to sda1 and replace /home in destination
cp -ax /mnt/sdc/myusername /mnt/sdb3/home/
 
Old 09-26-2020, 06:39 AM   #55
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
nevermind

Last edited by colorpurple21859; 09-26-2020 at 06:41 AM.
 
Old 09-26-2020, 06:43 AM   #56
Arch4GoodieLike
Member
 
Registered: Sep 2020
Location: Cave
Distribution: Arch Linux
Posts: 143

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
nevermind
am i right?
 
Old 09-26-2020, 06:46 AM   #57
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
I think so, that is what I would do.
 
Old 09-26-2020, 07:12 AM   #58
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I would fallback to tty, delete and recreate user (to avoid any further problems !) with it's attributes including home folder. Then login and copy.

Last edited by Tonus; 09-26-2020 at 07:21 AM. Reason: typo
 
Old 09-26-2020, 08:02 AM   #59
Arch4GoodieLike
Member
 
Registered: Sep 2020
Location: Cave
Distribution: Arch Linux
Posts: 143

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
I think so, that is what I would do.
i did this
Code:
fdisk -l
# make directory for /mnt/sda3
mkdir /mnt/sda3

# create mountpoint for /dev/sda3 /mnt/sda3
mount /dev/sda3 /mnt/sda3

# make directory for /mnt/sdc
mkdir /mnt/sdc

#make encrypted disk accessable
cryptsetup luksOpen /dev/sdc ArchBackup

# create mountpoint for /dev/mapper/ArchBackup /mnt/sdc
mount /dev/mapper/ArchBackup /mnt/sdc

# copy paste backup of home to sda1 and replace /home in destination
cp -ax /mnt/sdc /mnt/sda3/home/
and nothing changed for me. i still get thrown back to DE-Login after 1 sec
 
Old 09-26-2020, 08:44 AM   #60
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Either go with what tonus says or try the chown command make sure user is owner of the user folder and sub files

Last edited by colorpurple21859; 09-26-2020 at 08:53 AM.
 
  


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
Remote Backup script needed | backup every 1-2 seconds (Online/Hot backup) reda Linux - Newbie 4 04-20-2019 05:02 PM
Replacing BIOS jmh72 Linux - Laptop and Netbook 10 04-07-2018 05:59 PM
[SOLVED] Backup, shrink backup and modify MBR of backup jps1x2 Linux - General 1 12-17-2013 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 AM.

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