lost my folders

General support questions
Post Reply
tcpip
Posts: 4
Joined: 2017/10/17 12:52:54

lost my folders

Post by tcpip » 2018/01/11 14:35:48

HI all,

I have my centos server and was getting this error "cd rpm-bash: cannot create temp file for here-document: No space left on device"
after I rebooted the server, i lost the folders inside the /home directory.


Any ideas?

Thanks in advance.

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: lost my folders

Post by tunk » 2018/01/11 16:11:15

If you have a separate /home partition then it may not be mounted.
Can you post the output from these two commands (the second run as root):
df
fdisk -l

tcpip
Posts: 4
Joined: 2017/10/17 12:52:54

Re: lost my folders

Post by tcpip » 2018/01/11 16:25:39

Hello

Here is the output

df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/centos-root 52403200 52403180 20 100% /
devtmpfs 131918020 0 131918020 0% /dev
tmpfs 131929096 0 131929096 0% /dev/shm
tmpfs 131929096 9456 131919640 1% /run
tmpfs 131929096 0 131929096 0% /sys/fs/cgroup
/dev/mapper/centos-home 918636284 32944 918603340 1% /home
/dev/sda1 1038336 198748 839588 20% /boot
tmpfs 26385820 0 26385820 0% /run/user/0
[root@localhost ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00013801

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 1953523711 975712256 8e Linux LVM

Disk /dev/mapper/centos-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-swap: 4294 MB, 4294967296 bytes, 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-home: 941.1 GB, 941143097344 bytes, 1838170112 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: lost my folders

Post by TrevorH » 2018/01/11 16:29:30

So your root partition is still 100% full and you do have a separate /home partition and it is mounted. Did you accidentally create the file under /home when the /home filesystem was not mounted? In which case they are there but hidden by the existing /home mount - umount it and see if the files exist under /home then. If they do, move them somewhere else then remount /home and copy them back.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tcpip
Posts: 4
Joined: 2017/10/17 12:52:54

Re: lost my folders

Post by tcpip » 2018/01/11 16:50:08

Hello TrevorH,

I did not create and other file/folder , so please let me understand this, I will have to do an unmount /home and see if with that I can find the missing folders?

Thanks in advance.

Post Reply