You are not logged in.

#1 2018-03-25 21:35:45

doctor-yellowstar
Member
Registered: 2018-03-25
Posts: 10

Some Directories Not Accessible on my NTFS-Formatted USB Drive

Hey everybody,

I'm having an issue with my USB harddrive that I believe is likely related to OneDrive. When I try to list the files in the OneDrive root directory using ls -l I just get question marks. All directories and files are inaccessible and listed as just being 25 bytes. This does not seem to be a hardware error. I have no issues viewing any part of this drive using Mac OS or Windows. I'm using ntfs-3g for handling NTFS filesystems. I manually mounted the drive using mount /dev/sdb1 /media/storage_ii and ntfs-3g /dev/sdb1 /media/storage_ii. From what I could find, this could be related to how Windows and OneDrive uses reparse points. This seems to be the problem, because originally even this OneDrive folder itself displayed as inaccessible but then I ran fsutil on Windows on the OneDrive folder (as described in these Microsoft docs) and was then able to see inside of that one folder in Linux. I wasn't sure how to use fsutil recursively on the entire directory structure though, or if there is a way to address this from inside of Linux.. so now I'm here.

Output of ls -l:

total 0
d????????? ? ? ? ?            ? Artwork
d????????? ? ? ? ?            ? Coding
-????????? ? ? ? ?            ? Ex_Files_Wordpress.zip
d????????? ? ? ? ?            ? Media
d????????? ? ? ? ?            ? Playlists
d????????? ? ? ? ?            ? Records
d????????? ? ? ? ?            ? School
d????????? ? ? ? ?            ? Songs
d????????? ? ? ? ?            ? Video
d????????? ? ? ? ?            ? Writing
-????????? ? ? ? ?            ? some thoughts.txt

Similarly, ls * tells me there is a input/output error.

ls: cannot access 'Media': Input/output error
ls: cannot access 'Artwork': Input/output error
ls: cannot access 'Attachments': Input/output error
ls: cannot access 'Coding': Input/output error
ls: cannot access 'Documents': Input/output error
ls: cannot access 'Ex_Files_Wordpress.zip': Input/output error

Here's what dmesg tells me:

[Sun Mar 25 13:24:38 2018] usb 2-1: new SuperSpeed USB device number 2 $
[Sun Mar 25 13:24:38 2018] usb-storage 2-1:1.0: USB Mass Storage device$
[Sun Mar 25 13:24:38 2018] scsi host2: usb-storage 2-1:1.0
[Sun Mar 25 13:24:38 2018] usbcore: registered new interface driver usb$
[Sun Mar 25 13:24:38 2018] usbcore: registered new interface driver uas
[Sun Mar 25 13:24:39 2018] scsi 2:0:0:0: Direct-Access     WD       My $
[Sun Mar 25 13:24:39 2018] scsi 2:0:0:1: Enclosure         WD       SES$
[Sun Mar 25 13:24:39 2018] sd 2:0:0:0: [sdb] Spinning up disk...
[Sun Mar 25 13:24:40 2018] .
[Sun Mar 25 13:24:45 2018] scsi 2:0:0:1: Wrong diagnostic page; asked f$
[Sun Mar 25 13:24:45 2018] scsi 2:0:0:1: Failed to get diagnostic page $
[Sun Mar 25 13:24:45 2018] scsi 2:0:0:1: Failed to bind enclosure -19
[Sun Mar 25 13:24:45 2018] ready
[Sun Mar 25 13:24:45 2018] ses 2:0:0:1: Attached Enclosure device
[Sun Mar 25 13:24:45 2018] sd 2:0:0:0: [sdb] 3906963456 512-byte logica$
[Sun Mar 25 13:24:45 2018] sd 2:0:0:0: [sdb] Write Protect is off
[Sun Mar 25 13:24:45 2018] sd 2:0:0:0: [sdb] Mode Sense: 47 00 10 08
[Sun Mar 25 13:24:45 2018] sd 2:0:0:0: [sdb] No Caching mode page found
[Sun Mar 25 13:24:45 2018] sd 2:0:0:0: [sdb] Assuming drive cache: writ$
[Sun Mar 25 13:24:45 2018]  sdb: sdb1
[Sun Mar 25 13:24:45 2018] sd 2:0:0:0: [sdb] Attached SCSI disk
[Sun Mar 25 13:25:46 2018] fuse init (API version 7.26)

