You are not logged in.
Pages: 1
hello,
please help, my /home/myuser disappeared out of nothing and i can't work, what can i do?
fdisk -l
Disco /dev/sda: 1,8 TiB, 2000398934016 bytes, 3907029168 setores
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 4096 bytes
Tamanho E/S (mínimo/ótimo): 4096 bytes / 4096 bytes
Tipo de rótulo do disco: dos
Identificador do disco: 0x000c7dd2
Dispositivo Inicializar Início Fim Setores Tamanho Id Tipo
/dev/sda1 * 2048 39064547 39062500 18,6G 83 Linux
/dev/sda2 39064548 47064547 8000000 3,8G 83 Linux
/dev/sda3 47064548 3907024064 3859959517 1,8T 83 Linux
**A partição 2 não inicia em um limite de setor físico.**
**A partição 3 não inicia em um limite de setor físico.**
the last two lines say that partitions 2 and 3 don't initiate at a physical sector. (or something like that)
fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
#
UUID=07b286f3-bd04-49b8-b5b5-58b6778ec59e / ext4 defaults,rw,relatime,data=ordered 0 1
UUID=ec42468d-b2bc-4454-a8f0-2743e1e40e11 /home ext4 defaults,rw,relatime,data=ordered 0 0
UUID=ab134239-54a5-4a1d-bdcd-1ac1cbfd1763 swap swap defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
mount
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=8184920k,nr_inodes=2046230,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,noatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda3 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/120 type tmpfs (rw,nosuid,nodev,relatime,size=1638108k,mode=700,uid=120,gid=120)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1638108k,mode=700,uid=1000,gid=100)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
thanks!
Last edited by ~osc~ (2016-05-24 20:49:30)
Offline
another detail is that i installed kdenlive-git and mlt-git via yaourt...
Offline
Firstly, please remove the superfluous cry for help from your topic title: https://wiki.archlinux.org/index.php/Fo … ow_to_post
Secondly, what were you doing when this occurred?
Thirdly, you have given your home partition a 0 for it's fs_passno, is there a reason for this? It means that the partition won't be fscked at boot (unless systemd does it anyway). Post the output of 'tune2fs -l /dev/disk/by-uuid/ec42468d-b2bc-4454-a8f0-2743e1e40e11'.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Firstly, please remove the superfluous cry for help from your topic title: https://wiki.archlinux.org/index.php/Fo … ow_to_post
Secondly, what were you doing when this occurred?
Thirdly, you have given your home partition a 0 for it's fs_passno, is there a reason for this? It means that the partition won't be fscked at boot (unless systemd does it anyway). Post the output of 'tune2fs -l /dev/disk/by-uuid/ec42468d-b2bc-4454-a8f0-2743e1e40e11'.
sorry about the scream for help
i had just finished installing kdenlive-git and mlt-git via yaourt and then ran kdenlive... it kind of freezes and the background of gnome turns black. i notice something wierd happening and restart and then well my content is gone.
tune2fs 1.42.13 (17-May-2015)
Filesystem volume name: <none>
Last mounted on: /home
Filesystem UUID: ec42468d-b2bc-4454-a8f0-2743e1e40e11
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 120627200
Block count: 482494939
Reserved block count: 4824949
Free blocks: 428937774
Free inodes: 120531464
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 908
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Sun Mar 9 20:38:04 2014
Last mount time: Tue May 24 17:04:50 2016
Last write time: Tue May 24 17:04:50 2016
Mount count: 1154
Maximum mount count: -1
Last checked: Sun Mar 9 20:38:04 2014
Check interval: 0 (<none>)
Lifetime writes: 3624 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
First orphan inode: 76153509
Default directory hash: half_md4
Directory Hash Seed: 488fe138-d8d6-43ad-84d2-4eee5ab8e37d
Journal backup: inode blocks
thanks a lot for the help.
Last edited by ~osc~ (2016-05-24 20:59:39)
Offline
Yeah, that filesystem hasn't been checked in over two years.. Unmount it, and run fsck -p on it. If you get prompts, read what they say and check what they mean if you're not sure before answering them.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Yeah, that filesystem hasn't been checked in over two years.. Unmount it, and run fsck -p on it. If you get prompts, read what they say and check what they mean if you're not sure before answering them.
i logged out and as root ran fsck -p /dev/sda3 it didn't give any prompts just printed a series of numbers.
Offline
I have posted this issue over at reddit as well and they said to try to repartition, but i am not sure how to go about it.
i tried mounting
sudo mount /dev/sda3 /mnt/
but the files aren't there.
any other tip?
thanks!
Offline
do as you have been told within the reddit thread? they told you everything you should be doing.
Offline
do as you have been told within the reddit thread? they told you everything you should be doing.
the most concrete thing i got was
reinitialize the partitions with the exact same sizes as before (basically you re-partition, but don't run the mkfs-part), but you need to know the correct start and end sectors. It's possible that you can recreate it by just giving it the correct order and sizes of the disk, but reinitializing it with the exact sectors is the safer way.
but honestly i didn't understand how to do this. i would appreciate some light into this.
Offline
WorMzy wrote:Yeah, that filesystem hasn't been checked in over two years.. Unmount it, and run fsck -p on it. If you get prompts, read what they say and check what they mean if you're not sure before answering them.
i logged out and as root ran fsck -p /dev/sda3 it didn't give any prompts just printed a series of numbers.
Ah, of course it did, I just noticed that max mounts is set to -1, so it will never be fsck'd anyway. You will need to use pass the -f flag to force fsck to check it.
EDIT: If you do recover your files, I recommend setting max-mount-counts to something. See tune2fs' man page for details.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Ah, of course it did, I just noticed that max mounts is set to -1, so it will never be fsck'd anyway. You will need to use pass the -f flag to force fsck to check it.
EDIT: If you do recover your files, I recommend setting max-mount-counts to something. See tune2fs' man page for details.
i got this passing the -f flag:
fsck de util-linux 2.28
/dev/sda3: 98602/120627200 files (1.7% non-contiguous), 53581720/482494939 blocks
does it help with anything? how can this info help me recover the files?
i see the tune2fs man and should i set it to maybe 1?
thanks!
Offline
Well, my thinking was that the directory disappearing was caused by filesystem damage, and fsck would find and repair this damage, and the directory would reappear (or at least be recovered to lost+found). Since this hasn't happened, we can assume that the filesystem is fine, and the directory disappeared due to some other reason. At this point I would suspect user error, a poorly/maliciously written PKGBUILD, or buggy programming in a program you were running. This commit happened in kdenlive two days ago, and there is a comment on the kdenlive-git AUR package page claiming they lost their home directory too.
Restore from your backup, or if you don't have a backup, you can try recovering your data using e.g. extundelete or photorec.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Well, my thinking was that the directory disappearing was caused by filesystem damage, and fsck would find and repair this damage, and the directory would reappear (or at least be recovered to lost+found). Since this hasn't happened, we can assume that the filesystem is fine, and the directory disappeared due to some other reason. At this point I would suspect user error, a poorly/maliciously written PKGBUILD, or buggy programming in a program you were running. This commit happened in kdenlive two days ago, and there is a comment on the kdenlive-git AUR package page claiming they lost their home directory too.
Restore from your backup, or if you don't have a backup, you can try recovering your data using e.g. extundelete or photorec.
Thanks a lot for the help, i will recover my data now. Gonna try to find a windows laptop and try to use Recuva since Photorec doesn't maintain the file structure and name. Does extundelete really work? I saw that it was last updated in 2007.
Cheers
Offline
I'm afraid that I don't know -- I've never needed to use it, and I mostly use btrfs and xfs on my systems.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Pages: 1