Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
sudo fdisk -l
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 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: 342F4205-E187-4976-8FB4-263112C3B282
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 435396607 434345984 207.1G Linux filesystem
/dev/sda3 435396608 468860927 33464320 16G Linux swap
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 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: F645F422-1246-4DA5-A150-6E2BE0FFC69B
Device Start End Sectors Size Type
/dev/sdb1 2048 34815 32768 16M Microsoft reserved
/dev/sdb2 34816 956415 921600 450M Windows recovery environment
/dev/sdb3 956416 1161215 204800 100M EFI System
/dev/sdb4 1161216 976773119 975611904 465.2G Microsoft basic data
Owner

Zman94 commented Sep 3, 2017

Error mounting /dev/sdb4 at /media/zach/32644B54644B19CD: Command-linemount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sdb4" "/media/zach/32644B54644B19CD"' exited with non-zero exit status 13: ntfs_mst_post_read_fixup_warn: magic: 0xffffffff size: 4096 usa_ofs: 65535 usa_count: 65534: Invalid argument
Actual VCN (0xffffffffffffffff) of index buffer is different from expected VCN (0x0).
Failed to mount '/dev/sdb4': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.`

Silvian commented Sep 3, 2017

open /etc/fstab in your favourite text editor and make sure you add this line at the very end:
UUID=519CB82E5888AD0F /media/Data ntfs-3g defaults,windows_names,locale=en_US.utf8 0 0

Owner

Zman94 commented Sep 3, 2017

sudo mount /dev/sda4 /mnt
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff size: 4096 usa_ofs: 65535 usa_count: 65534: Invalid argument
Actual VCN (0xffffffffffffffff) of index buffer is different from expected VCN (0x0).
Failed to mount '/dev/sda4': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

Silvian commented Sep 3, 2017

Run these commands to install and execute the grub recovery tool:
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

Owner

Zman94 commented Sep 3, 2017

Unable to detect file system! Possible reasons are:

  • The file system is damaged
  • The file system is unknown to GParted
  • There is no file system available (unformatted)
  • The device entry /dev/sda1 is missing

sda1

Owner

Zman94 commented Sep 3, 2017

Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for ntfs file system support: ntfs-3g / ntfsprogs.

sda4

Owner

Zman94 commented Sep 3, 2017

ntfs-3g: No device is specified.

ntfs-3g 2015.3.14AR.1 integrated FUSE 28 - Third Generation NTFS Driver
Configuration type 7, XATTRS are on, POSIX ACLS are on

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2015 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information: http://tuxera.com

Owner

Zman94 commented Sep 3, 2017

ntfs_mst_post_read_fixup_warn: magic: 0xffffffff size: 4096 usa_ofs: 65535 usa_count: 65534: Invalid argument
Actual VCN (0xffffffffffffffff) of index buffer is different from expected VCN (0x0).
Failed to mount '/dev/sda4': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

Owner

Zman94 commented Sep 3, 2017

/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).

/ was on /dev/sdb2 during installation

UUID=9f8bf9a3-0b4c-4e1f-bc4c-25cdedbcb9e0 / ext4 errors=remount-ro 0 1

/boot/efi was on /dev/sdb1 during installation

UUID=CCCA-2C5C /boot/efi vfat umask=0077 0 1

swap was on /dev/sdb3 during installation

UUID=027ff38a-8979-4554-8151-9bfa924ceb9f none swap sw 0 0
#UUID=CCCA-2C5C /boot/efi vfat defaults 0 1
UUID=B842-D846 /boot/efi vfat defaults 0 1

Owner

Zman94 commented Sep 3, 2017

blkid
/dev/sda2: LABEL="Recovery" UUID="16BA41F7BA41D3C1" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="3496130c-cb28-4b8d-af59-ef04acc64e0f"
/dev/sda4: UUID="32644B54644B19CD" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="f74f5e14-ac21-46ac-824c-dc1cffd52a94"
/dev/sdb1: UUID="CCCA-2C5C" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="51b7d566-04ee-4e96-9d1e-1bd2f6c8b96a"
/dev/sdb2: UUID="9f8bf9a3-0b4c-4e1f-bc4c-25cdedbcb9e0" TYPE="ext4" PARTUUID="62439223-171f-4cc6-b97b-77ab790e5c1b"
/dev/sdb3: UUID="027ff38a-8979-4554-8151-9bfa924ceb9f" TYPE="swap" PARTUUID="23b6f625-86d9-4f7f-ae2e-8e097c7ad080"

Owner

Zman94 commented Sep 3, 2017

sudo mount /dev/sda4 /mnt/
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff size: 4096 usa_ofs: 65535 usa_count: 65534: Invalid argument
Actual VCN (0xffffffffffffffff) of index buffer is different from expected VCN (0x0).
Failed to mount '/dev/sda4': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

Owner

Zman94 commented Sep 3, 2017

sudo ntfsfix /dev/sda4
Failed to determine whether /dev/sda4 is mounted: No such file or directory
Mounting volume... Failed to access '/dev/sda4': No such file or directory
Error opening '/dev/sda4': No such file or directory
FAILED
Attempting to correct errors... Failed to access '/dev/sda4': No such file or directory
Error opening '/dev/sda4': No such file or directory
FAILED
Failed to startup volume: No such file or directory
Failed to access '/dev/sda4': No such file or directory
Error opening '/dev/sda4': No such file or directory
Volume is corrupt. You should run chkdsk.

Owner

Zman94 commented Sep 3, 2017

sudo ntfsfix /dev/sdb4
Mounting volume... ntfs_mst_post_read_fixup_warn: magic: 0xffffffff size: 4096 usa_ofs: 65535 usa_count: 65534: Invalid argument
Actual VCN (0xffffffffffffffff) of index buffer is different from expected VCN (0x0).
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff size: 1024 usa_ofs: 65535 usa_count: 65534: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff size: 1024 usa_ofs: 65535 usa_count: 65534: Invalid argument
$MFT error: Invalid mft record for '$Volume'.
Remount failed: Input/output error

Owner

Zman94 commented Sep 3, 2017

sudo mount /dev/sdb4 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error

   In some cases useful info is found in syslog - try
   dmesg | tail or so.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment