You are not logged in.
WTHIWIG - What the hell is what I get // or what I've done ;]
On my fresh 1 day old installation I've got such strange behavior:
Last login: Sun Apr 1 02:47:27 2012 from 10.42.0.1
Could not chdir to home directory /home/user: No such file or directory
/usr/bin/xauth: error in locking authority file /home/user/.Xauthority
[user@user-linux-pc /]$ df
System plików 1K-bl użyte dostępne %uż. zamont. na
rootfs 20906032 2657356 17200156 14% /
/dev 1024164 0 1024164 0% /dev
run 1027200 256 1026944 1% /run
/dev/sda9 20906032 2657356 17200156 14% /
shm 1027200 0 1027200 0% /dev/shm
tmpfs 20906032 2657356 17200156 14% /tmp
/dev/sda8 20906032 2657356 17200156 14% /home
/dev/sda3 20906032 2657356 17200156 14% /boot
[user@user-linux-pc /]$ mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev on /dev type devtmpfs (rw,nosuid,relatime,size=2021740k,nr_inodes=505435,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda9 on / type ext4 (rw)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/dev/sda8 on /home type ext3 (rw)
/dev/sda3 on /boot type ext3 (rw)
[user@user-linux-pc /]$ ls /boot/
[user@user-linux-pc /]$ ls /home/
[user@user-linux-pc /]$ sudo parted -l
Hasło:
Model: ATA SAMSUNG SP2504C (scsi)
Dysk /dev/sda: 250GB
Rozmiar sektora (logiczny/fizyczny): 512B/512B
Tablica partycji: msdos
Flagi dysku:
Numer Początek Koniec Rozmiar Typ System plików Flaga
1 1049kB 10,7GB 10,7GB primary ntfs ładowalna
2 10,7GB 250GB 239GB extended
12 10,7GB 47,4GB 36,7GB logical ntfs
5 47,4GB 64,4GB 17,0GB logical ntfs
6 64,4GB 118GB 53,7GB logical ntfs
7 118GB 127GB 8918MB logical ntfs
13 127GB 209GB 81,7GB logical ext3
8 209GB 226GB 17,2GB logical ext3
9 226GB 247GB 21,5GB logical ext4
10 247GB 250GB 2150MB logical linux-swap(v1)
11 250GB 250GB 210MB logical fat32
3 250GB 250GB 315MB primary ext3
[user@user-linux-pc /]$ cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
LABEL=user-boot /boot ext3 defaults 1 2
#LABEL=user-linux / ext4 defaults 1 1
/dev/sda9 / ext4 defaults 1 1
/dev/sda8 /home ext3 defaults 1 2
LABEL=user-swap swap swap defaults 0 0
I'm suspecting the cause of that could be update of "filesystem" where "mtab" where with conflict during updating.
As far as I remember I cleaned up it or even removed (probably the stupidest thing I've made for some time ;]). Several restarts later I noticed problems with /home/userDIR.
In the way of trying to repair that I've copied (especially /proc, /sys etc. mount points) and changed "mtab" from my second Arch installation but nothing helps.
I can manually mount /home, /boot and then they appears
Last edited by travnick (2012-04-03 12:25:39)
Offline
It seems a little suspicious that /, /tmp, /boot and /home are all *exactly* the same size and have *exactly* the same ratio of used to available bytes? Or do you expect that?
Do you have dump installed?
As far as I know /proc /sys etc. are recreated on reboot so you shouldn't need to copy them. mtab should be a symlink. Is it? If so, where does it point?
When you say you can manually mount them, how exactly? Does e.g. just mount /home work? Or do you have to use another command?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
That's right, something is wrong with size of mountpoints, because / /home /boot have different size.
mtab is not a symlink (because I deleted it so it was recreated as a file not a symlink.
As I saw on working machine it should be:
/etc/mtab -> /proc/self/mounts
After deleting mtab and symlinking it properly everything woks fine ;]
Thanks for help
Offline