Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Unable to Mount an External Drive with NTFS-3G

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
webhawg
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Fri Oct 18, 2002 6:07 pm

Unable to Mount an External Drive with NTFS-3G

  • Quote

Post by webhawg » Fri Jul 19, 2013 3:20 am

I've been able to mount NTFS drives in the past using the ntfs3g sys package. For some reason, I've been unable to mount a new drive on my clean installation. I believe that I've configured my kernel correctly and installed the ntfs3g package correctly, but can't figure it out. I've also tried a few forum suggestions.

Here are the error messages that I'm getting...

Code: Select all

Disk /dev/sdc: 1500.3 GB, 1500301909504 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277167 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 identifier: 0x1b704159

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      409639      204819+  ee  GPT
/dev/sdc2          411648  2930276351  1464932352    7  HPFS/NTFS/exFAT

Code: Select all

~ # mount -t ntfs-3g /dev/sdc1 /mnt/GoFlex1.5TB
NTFS signature is missing.
Failed to mount '/dev/sdc1': Invalid argument
The device '/dev/sdc1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Code: Select all

~ # mount -t ntfs-3g /dev/sdc2 /mnt/GoFlex1.5TB
ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: 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.
Top
chithanh
Retired Dev
Retired Dev
User avatar
Posts: 2158
Joined: Sat Aug 05, 2006 10:16 pm
Location: Berlin, Germany

  • Quote

Post by chithanh » Fri Jul 19, 2013 10:49 am

This looks like a GPT partitioned disk. Don't use fdisk on it, but gptfdisk, cgdisk or parted instead.

Also ensure that your kernel has CONFIG_EFI_PARTITION enabled.
Top
webhawg
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Fri Oct 18, 2002 6:07 pm

  • Quote

Post by webhawg » Fri Jul 19, 2013 3:38 pm

chithanh wrote:This looks like a GPT partitioned disk. Don't use fdisk on it, but gptfdisk, cgdisk or parted instead.

Also ensure that your kernel has CONFIG_EFI_PARTITION enabled.
Thanks for the reply. I haven't heard of cgdisk. Are you saying to use gptfdisk or parted to recreate the partitions and then do "mkfs.ntfs" on the new partition?

I have CONFIG_EFI_PARTITION enabled.
Top
webhawg
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Fri Oct 18, 2002 6:07 pm

  • Quote

Post by webhawg » Fri Aug 02, 2013 8:25 pm

Seeing if anyone else has advice here...

Should I use gptfdisk or parted to recreate the partitions and then do "mkfs.ntfs" on the new partition?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Aug 02, 2013 8:41 pm

webhawg,

Code: Select all

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      409639      204819+  ee  GPT
/dev/sdc2          411648  2930276351  1464932352    7  HPFS/NTFS/exFAT 
It looks like something horrible has happened here.

The disk appears to have a GPT partition table and the 'protective' MSDOS partition table. Thats the /dev/sdc1.
This should have covered the entire disk, or the first 2TiB, anyway.
This is not the real partition table.

It looks as if the 'protective' MSDOS partition has been shrunk and a second partition added.
Editing the MSDOS partition table in the way is harmless - but making a filesystem on /dev/sdc2 will destroy any GPT partitions that occupy the same space on the drive.

Add GPT support to your kernel and use (g)parted to check for a GPT partition table.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
webhawg
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Fri Oct 18, 2002 6:07 pm

  • Quote

Post by webhawg » Wed Aug 06, 2014 9:49 pm

I originally opened this post and need to re-visit the issue again. I've done a clean installation, changed drives, and reformatted. I'm still unable to mount an external NTFS drive. Can someone help me out?

Here is what I see...

Code: Select all

# fdisk /dev/sdc

Disk /dev/sdc: 931.5 GiB, 1000204885504 bytes, 1953525167 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: 06F32F5D-76AA-4718-948E-C2EF18499BA1

Device      Start        End    Sectors   Size Type
/dev/sdc1      40     409639     409600   200M EFI System
/dev/sdc2  411648 1953523711 1953112064 931.3G Microsoft basic data

Code: Select all

# ntfs-3g /dev/sdc1 /mnt/GoFlex1TB

ntfs_pread(): pos 0, count 512
Beginning bootsector check.
Checking OEMid, NTFS signature.
NTFS signature is missing.
Failed to mount '/dev/sdc1': Invalid argument
The device '/dev/sdc1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Code: Select all

