Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/home not mounted [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 215

PostPosted: Wed May 17, 2017 7:43 pm    Post subject: /home not mounted [SOLVED] Reply with quote

Just kind of finished a gentoo install with xfce4 and lightdm.

During setup i stated /home to mount to another SSD and created filesystem and mkdir according to handbook.

But, i created a user, and it mounts /home to my /

Fstab

Code:
                         

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

#LABEL=boot             /boot           vfat            noauto,noatime  1 2
#UUID=58e72203-57d1-4497-81ad-97655bd56494              /               ext4            noatime         0 1
#LABEL=swap             none            swap            sw              0 0
#LABEL=home             /home           ext4            noatime         0 2
#/dev/cdrom             /mnt/cdrom   auto            noauto,ro   0 0


mount:
Code:
 ~ $ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=8234541,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p3 on / type ext4 (rw,relatime,data=ordered)
tmpfs on /run type tmpfs (rw,nodev,relatime,size=6588040k,mode=755)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
none on /run/user/1000 type tmpfs (rw,relatime,mode=700,uid=1000)


lsblk

Code:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb           8:16   0   1.9T  0 disk
└─sdb1        8:17   0   1.5T  0 part
sda           8:0    0 953.9G  0 disk
├─sda2        8:2    0    32G  0 part
├─sda3        8:3    0   700G  0 part
└─sda1        8:1    0   512M  0 part
nvme0n1     259:0    0 953.9G  0 disk
├─nvme0n1p3 259:3    0   200G  0 part /
├─nvme0n1p1 259:1    0   512M  0 part
└─nvme0n1p2 259:2    0    32G  0 part


Should i change my fstab to point /home to /dev/sdb1 instead of LABEL=?


Last edited by tuggbuss on Fri May 19, 2017 5:42 am; edited 2 times in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10263
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed May 17, 2017 7:48 pm    Post subject: Reply with quote

All those lines in your fstab are commented out and thus have no effect. The "#" at the front of each line is what makes it into a comment.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 215

PostPosted: Wed May 17, 2017 7:57 pm    Post subject: Reply with quote

John R. Graham wrote:
All those lines in your fstab are commented out and thus have no effect. The "#" at the front of each line is what makes it into a comment.

- John


Thanks. I realized that, uncommenting the lines but now i have a read only filesystem.
Can't edit fstab or anything. Tried mount -o rw,remount / but it can't find UUID, message?
I'm a bit confused. How can a system boot without a fstab?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10263
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed May 17, 2017 8:13 pm    Post subject: Reply with quote

Reboot into your install media, mount your root partition, just like it's described in the Handbook. Then you can edit your fstab at /mnt/gentoo/etc/fstab to correct it. Verify the UUID with the blkid command and correct it or else switch to /dev/xxxxx notation; your choice.

The grub-mkconfig program identifies the root partition and sets up the grub configuration to pass that to the kernel as a parameter. That's how you were sort of working before.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 215

PostPosted: Wed May 17, 2017 8:19 pm    Post subject: Reply with quote

John R. Graham wrote:
Reboot into your install media, mount your root partition, just like it's described in the Handbook. Then you can edit your fstab at /mnt/gentoo/etc/fstab to correct it. Verify the UUID with the blkid command and correct it or else switch to /dev/xxxxx notation; your choice.

The grub-mkconfig program identifies the root partition and sets up the grub configuration to pass that to the kernel as a parameter. That's how you were sort of working before.

- John


Thank you. Seems legit. I'll try this tomorrow, it's evning here in Sweden. I'll be back tomorrow with an update how it went.
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 215

PostPosted: Thu May 18, 2017 3:33 pm    Post subject: Reply with quote

Worked. But now i cant logon to xfce with my old user. I created a new user that sucessfully logged in to xfce. How can i fix the old user to work?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7094
Location: Saint Amant, Acadiana

PostPosted: Thu May 18, 2017 3:46 pm    Post subject: Reply with quote

tuggbuss wrote:
Worked. But now i cant logon to xfce with my old user. I created a new user that sucessfully logged in to xfce. How can i fix the old user to work?

Generally, to fix a computer issue you look at errors, examine logs and take appropriate action.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 215

PostPosted: Thu May 18, 2017 4:16 pm    Post subject: Reply with quote

Jaglover wrote:
tuggbuss wrote:
Worked. But now i cant logon to xfce with my old user. I created a new user that sucessfully logged in to xfce. How can i fix the old user to work?

Generally, to fix a computer issue you look at errors, examine logs and take appropriate action.


I get no errors. Lightdm starts, i choose one of the user accounts, and black screen for a second, and then it returns to lightdm.

CTRL ALT F2 to console, logged in as root, created a new user rebooted, logged in successfully.

No errors what so ever.
So...

nvm it works just fine with my new user account. /home wasn't mounted creating my first user, so, maybe easy to fix, but i don't mind, nothing important set up per user yet.

Thanks anyway.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Thu May 18, 2017 4:29 pm    Post subject: Reply with quote

tuggbuss,

Your first users /home/username, if it was ever created with root being read only, will be in the /home that's now buried under the /home partition so /home/<olduser> won't exist.
Lots of things won't like a missing /home/<user> as that where per user settings are stored.

Log out all normal users. Log in as root. Its very important that no normal users are logged in for this.
Unmount /home
Does
Code:
ls /home
show your old user?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum