Need help expanding partition

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Sorry mean umount
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Still can’t log in.
Went back and ran lsblk /dev/sda5
No home is not under mountpoint
gm10

Re: Need help expanding partition

Post by gm10 »

HotTunaCartel wrote: Sat Sep 22, 2018 1:33 pm Still can’t log in.
Went back and ran lsblk /dev/sda5
No home is not under mountpoint
But are your user folders there?

Code: Select all

ls /home
If they aren't then you had successfully moved them... somewhere. So

Code: Select all

sudo mount /home
again and then

Code: Select all

ls /home
to see if they are there now.
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Sorry trying to find the best solution to reply to you.

When I put in ls /home it just goes to a new blank line.
OK now I see all the folders, so I should try to log back in now?
Edit:
Tried logging back in and no go still
Just reloads the login page
gm10 wrote: Sat Sep 22, 2018 1:38 pm
HotTunaCartel wrote: Sat Sep 22, 2018 1:33 pm Still can’t log in.
Went back and ran lsblk /dev/sda5
No home is not under mountpoint
But are your user folders there?

Code: Select all

ls /home
If they aren't then you had successfully moved them... somewhere. So

Code: Select all

sudo mount /home
again and then

Code: Select all

ls /home
to see if they are there now.
gm10

Re: Need help expanding partition

Post by gm10 »

HotTunaCartel wrote: Sat Sep 22, 2018 1:45 pm OK now I see all the folders, so I should try to log back in now?
I need to know after which step you see them so I know what went wrong exactly.

For the graphical login to work you might need to restart the graphical environment first:

Code: Select all

sudo service lightdm restart
Also don't reboot, we haven't made any permanent fixes yet, so it certainly won't work after a reboot.
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Ok I gotcha. After I did sudo

Code: Select all

umount /home
then typed in

Code: Select all

ls /home
I was able to see all the files.
Did

Code: Select all

sudo service lighten restart
And same thing with login

I need to know after which step you see them so I know what went wrong exactly.

For the graphical login to work you might need to restart the graphical environment first:

Code: Select all

sudo service lightdm restart
Also don't reboot, we haven't made any permanent fixes yet, so it certainly won't work after a reboot.
gm10

Re: Need help expanding partition

Post by gm10 »

HotTunaCartel wrote: Sat Sep 22, 2018 1:54 pm Ok I gotcha. After I did sudo

Code: Select all

umount /home
then typed in

Code: Select all

ls /home
I was able to see all the files.
Ok. So that means you never actually moved the files to the other disk. You either forgot or it produced some error that you ignored, not sure.

What's your priority right now, shall we go back to the way things were or shall we try to move the files again?
HotTunaCartel wrote: Sat Sep 22, 2018 1:54 pm Did

Code: Select all

sudo service lighten restart
And same thing with login
Just in case you mistyped that command not just here: it's lightdm. You may have to log out of the terminal session and its temporary home folder first btw., not sure, I never broke my system like that. :D
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Oh I just mistyped it. Pain in the ass with big thumbs and small phone lol.
For now I’m fine with going back at least I can use it for now then figure out what I did wrong after.
gm10

Re: Need help expanding partition

Post by gm10 »

HotTunaCartel wrote: Sat Sep 22, 2018 2:11 pm For now I’m fine with going back at least I can use it for now then figure out what I did wrong after.
Thought so. Run

Code: Select all

sudo nano /etc/fstab
and add a # in front of the last line so it looks like this:

Code: Select all

#UUID=845b3a87-013f-402b-9460-d3198ed62604	/home	ext4	defaults	0	2
Then Ctrl+S to save and Ctrl+X to exit. After a reboot you can hopefully log in normally.
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Damn, still can’t log in.
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Alright so I’m going through what we discussed. Seems now a lot more info is coming up than prior.
lsblk /dev/sda 5
is now coming up as lsblk :5 not a block device. /home is no longer under mountpoint. I’d i do

Code: Select all

sudo mount /home
I get mount: /home: can’t find in /etc/fstab
gm10

Re: Need help expanding partition

Post by gm10 »

