Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: How to recover data from home partition

  1. #1

    Default How to recover data from home partition

    Hi,

    I was running Leap 42.2 on my computer and due to certain hardware replacements, I decided to do a fresh install after recovering data. My hard disk is intact and it had a root and home partition (as well as others that the suse installed generates by default). I have installed a temporary linux distro in the root partition and I am trying to use it to recover the data in the home partition. However I am unable to mount it. It is in xfs format.

    I tried
    sudo mount -t xfs /dev/NAME /mnt
    but got the error
    mount: /mnt: mount(2) system call failed: No data available.

    Thanks for your help.

  2. #2

    Default Re: How to recover data from home partition

    Output of sudo fdisk -l

    Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 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
    Disklabel type: gpt
    Disk identifier: ED1B765D-92CE-4F61-8CBF-DEA780593D6D

    Device Start End Sectors Size Type
    /dev/nvme0n1p1 34 97656 97623 47.7M EFI System
    /dev/nvme0n1p2 98304 5787647 5689344 2.7G Microsoft basic data
    /dev/nvme0n1p3 5787648 6121471 333824 163M EFI System
    /dev/nvme0n1p4 467191808 500117503 32925696 15.7G Linux swap
    /dev/nvme0n1p5 6121472 90011647 83890176 40G Linux filesystem
    /dev/nvme0n1p6 90011648 467191807 377180160 179.9G Microsoft basic data

    Partition table entries are not in disk order.

    /dev/nvme0n1p6 is the relevant partition.

  3. #3

    Default Re: How to recover data from home partition

    More information : Output of lsblk -f

    NAME FSTYPE LABEL UUID MOUNTPOINT
    nvme0n1
    ├─nvme0n1p1 vfat 0805-9880 /boot/efi
    ├─nvme0n1p2 vfat OS 0806-AC09
    ├─nvme0n1p3 vfat B821-9A2D
    ├─nvme0n1p4 swap 16b6c11f-1afb-4716-8c99-ea1bee0ce319 [SWAP]
    ├─nvme0n1p5 ext4 a7f04b77-6153-445f-9533-35533d82ae1e /
    └─nvme0n1p6 xfs f2c2a2f1-51a0-44bb-93df-7dd16b6dac5c

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,288

    Default Re: How to recover data from home partition

    What did you put in for NAME



    Code:
    sudo mount -t xfs /dev/NAME /mnt
    should be /dev/nvme0n1p6

    or

    /dev/disk/by-uuid/f2c2a2f1-51a0-44bb-93df-7dd16b6dac5c

  5. #5

    Default Re: How to recover data from home partition

    Yes, I did put in /dev/nvme0n1p6

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,339
    Blog Entries
    15

    Default Re: How to recover data from home partition

    Hi
    Does the temporary linux install support xfs? If you download and create a Tumbleweed Live Rescue image and boot from that, can you mount the partition?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,277

    Default Re: How to recover data from home partition

    Quote Originally Posted by lelouchalpha View Post
    I tried
    sudo mount -t xfs /dev/NAME /mnt
    but got the error
    mount: /mnt: mount(2) system call failed: No data available.
    This does not look like an actual command and error response. It is reminiscent of a failed network or encrytpted mount.

    Please copy/paste the actual command and output (inside code tags -- the “#” option).
    --
    slàinte mhath,
    rayH

    ~ knowing the right answer is easier than knowing the right question.

  8. #8
    Join Date
    Sep 2012
    Posts
    7,103

    Default Re: How to recover data from home partition

    Quote Originally Posted by eng-int View Post
    This does not look like an actual command and error response.
    The error is ENODATA which is valid return code for local filesystem, although I am not sure in which case XFS can return it (usually it is associated with missing extended attribute). dmesg messages at the time of mounting may provide some hints.
    Please copy/paste the actual command and output (inside code tags -- the “#” option).

    That for sure

  9. #9

    Default Re: How to recover data from home partition

    Quote Originally Posted by eng-int View Post
    This does not look like an actual command and error response. It is reminiscent of a failed network or encrytpted mount.

    Please copy/paste the actual command and output (inside code tags -- the “#” option).

    I apologise for my messy presentation. Here is the output
    Code:
    [akashg@akash-pc /]$ sudo mount -t xfs /dev/nvme0n1p6 /mnt/                                                                                                                                                                                     
    mount: /mnt: mount(2) system call failed: No data available.
    Also, I'm not sure if this is relevant but I think the filesystem was encrypted using KWallet. I know the passphrase. But I was under the impression that I should still have been able to mount the partition. Is there a utility that I can use to access it using the passphrase?

    Thanks.

  10. #10

    Default Re: How to recover data from home partition

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Does the temporary linux install support xfs? If you download and create a Tumbleweed Live Rescue image and boot from that, can you mount the partition?
    Yes it does support xfs. In any case I tried the tumbleweed rescue image and when I tried to mount, I got a similar error box -

    Code:
    Failed to mount "193 GB Volume"
    
    Error mounting /dev/nvme0n1p6 at /run/media/linux/f2c2a2f1-51a0-44bb-93df-7dd16b6dac5c: Command-line `mount -t "xfs" -o "uhelper=udisks2,nodev,nosuid" "/dev/nvme0n1p6" "/run/media/linux/f2c2a2f1-51a0-44bb-93df-7dd16b6dac5c"' exited with non-zero exit status 32: mount: /run/media/linux/f2c2a2f1-51a0-44bb-93df-7dd16b6dac5c: mount(2) system call failed: No data available.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •