View previous topic :: View next topic |
Author |
Message |
xaff n00b
Joined: 08 Jun 2018 Posts: 3
|
Posted: Fri Jun 08, 2018 4:59 pm Post subject: need un petit ls -als / |
|
|
Hello tout le monde
J'ai malencontreusement passé une commande en root (pas bien du tout) du genre "rsync /home/ /" et j'essaie de savoir a quoi devrait ressembler le "/" pour tenter de réparer.
Si quelqu'un aurait la gentillesse de me poster le résultat d'un ls -als / il me sauverait ma nuit et ce serait super.
merci |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Fri Jun 08, 2018 6:37 pm Post subject: |
|
|
xaff,
Welcome to Gentoo.
Please use English in the main forum. There is a French language subforum if you wish to write in French.
The command you executed will be in /root/.bash_history. Please post the command.
There should be no files in /. On my no multilib install your command returns
Code: | $ ls -als /
total 208
4 drwxr-xr-x 19 root root 4096 May 21 07:55 .
4 drwxr-xr-x 19 root root 4096 May 21 07:55 ..
4 drwxr-xr-x 2 root root 4096 Jun 3 19:11 bin
4 drwxr-xr-x 2 root root 4096 Dec 28 2014 boot
124 drwxr-xr-x 21 root root 126976 Jun 8 18:35 dev
4 drwxr-xr-x 100 root root 4096 Jun 3 20:54 etc
4 drwxr-xr-x 11 root root 4096 Feb 15 09:46 home
0 lrwxrwxrwx 1 root root 5 May 21 07:55 lib -> lib64
12 drwxr-xr-x 16 root root 12288 May 26 14:42 lib64
16 drwx------ 2 root root 16384 May 12 2013 lost+found
4 drwxr-xr-x 12 root root 4096 Feb 19 15:01 mnt
4 drwxr-xr-x 8 root root 4096 Mar 11 13:25 opt
0 dr-xr-xr-x 226 root root 0 Jun 8 18:34 proc
4 drwxr-xr-x 27 root root 4096 Jun 4 00:34 root
0 drwxr-xr-x 13 root root 460 Jun 8 18:35 run
12 drwxr-xr-x 2 root root 12288 Jun 3 16:35 sbin
0 dr-xr-xr-x 11 root root 0 Jun 8 18:35 sys
0 drwxrwxrwt 8 root root 220 Jun 8 19:32 tmp
4 drwxr-xr-x 42 root root 4096 May 28 15:19 usr
4 drwxr-xr-x 11 root root 4096 Jun 3 16:30 var |
OK, the symlink is a file. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xaff n00b
Joined: 08 Jun 2018 Posts: 3
|
Posted: Fri Jun 08, 2018 7:05 pm Post subject: |
|
|
Oops sorry ^^
I find out the problem : sudo and su didn't work anymore because the rsync change rights on "/".
So a simple chmod 0755 / made it work back
I miss the /run but it's a 2012 gentoo so I suppose it's normal but, to be sure can you add an df -h please ?
Thanks Neddy ! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Fri Jun 08, 2018 7:48 pm Post subject: |
|
|
xaff,
/run is dynamically created. It provides some writable space while root is still read only.
Its tmpfs.
That means that if its not there, you don't need it.
You won't like my df -h. Its not a typical Gentoo install.
Code: | $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/static-root 976M 466M 443M 52% /
/dev/mapper/static-usr 158G 109G 43G 73% /usr
/dev/dm-12 5.8G 1.7G 3.9G 31% /var
tmpfs 1.6G 188K 1.6G 1% /run
shm 7.9G 67M 7.8G 1% /dev/shm
cgroup_root 10M 0 10M 0% /sys/fs/cgroup
/dev/mapper/vg-home 1.5T 1.1T 356G 76% /home
/dev/shm 7.9G 12K 7.9G 1% /tmp
/dev/mapper/static-opt 976M 274M 636M 31% /opt
/dev/mapper/static-local 976M 6.6M 903M 1% /usr/local
/dev/mapper/static-portage 3.0G 310M 2.5G 11% /usr/portage
/dev/mapper/vg-local 148G 121G 21G 86% /usr/portage/distfiles
/dev/shm 7.9G 0 7.9G 0% /var/tmp/portage
/dev/mapper/vg-var 58G 21G 35G 38% /mnt/oldvar |
I have a static /dev and a few other oddities. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xaff n00b
Joined: 08 Jun 2018 Posts: 3
|
Posted: Fri Jun 08, 2018 7:57 pm Post subject: |
|
|
mine looks like strange with two /dev but I assume It's ok.
Code: |
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md/1 9.6G 4.2G 4.9G 47% /
devtmpfs 975M 188K 975M 1% /dev
udev 975M 188K 975M 1% /dev
/dev/md/2 452G 34G 396G 8% /home
shm 975M 0 975M 0% /dev/shm
|
So I consider It solved.
Thanks Again Neddy |
|
Back to top |
|
|
|