I'd appreciate any help. Thank you for your time, and let me know if I can provide any more info. Cheers!

EDIT: My other external harddrive doesn't have any errors after I connect it and check dmesg, so maybe hardware issues are a factor:

[Sun Mar 25 14:39:07 2018] usb 2-1: new SuperSpeed USB device number 3 using xhci_hcd
[Sun Mar 25 14:39:07 2018] usb-storage 2-1:1.0: USB Mass Storage device detected
[Sun Mar 25 14:39:07 2018] scsi host2: usb-storage 2-1:1.0
[Sun Mar 25 14:39:09 2018] scsi 2:0:0:0: Direct-Access     WD       My Passport 0827 1012 PQ: 0 ANSI: 6
[Sun Mar 25 14:39:09 2018] scsi 2:0:0:1: Enclosure         WD       SES Device       1012 PQ: 0 ANSI: 6
[Sun Mar 25 14:39:09 2018] ses 2:0:0:1: Attached Enclosure device

Last edited by doctor-yellowstar (2018-03-25 21:41:55)

Offline

#2 2018-03-26 14:48:27

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,431

Re: Some Directories Not Accessible on my NTFS-Formatted USB Drive

I think the keyword here is OneDrive .

A quick search suggests accessing onedrive stuff on linux can only be done through special clients, like https://github.com/skilion/onedrive .
You can find the files needed to build it in the AUR at https://aur.archlinux.org/packages/onedrive/ .

If you're new to arch as the post count suggests, check wiki for ABS, makepkg and AUR.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2018-03-26 22:56:19

doctor-yellowstar
Member
Registered: 2018-03-25
Posts: 10

Re: Some Directories Not Accessible on my NTFS-Formatted USB Drive

OneDrive certainly has been very annoying and I remain with them only because of a good deal I lucked into. Last year they decided OneDrive will work only with NTFS drives, supposedly for their On-Demand Files feature, which works by using NTFS reparse points. I've installed the onedrive client you linked to, and I'm pretty sure it won't use reparse points so that's great. But I can't start using now because I have this input/output problem. Here's my attempt at syncing using it:

Creating directory School
School: Input/output error
Creating directory School
School: Input/output error
Creating directory School
std.file.FileException@std/file.d(2506): School: Input/output
error
----------------
??:? @safe bool std.file.cenforce!(bool).cenforce(bool, lazy
const(char)[], immutable(char)[], ulong) [0x8537deeb]
??:? @safe bool
std.file.ensureDirExists!().ensureDirExists(const(char[]))
[0x853c0bbd]
??:? @safe void std.file.mkdirRecurse(const(char[]))
[0x853bf574]
??:? void sync.SyncEngine.applyNewItem(itemdb.Item,
immutable(char)[]) [0x853959d4]
??:? void sync.SyncEngine.applyDifference(std.json.JSONValue,
immutable(char)[], bool) [0x85395829]
??:? void sync.SyncEngine.applyDifferences(immutable(char)[],
const(char)[]) [0x85394fa7]
??:? void sync.SyncEngine.applyDifferences() [0x85394c85]
??:? void main.performSync(sync.SyncEngine) [0x85383c27]
??:? _Dmain [0x85383784]

I disabled OneDrive on my Windows computer and I was hoping that would have removed all traces of it, but the reparse points still remain.  I was hoping there would some utility on Linux that could help me with this. I suppose this is a question more for a Windows forum, but I guess I was hoping there would be a cool Linux tool to fix this.

Offline

Board footer

Powered by FluxBB