HotTunaCartel wrote: Sat Sep 22, 2018 2:29 pm Damn, still can’t log in.
Not even in the terminal? Next to impossible. Does

Code: Select all

ls -l /home 
still show the user folders with the correct owners and is the one for the profile you're trying to log in to included?

Also we removed /home from fstab so that's expected, and the sda 5 thing is a typo you made, you added a space.
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

I can get into control alt F1 but I think that’s all I can do

Code: Select all

ls -l /home
Total 0
gm10

Re: Need help expanding partition

Post by gm10 »

HotTunaCartel wrote: Sat Sep 22, 2018 3:07 pm I can get into control alt F1 but I think that’s all I can do

Code: Select all

ls -l /home
Total 0
So it's empty again? You must have given me bad information previously, seems the files are on the other disk, after all. You have no idea how much I'd like to just get a remote login to your system and quickly fix this,.. :P

Ok, temporary solution to get you graphical again:

Code: Select all

sudo mkdir /home/$USER
sudo chown $USER:$USER /home/$USER
There's no way that won't be able to log in after that, but it will be with a fresh profile. Your other profile should be on /dev/sda5 (which is not currently mounted). Frankly it might be faster to just restore your backup than us going back and forth with all this miscommunication/mistyping in between.
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Lol I’m sorry. Just having a lot of trouble doing this on my phone.
Ok that method got me logged in.
I hate to keep asking easy stuff for you but. How do I get my backups
gm10

Re: Need help expanding partition

Post by gm10 »

HotTunaCartel wrote: Sat Sep 22, 2018 3:39 pm I hate to keep asking easy stuff for you but. How do I get my backups
I take that question to mean that you didn't actually back up anything. These things don't happen automatically.

Anyway, let's mount your other drive somewhere:

Code: Select all

sudo mkdir -p /mnt/newhome

Code: Select all

sudo mount /dev/sda5 /mnt/newhome
and then you can just go check what's there:

Code: Select all

nemo /mnt/newhome
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

I thought the system restore was the backups? My last snapshot was last night at 11PM
Nemo-Share-Message: 15:53:19.842: Called "net usershare info" but it failed: 'net usershare' returned error 255: mkdir failed on directory /var/run/samba/msg.lock: Permission denied
net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.
Checked the newhome folder. Seems to be from 2017.
As long as I have internet and can get some stuff done for now. Take a break, didn't think I would rainbows up this bad lol.
gm10 wrote: Sat Sep 22, 2018 3:49 pm
HotTunaCartel wrote: Sat Sep 22, 2018 3:39 pm I hate to keep asking easy stuff for you but. How do I get my backups
I take that question to mean that you didn't actually back up anything. These things don't happen automatically.

Anyway, let's mount your other drive somewhere:

Code: Select all

sudo mkdir -p /mnt/newhome

Code: Select all

sudo mount /dev/sda5 /mnt/newhome
and then you can just go check what's there:

Code: Select all

nemo /mnt/newhome
gm10

Re: Need help expanding partition

Post by gm10 »

HotTunaCartel wrote: Sat Sep 22, 2018 4:00 pm I thought the system restore was the backups? My last snapshot was last night at 11PM
If that is timeshift then no, that doesn't include any user data by default.
HotTunaCartel wrote: Sat Sep 22, 2018 4:00 pm Checked the newhome folder. Seems to be from 2017.
As long as I have internet and can get some stuff done for now. Take a break, didn't think I would rainbows up this bad lol.
Oh, me neither, this should have been trivial. The instructions I gave you were sound, I don't know where it went wrong. I think you'll just have to search your file systems for where your profile folder went. It should be somewhere after all:

Code: Select all

sudo find / -type d -name $USER
Good luck. ;)
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

Thank you for your help.
HotTunaCartel

Re: Need help expanding partition

Post by HotTunaCartel »

I ended up not being able to find the /home but its ok, I didn't loose much and most was saved to my dropbox and google photos so no harm done. I did end up formatting both of those partitions and made them into one 160 gig where i just finished installing mint 19 mate which I am enjoying more than cinnamon, less flavour which is nice.
I do have to see if I can backup to a ssd from now on lol.
Thanks again for all the help.
Locked

Return to “Installation & Boot”