# ntfs-3g /dev/sdc2 /mnt/GoFlex1TB

Failed to read NTFS $Bitmap: 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.
Top
webhawg
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Fri Oct 18, 2002 6:07 pm

  • Quote

Post by webhawg » Thu Aug 07, 2014 1:42 am

I've fiddled further with this drive. I opened my Windows 7 VM and formatted to FAT32 and formatted again to NTFS which created one partition. I still can't mount it. I do have different error messages.

Code: Select all

# fdisk /dev/sdc

Command (m for help): p
Disk /dev/sdc: 931.5 GiB, 1000204885504 bytes, 1953525167 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: dos
Disk identifier: 0x1bbb82d6

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdc1           2 1953525166 1953525165 931.5G  7 HPFS/NTFS/exFAT

Code: Select all

# ntfs-3g /dev/sdc1 /mnt/GoFlex1TB
OR
# mount -t ntfs-3g /dev/sdc1 /mnt/GoFlex1TB

Failed to read NTFS $Bitmap: 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.
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Thu Aug 07, 2014 3:50 am

I have absolutely no experience with NTFS under Linux, but are you sure you have FUSE enabled in kernel? Methinks you need it. Just my 2¢.
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
webhawg
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Fri Oct 18, 2002 6:07 pm

  • Quote

Post by webhawg » Thu Aug 07, 2014 8:17 pm

Jaglover wrote:I have absolutely no experience with NTFS under Linux, but are you sure you have FUSE enabled in kernel? Methinks you need it. Just my 2¢.
Fair question, I have it enabled in the kernel and also have sys-fs/fuse installed. Do I need one and not the other? Is there a conflict?

Code: Select all

CONFIG_FUSE_FS=y
Top
sebB
l33t
l33t
Posts: 806
Joined: Wed Mar 02, 2011 5:16 pm
Location: S.O. France

  • Quote

Post by sebB » Thu Aug 07, 2014 8:32 pm

Did you unmount your disk correctly under windows?
You can try:
Under windows:

Code: Select all

chkdsk D: /f
Under linux

Code: Select all

ntfsfix /dev/sdc1
Top
webhawg
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Fri Oct 18, 2002 6:07 pm

  • Quote

Post by webhawg » Thu Aug 07, 2014 8:45 pm

sebB wrote:Did you unmount your disk correctly under windows?
You can try:
Under windows:

Code: Select all

chkdsk D: /f
Under linux

Code: Select all

ntfsfix /dev/sdc1
This worked as far as I can tell...

Code: Select all

# ntfsfix /dev/sdc1
NTFS volume version is 3.1.
NTFS partition /dev/sdc1 was processed successfully.
But I still can't mount it. Weird.

Code: Select all

# mount -t ntfs-3g /dev/sdc1 /mnt/GoFlex1TB
Failed to read NTFS $Bitmap: 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.
Top
sebB
l33t
l33t
Posts: 806
Joined: Wed Mar 02, 2011 5:16 pm
Location: S.O. France

  • Quote

Post by sebB » Thu Aug 07, 2014 9:05 pm

Can you try deleting the partition and recreate it under linux (gfdisk, fdisk...)
Then run mkfs.ntfs -f /dev/sdX1
Top
webhawg
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Fri Oct 18, 2002 6:07 pm

  • Quote

Post by webhawg » Fri Aug 08, 2014 3:11 am

sebB wrote:Can you try deleting the partition and recreate it under linux (gfdisk, fdisk...)
Then run mkfs.ntfs -f /dev/sdX1
I've tried this before with no luck.

Code: Select all

# mkfs.ntfs -f /dev/sdc1

Creating NTFS volume structures.
ntfs_resident_attr_value_resize(): Entering for new size 56.
ntfs_attr_record_resize(): Sizes: old=424 alloc=1024 attr=80 new=88
ntfs_mst_pre_write_fixup(): Entering
ntfs_mst_post_write_fixup(): Entering
Error writing to /dev/sdc1: Input/output error
Error writing non-resident attribute value.
Couldn't create $Bitmap: Input/output error
Failed to fsync device /dev/sdc1: Input/output error
Warning: Could not close /dev/sdc1: Input/output error

Code: Select all

# ntfsfix /dev/sdc1

Failed to sync device /dev/sdc1: Input/output error
ntfs_pread(): pos 0, count 512
Error reading bootsector: Input/output error
Remount failed: Input/output error
Top
Post Reply

13 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic