Can you use the same My Passport drive in Linux and Windows?

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
mrniceguy
Level 4
Level 4
Posts: 242
Joined: Fri Apr 26, 2013 5:32 am

Can you use the same My Passport drive in Linux and Windows?

Post by mrniceguy »

I have a WD My Passport external HD. I have been using it to transfer files from one Windows PC to another. Now I need to transfer some files from it to a Linux machine. Mint 19 Tara. I plugged it into the Linux machine and discovered that it doesn't recognize the drive, so I'm going to have to format it if I want to use it on the Linux machine. Isn't that going to erase everything? That defeats the purpose.

I never had this problem with a NexStar CX external HD. Both Windows and Linux accepted that drive without me having to do anything special.

Is there a way to use the WD My Passport external HD in both Windows and Linux? The purpose is to be able to copy files from one machine and transfer them to the other, and vice versa.
User avatar
OtterGauze
Level 1
Level 1
Posts: 9
Joined: Sun Mar 17, 2019 5:46 pm
Location: England, UK

Re: Can you use the same My Passport drive in Linux and Windows?

Post by OtterGauze »

Sadly, I can't give any particularly useful advice in this case, but due to the nature of these drives, reformatting might be the only effective way of going about it.
Under "Technical Specifications" of the My Passport page on the Western Digital website, it reads
Formatted for Windows® 10, Windows 8 or Windows 7 operating systems. Requires reformatting for other operating systems.
Sorry if this isn't the answer you wanted to hear. :(
Your local otter enthusiast.
OtterGauze#8063 / /id/ottergauze/
Linux Mint 19 - Cinnamon
User avatar
lsemmens
Level 11
Level 11
Posts: 3545
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: Can you use the same My Passport drive in Linux and Windows?

Post by lsemmens »

Sorry, I can't offer too much help either, I have 2 WD passports but the first thing I did was reformat them to ext4. And, yes, they both work fine.
Fully mint Household
Out of my mind - please leave a message
User avatar
Schultz
Level 8
Level 8
Posts: 2064
Joined: Thu Feb 25, 2016 8:57 pm

Re: Can you use the same My Passport drive in Linux and Windows?

Post by Schultz »

As long as you format it to NTFS it should work. I use a USB drive on both OSs no problem.
RIH
Level 5
Level 5
Posts: 816
Joined: Sat Aug 22, 2015 3:47 am

Re: Can you use the same My Passport drive in Linux and Windows?

Post by RIH »

On my desktop I am dual boot Windows 7 & Mint 19.1.
I also have a Western Digital, My Passport, 1TB.

It is seen and works on both systems... As Schultz says it is formatted to NTFS.
my pass.png
User avatar
Pierre
Level 20
Level 20
Posts: 10937
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Can you use the same My Passport drive in Linux and Windows?

Post by Pierre »

if you do wish to share that ext drive with both Windows & with Linux:
- then that drive should be formatted to the NTFS type of file system.
which it already should be - - so why is the LinuxMint system not seeing that drive ?.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
hattpa
Level 1
Level 1
Posts: 45
Joined: Sat May 05, 2012 2:42 am
Location: Isle of Man

Re: Can you use the same My Passport drive in Linux and Windows?

Post by hattpa »

Shouldn't be a problem, I have several, one I used only today to transfer files was FAT32, no issue on windows or Linux, must be another issue. Can you see the drive in GParted?
Whenever you find yourself on the side of the majority, it is time to pause and reflect.”
Mark Twain
User avatar
catweazel
Level 19
Level 19
Posts: 9884
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Can you use the same My Passport drive in Linux and Windows?

Post by catweazel »

mrniceguy wrote:
Sun Mar 17, 2019 6:52 pm
I have a WD My Passport external HD.
I think you're asking the wrong question and running up the drainpipe of unfounded assumptions. The WD Passport works fine in both linux and Windwoes when formatted as NTFS, FAT32, or exFAT. The question is, "why isn't linux seeing the drive?"

Plug the drive in, switch it on, then wait a minute before checking the output of the dmesg terminal command. Inspect it for errors relating to the disk. Use copy/paste to post any potentially relevant lines here. If you do post info from dmesg, limit it to what's relevant and enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
AZgl1500
Level 14
Level 14
Posts: 5296
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Can you use the same My Passport drive in Linux and Windows?

Post by AZgl1500 »

RIH wrote:
Sun Mar 17, 2019 10:09 pm
On my desktop I am dual boot Windows 7 & Mint 19.1.
I also have a Western Digital, My Passport, 1TB.

It is seen and works on both systems... As Schultz says it is formatted to NTFS.

my pass.png
me too, I have 3 of them, and all work just fine...
as long as, the drive is formatted to NTSF
Linux Mint 19.3 Cinnamon
Hoser Rob
Level 16
Level 16
Posts: 6805
Joined: Sat Dec 15, 2012 8:57 am

Re: Can you use the same My Passport drive in Linux and Windows?

Post by Hoser Rob »

catweazel wrote:
Mon Mar 18, 2019 3:50 am
mrniceguy wrote:
Sun Mar 17, 2019 6:52 pm
I have a WD My Passport external HD.
I think you're asking the wrong question and running up the drainpipe of unfounded assumptions. The WD Passport works fine in both linux and Windwoes when formatted as NTFS, FAT32, or exFAT. The question is, "why isn't linux seeing the drive?"

Plug the drive in, switch it on, then wait a minute before checking the output of the dmesg terminal command. Inspect it for errors relating to the disk. Use copy/paste to post any potentially relevant lines here. If you do post info from dmesg, limit it to what's relevant and enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
Exactly what he said, I have a similar drive formatted ntfs and no problems with it.
User avatar
battlenut
Level 3
Level 3
Posts: 149
Joined: Sat Oct 13, 2018 9:13 pm
Location: Currently Yokosuka JAPAN

Re: Can you use the same My Passport drive in Linux and Windows?

Post by battlenut »

I have a little mint box I keep on my desk at work. I bring in the video files from home on a 4TB western digital External and never had an issue with it. Mine is formatted NTFS. I hope you get it sorted though.
User avatar
Moem
Level 20
Level 20
Posts: 11954
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Can you use the same My Passport drive in Linux and Windows?

Post by Moem »

mrniceguy wrote:
Sun Mar 17, 2019 6:52 pm
I'm going to have to format it if I want to use it on the Linux machine. Isn't that going to erase everything? That defeats the purpose.
Not really, as it's a one-time thing. But yes, it WILL erase everything that is currently on the drive.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
mrniceguy
Level 4
Level 4
Posts: 242
Joined: Fri Apr 26, 2013 5:32 am

Re: Can you use the same My Passport drive in Linux and Windows?

Post by mrniceguy »

catweazel wrote:
Mon Mar 18, 2019 3:50 am
mrniceguy wrote:
Sun Mar 17, 2019 6:52 pm
I have a WD My Passport external HD.
I think you're asking the wrong question and running up the drainpipe of unfounded assumptions. The WD Passport works fine in both linux and Windwoes when formatted as NTFS, FAT32, or exFAT. The question is, "why isn't linux seeing the drive?"

Plug the drive in, switch it on, then wait a minute before checking the output of the dmesg terminal command. Inspect it for errors relating to the disk. Use copy/paste to post any potentially relevant lines here. If you do post info from dmesg, limit it to what's relevant and enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
In Windows 10, it says it's formatted in NTFS. Other people who have replied besides you also say NTFS should work.

I'll post the dmesg output, but I'm not sure what's relevant. There are several red error lines, do you just want those? They're not really 'separate' from the rest of the text.
mrniceguy
Level 4
Level 4
Posts: 242
Joined: Fri Apr 26, 2013 5:32 am

Re: Can you use the same My Passport drive in Linux and Windows?

Post by mrniceguy »

catweazel wrote:
Mon Mar 18, 2019 3:50 am
Plug the drive in, switch it on, then wait a minute before checking the output of the dmesg terminal command. Inspect it for errors relating to the disk. Use copy/paste to post any potentially relevant lines here. If you do post info from dmesg, limit it to what's relevant and enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
I don't know what's relevant, and to keep this under the 60,000 character limit, I started copying from the first red error message. There are quite a few of them.

Code: Select all

[    5.136999] [drm:intel_enable_lvds [i915]] *ERROR* timed out waiting for panel to power on
[   21.527241] random: crng init done
[   31.261548] NET: Registered protocol family 38
[   32.532022] raid6: sse2x1   gen()  3144 MB/s
[   32.580018] raid6: sse2x1   xor()  3430 MB/s
[   32.628032] raid6: sse2x2   gen()  3552 MB/s
[   32.676023] raid6: sse2x2   xor()  4177 MB/s
[   32.724019] raid6: sse2x4   gen()  6152 MB/s
[   32.772020] raid6: sse2x4   xor()  4560 MB/s
[   32.772022] raid6: using algorithm sse2x4 gen() 6152 MB/s
[   32.772023] raid6: .... xor() 4560 MB/s, rmw enabled
[   32.772024] raid6: using ssse3x2 recovery algorithm
[   32.777063] xor: measuring software checksum speed
[   32.816019]    prefetch64-sse:  8492.000 MB/sec
[   32.856018]    generic_sse:  7526.000 MB/sec
[   32.856019] xor: using function: prefetch64-sse (8492.000 MB/sec)
[   32.884058] Btrfs loaded, crc32c=crc32c-generic
[   79.603543] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
[   81.499134] ip_tables: (C) 2000-2006 Netfilter Core Team
[   81.599868] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[   81.616223] systemd[1]: Detected architecture x86-64.
[   81.621175] systemd[1]: Set hostname to <mrniceguy-Lenovo-3000-G550>.
[   82.803147] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   82.803211] systemd[1]: Reached target Remote File Systems.
[   82.803514] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   82.803564] systemd[1]: Reached target User and Group Name Lookups.
[   82.803857] systemd[1]: Created slice User and Session Slice.
[   82.804131] systemd[1]: Created slice System Slice.
[   82.804182] systemd[1]: Reached target Slices.
[   83.281982] EXT4-fs (dm-1): re-mounted. Opts: errors=remount-ro
[   83.528324] lp: driver loaded but no devices found
[   83.620140] systemd-journald[471]: Received request to flush runtime journal from PID 1
[   83.647348] ppdev: user-space parallel port driver
[   92.935674] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   93.096627] input: Ideapad extra buttons as /devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/input/input9
[   93.389156] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20170831/utaddress-247)
[   93.389166] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   93.389169] ACPI Warning: SystemIO range 0x00000000000011B0-0x00000000000011BF conflicts with OpRegion 0x0000000000001180-0x00000000000011BB (\GPIO) (20170831/utaddress-247)
[   93.389175] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   93.389176] ACPI Warning: SystemIO range 0x0000000000001180-0x00000000000011AF conflicts with OpRegion 0x0000000000001180-0x00000000000011BB (\GPIO) (20170831/utaddress-247)
[   93.389181] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   93.389182] lpc_ich: Resource conflict(s) found affecting gpio_ich
[   93.442642] snd_hda_codec_conexant hdaudioC0D2: CX20561 (Hermosa): BIOS auto-probing.
[   93.443154] snd_hda_codec_conexant hdaudioC0D2: autoconfig for CX20561 (Hermosa): line_outs=1 (0x1a/0x0/0x0/0x0/0x0) type:speaker
[   93.443157] snd_hda_codec_conexant hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   93.443159] snd_hda_codec_conexant hdaudioC0D2:    hp_outs=1 (0x16/0x0/0x0/0x0/0x0)
[   93.443161] snd_hda_codec_conexant hdaudioC0D2:    mono: mono_out=0x0
[   93.443163] snd_hda_codec_conexant hdaudioC0D2:    inputs:
[   93.443165] snd_hda_codec_conexant hdaudioC0D2:      Internal Mic=0x1d
[   93.443168] snd_hda_codec_conexant hdaudioC0D2:      Mic=0x18
[   93.444883] snd_hda_codec_conexant hdaudioC0D2: Enable sync_write for stable communication
[   93.447858] input: HDA Intel HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[   93.447935] input: HDA Intel Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[   93.448030] input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[   93.457420] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   93.505142] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   93.534960] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   93.534965] cfg80211: failed to load regulatory.db
[   93.726857] intel_powerclamp: No package C-state available
[   93.863009] Intel(R) Wireless WiFi driver for Linux
[   93.863012] Copyright(c) 2003- 2015 Intel Corporation
[   93.863232] iwlwifi 0000:04:00.0: can't disable ASPM; OS doesn't have ASPM control
[   93.869258] media: Linux media interface: v0.10
[   93.885306] iwlwifi 0000:04:00.0: loaded firmware version 8.83.5.1 build 33692 op_mode iwldvm
[   94.097219] Linux video capture interface: v2.00
[   94.754937] uvcvideo: Found UVC 1.00 device Lenovo EasyCamera (090c:3714)
[   94.757098] uvcvideo 2-3:1.0: Entity type for entity Processing 3 was not initialized!
[   94.757101] uvcvideo 2-3:1.0: Entity type for entity Extension 2 was not initialized!
[   94.757103] uvcvideo 2-3:1.0: Entity type for entity Camera 1 was not initialized!
[   94.757209] input: Lenovo EasyCamera as /devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.0/input/input13
[   94.757303] usbcore: registered new interface driver uvcvideo
[   94.757304] USB Video Class driver (1.1.1)
[   94.836978] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUG disabled
[   94.836981] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[   94.836983] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[   94.836986] iwlwifi 0000:04:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54
[   94.889005] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[   94.891734] iwlwifi 0000:04:00.0 wlp4s0: renamed from wlan0
[   97.424833] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   98.675308] audit: type=1400 audit(1552200793.452:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=795 comm="apparmor_parser"
[   98.675313] audit: type=1400 audit(1552200793.452:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=795 comm="apparmor_parser"
[   98.675316] audit: type=1400 audit(1552200793.452:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=795 comm="apparmor_parser"
[   98.675319] audit: type=1400 audit(1552200793.452:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=795 comm="apparmor_parser"
[   98.676834] audit: type=1400 audit(1552200793.456:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session" pid=794 comm="apparmor_parser"
[   98.676839] audit: type=1400 audit(1552200793.456:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session//chromium" pid=794 comm="apparmor_parser"
[   98.678494] audit: type=1400 audit(1552200793.456:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=797 comm="apparmor_parser"
[   98.678500] audit: type=1400 audit(1552200793.456:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=797 comm="apparmor_parser"
[   98.678503] audit: type=1400 audit(1552200793.456:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=797 comm="apparmor_parser"
[   98.681083] audit: type=1400 audit(1552200793.460:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=798 comm="apparmor_parser"
[   99.633903] Adding 4124156k swap on /dev/mapper/cryptswap1.  Priority:-2 extents:1 across:4124156k FS
[  105.003486] ipheth 2-5:4.2: Apple iPhone USB Ethernet device attached
[  105.003529] usbcore: registered new interface driver ipheth
[  105.123627] ipheth 2-5:4.2 enp0s29f7u5c4i2: renamed from eth0
[  108.490863] IPv6: ADDRCONF(NETDEV_UP): enp0s29f7u5c4i2: link is not ready
[  108.491382] IPv6: ADDRCONF(NETDEV_UP): enp0s29f7u5c4i2: link is not ready
[  108.498348] IPv6: ADDRCONF(NETDEV_UP): enp7s0: link is not ready
[  108.534982] IPv6: ADDRCONF(NETDEV_UP): enp7s0: link is not ready
[  108.571375] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
[  108.580720] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0
[  108.718217] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0
[  108.756187] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
[  108.858057] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
[  109.597982] [drm:intel_enable_lvds [i915]] *ERROR* timed out waiting for panel to power on
[  111.794595] wlp4s0: authenticate with 0c:47:3d:01:b3:08
[  111.799016] wlp4s0: send auth to 0c:47:3d:01:b3:08 (try 1/3)
[  111.800852] wlp4s0: authenticated
[  111.804092] wlp4s0: associate with 0c:47:3d:01:b3:08 (try 1/3)
[  111.806313] wlp4s0: RX AssocResp from 0c:47:3d:01:b3:08 (capab=0xc11 status=0 aid=1)
[  111.809461] wlp4s0: associated
[  112.600767] IPv6: ADDRCONF(NETDEV_CHANGE): wlp4s0: link becomes ready
[  129.300658] Could not find key with description: [4f7d325cbee76e1e]
[  129.300663] process_request_key_err: No key
[  129.300665] Could not find valid key in user session keyring for sig specified in mount option: [4f7d325cbee76e1e]
[  129.300667] One or more global auth toks could not properly register; rc = [-2]
[  129.300668] Error parsing options; rc = [-2]
[  426.869610] perf: interrupt took too long (2501 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[  503.428618] perf: interrupt took too long (3135 > 3126), lowering kernel.perf_event_max_sample_rate to 63750
[  646.150382] perf: interrupt took too long (3927 > 3918), lowering kernel.perf_event_max_sample_rate to 50750
[ 1101.897469] perf: interrupt took too long (4924 > 4908), lowering kernel.perf_event_max_sample_rate to 40500
[87612.230123] CPU1: Core temperature above threshold, cpu clock throttled (total events = 1)
[87612.230777] CPU1: Core temperature/speed normal
[659106.696099] usb 2-2: new high-speed USB device number 5 using ehci-pci
[659106.902362] usb 2-2: New USB device found, idVendor=1058, idProduct=25e1
[659106.902368] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[659106.902372] usb 2-2: Product: My Passport 25E1
[659106.902375] usb 2-2: Manufacturer: Western Digital
[659106.902379] usb 2-2: SerialNumber: 575836314137373130394530
[659108.457273] usb-storage 2-2:1.0: USB Mass Storage device detected
[659108.457479] scsi host5: usb-storage 2-2:1.0
[659108.457599] usbcore: registered new interface driver usb-storage
[659108.472713] usbcore: registered new interface driver uas
[659109.468635] scsi 5:0:0:0: Direct-Access     WD       My Passport 25E1 1019 PQ: 0 ANSI: 6
[659109.469105] scsi 5:0:0:1: CD-ROM            WD       Virtual CD 25E1  1019 PQ: 0 ANSI: 6
[659109.472747] scsi 5:0:0:2: Enclosure         WD       SES Device       1019 PQ: 0 ANSI: 6
[659109.479765] sd 5:0:0:0: Attached scsi generic sg2 type 0
[659110.109855] sd 5:0:0:0: [sdb] Unit Not Ready
[659110.109860] sd 5:0:0:0: [sdb] Sense Key : Data Protect [current] 
[659110.109864] sd 5:0:0:0: [sdb] Add. Sense: Logical unit access not authorized
[659110.110851] sr 5:0:0:1: [sr1] scsi3-mmc drive: 51x/51x caddy
[659110.114141] sr 5:0:0:1: Attached scsi CD-ROM sr1
[659110.114301] sr 5:0:0:1: Attached scsi generic sg3 type 5
[659110.115647] sd 5:0:0:0: [sdb] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
[659110.115988] scsi 5:0:0:2: Attached scsi generic sg4 type 13
[659110.119991] sd 5:0:0:0: [sdb] Write Protect is off
[659110.119995] sd 5:0:0:0: [sdb] Mode Sense: 47 00 10 08
[659110.122732] sd 5:0:0:0: [sdb] No Caching mode page found
[659110.122740] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[659110.127601] sd 5:0:0:0: [sdb] Unit Not Ready
[659110.127605] sd 5:0:0:0: [sdb] Sense Key : Data Protect [current] 
[659110.127609] sd 5:0:0:0: [sdb] Add. Sense: Logical unit access not authorized
[659110.134475] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.134479] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.134483] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.134487] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.134489] print_req_error: critical target error, dev sdb, sector 0
[659110.134495] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.136474] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.136478] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.136481] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.136485] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.136488] print_req_error: critical target error, dev sdb, sector 0
[659110.136492] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.138104] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.138108] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.138112] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.138115] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.138117] print_req_error: critical target error, dev sdb, sector 0
[659110.138122] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.138142] ldm_validate_partition_table(): Disk read failed.
[659110.139848] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.139851] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.139855] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.139858] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.139859] print_req_error: critical target error, dev sdb, sector 0
[659110.139863] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.141466] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.141470] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.141473] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.141476] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.141478] print_req_error: critical target error, dev sdb, sector 0
[659110.141481] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.143090] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.143093] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.143097] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.143100] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.143101] print_req_error: critical target error, dev sdb, sector 0
[659110.143104] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.144719] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.144722] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.144725] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.144728] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.144729] print_req_error: critical target error, dev sdb, sector 0
[659110.144733] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.144744] Dev sdb: unable to read RDB block 0
[659110.148725] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.148730] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.148734] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.148737] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.148739] print_req_error: critical target error, dev sdb, sector 0
[659110.148744] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.150347] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.150351] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.150355] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.150358] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[659110.150360] print_req_error: critical target error, dev sdb, sector 0
[659110.150364] Buffer I/O error on dev sdb, logical block 0, async page read
[659110.151966] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[659110.151969] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[659110.151973] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[659110.151976] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 18 00 00 08 00
[659110.151978] print_req_error: critical target error, dev sdb, sector 24
[659110.151981] Buffer I/O error on dev sdb, logical block 3, async page read
[659110.155221]  sdb: unable to read partition table
[659110.160365] sd 5:0:0:0: [sdb] Unit Not Ready
[659110.160369] sd 5:0:0:0: [sdb] Sense Key : Data Protect [current] 
[659110.160373] sd 5:0:0:0: [sdb] Add. Sense: Logical unit access not authorized
[659110.162994] sd 5:0:0:0: [sdb] Attached SCSI disk
[659110.614486] scsi 5:0:0:2: Wrong diagnostic page; asked for 1 got 8
[659110.614493] scsi 5:0:0:2: Failed to get diagnostic page 0x1
[659110.614497] scsi 5:0:0:2: Failed to bind enclosure -19
[659110.614532] ses 5:0:0:2: Attached Enclosure device
[659113.972353] UDF-fs: INFO Mounting volume 'WD Unlocker', timestamp 2016/08/15 18:43 (1000)
[659796.645496] usb 2-2: USB disconnect, device number 5
[733672.436176] usb 2-2: new high-speed USB device number 6 using ehci-pci
[733672.642493] usb 2-2: New USB device found, idVendor=1058, idProduct=25e1
[733672.642498] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[733672.642502] usb 2-2: Product: My Passport 25E1
[733672.642506] usb 2-2: Manufacturer: Western Digital
[733672.642509] usb 2-2: SerialNumber: 575836314137373130394530
[733672.643025] usb-storage 2-2:1.0: USB Mass Storage device detected
[733672.643258] scsi host5: usb-storage 2-2:1.0
[733673.660910] scsi 5:0:0:0: Direct-Access     WD       My Passport 25E1 1019 PQ: 0 ANSI: 6
[733673.661379] scsi 5:0:0:1: CD-ROM            WD       Virtual CD 25E1  1019 PQ: 0 ANSI: 6
[733673.665149] scsi 5:0:0:2: Enclosure         WD       SES Device       1019 PQ: 0 ANSI: 6
[733673.672097] sd 5:0:0:0: Attached scsi generic sg2 type 0
[733675.667989] sd 5:0:0:0: [sdb] Unit Not Ready
[733675.667994] sd 5:0:0:0: [sdb] Sense Key : Data Protect [current] 
[733675.667997] sd 5:0:0:0: [sdb] Add. Sense: Logical unit access not authorized
[733675.670626] sr 5:0:0:1: [sr1] scsi3-mmc drive: 51x/51x caddy
[733675.672198] sr 5:0:0:1: Attached scsi CD-ROM sr1
[733675.672350] sr 5:0:0:1: Attached scsi generic sg3 type 5
[733675.672492] ses 5:0:0:2: Attached Enclosure device
[733675.672581] ses 5:0:0:2: Attached scsi generic sg4 type 13
[733675.673684] sd 5:0:0:0: [sdb] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
[733675.678739] ses 5:0:0:2: Wrong diagnostic page; asked for 1 got 8
[733675.678746] ses 5:0:0:2: Failed to get diagnostic page 0x1
[733675.678749] ses 5:0:0:2: Failed to bind enclosure -19
[733675.680240] sd 5:0:0:0: [sdb] Write Protect is off
[733675.680244] sd 5:0:0:0: [sdb] Mode Sense: 47 00 10 08
[733675.682881] sd 5:0:0:0: [sdb] No Caching mode page found
[733675.682887] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[733675.687622] sd 5:0:0:0: [sdb] Unit Not Ready
[733675.687627] sd 5:0:0:0: [sdb] Sense Key : Data Protect [current] 
[733675.687631] sd 5:0:0:0: [sdb] Add. Sense: Logical unit access not authorized
[733675.694109] scsi_io_completion: 4 callbacks suppressed
[733675.694116] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.694120] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.694124] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.694128] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.694129] print_req_error: 4 callbacks suppressed
[733675.694130] print_req_error: critical target error, dev sdb, sector 0
[733675.694136] buffer_io_error: 3 callbacks suppressed
[733675.694138] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.695862] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.695866] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.695870] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.695874] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.695875] print_req_error: critical target error, dev sdb, sector 0
[733675.695881] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.697738] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.697743] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.697746] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.697750] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.697752] print_req_error: critical target error, dev sdb, sector 0
[733675.697758] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.697784] ldm_validate_partition_table(): Disk read failed.
[733675.700447] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.700452] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.700456] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.700460] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.700462] print_req_error: critical target error, dev sdb, sector 0
[733675.700467] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.703739] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.703743] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.703747] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.703751] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.703753] print_req_error: critical target error, dev sdb, sector 0
[733675.703759] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.705735] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.705739] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.705743] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.705747] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.705749] print_req_error: critical target error, dev sdb, sector 0
[733675.705755] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.707850] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.707853] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.707857] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.707859] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.707861] print_req_error: critical target error, dev sdb, sector 0
[733675.707865] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.707878] Dev sdb: unable to read RDB block 0
[733675.709476] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.709480] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.709484] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.709487] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.709489] print_req_error: critical target error, dev sdb, sector 0
[733675.709493] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.711112] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.711117] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.711121] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.711124] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[733675.711127] print_req_error: critical target error, dev sdb, sector 0
[733675.711131] Buffer I/O error on dev sdb, logical block 0, async page read
[733675.712734] sd 5:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[733675.712738] sd 5:0:0:0: [sdb] tag#0 Sense Key : Data Protect [current] 
[733675.712742] sd 5:0:0:0: [sdb] tag#0 Add. Sense: Logical unit access not authorized
[733675.712745] sd 5:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 18 00 00 08 00
[733675.712747] print_req_error: critical target error, dev sdb, sector 24
[733675.712751] Buffer I/O error on dev sdb, logical block 3, async page read
[733675.715979]  sdb: unable to read partition table
[733675.724123] sd 5:0:0:0: [sdb] Unit Not Ready
[733675.724128] sd 5:0:0:0: [sdb] Sense Key : Data Protect [current] 
[733675.724131] sd 5:0:0:0: [sdb] Add. Sense: Logical unit access not authorized
[733675.726500] sd 5:0:0:0: [sdb] Attached SCSI disk
[733677.074870] UDF-fs: INFO Mounting volume 'WD Unlocker', timestamp 2016/08/15 18:43 (1000)
User avatar
catweazel
Level 19
Level 19
Posts: 9884
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Can you use the same My Passport drive in Linux and Windows?

Post by catweazel »

mrniceguy wrote:
Tue Mar 19, 2019 10:10 pm
I don't know what's relevant
That's quite ok.
mrniceguy wrote:

Code: Select all

[733675.694130] print_req_error: critical target error, dev sdb, sector 0
Ouch! I recommend that you try to backup the data on that drive before you do anything else. If it's readable in Windwoes, use that. You may have to install smartmontools in linux to check the SMART values of the drive or find a Windwoes program that does the same thing. The drive will likely die on you all of a sudden. It's possibly either a few bad sectors, which would indicate more are going to fail with a short progression of time, or the drive is already on its last legs. In either case, I really wouldn't go trusting my treasured stuff to it.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
mrniceguy
Level 4
Level 4
Posts: 242
Joined: Fri Apr 26, 2013 5:32 am

Re: Can you use the same My Passport drive in Linux and Windows?

Post by mrniceguy »

catweazel wrote:
Wed Mar 20, 2019 1:05 am
mrniceguy wrote:
Tue Mar 19, 2019 10:10 pm
I don't know what's relevant
That's quite ok.
mrniceguy wrote:

Code: Select all

[733675.694130] print_req_error: critical target error, dev sdb, sector 0
Ouch! I recommend that you try to backup the data on that drive before you do anything else. If it's readable in Windwoes, use that. You may have to install smartmontools in linux to check the SMART values of the drive or find a Windwoes program that does the same thing. The drive will likely die on you all of a sudden. It's possibly either a few bad sectors, which would indicate more are going to fail with a short progression of time, or the drive is already on its last legs. In either case, I really wouldn't go trusting my treasured stuff to it.

You're saying the drive is kaput? I just bought it in November and have only used it less than 10 times...

It says something about 'mounting' at the bottom. Would it help if I went through the process of mounting it, using libimobiledevice or something?
User avatar
catweazel
Level 19
Level 19
Posts: 9884
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Can you use the same My Passport drive in Linux and Windows?

Post by catweazel »

mrniceguy wrote:
Thu Mar 21, 2019 1:50 pm
catweazel wrote:
Wed Mar 20, 2019 1:05 am
mrniceguy wrote:
Tue Mar 19, 2019 10:10 pm
I don't know what's relevant
That's quite ok.
mrniceguy wrote:

Code: Select all

[733675.694130] print_req_error: critical target error, dev sdb, sector 0
Ouch! I recommend that you try to backup the data on that drive before you do anything else. If it's readable in Windwoes, use that. You may have to install smartmontools in linux to check the SMART values of the drive or find a Windwoes program that does the same thing. The drive will likely die on you all of a sudden. It's possibly either a few bad sectors, which would indicate more are going to fail with a short progression of time, or the drive is already on its last legs. In either case, I really wouldn't go trusting my treasured stuff to it.
You're saying the drive is kaput?
No. The error message is saying it; sector 0, plus others in the output you provided, are badly damaged. I'm only telling you what the error means and what I believe is the best course of action to take.
mrniceguy wrote: I just bought it in November and have only used it less than 10 times...

It says something about 'mounting' at the bottom. Would it help if I went through the process of mounting it, using libimobiledevice or something?
What would probably help more than anything is taking the advice you've already been given.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
mrniceguy
Level 4
Level 4
Posts: 242
Joined: Fri Apr 26, 2013 5:32 am

Re: Can you use the same My Passport drive in Linux and Windows?

Post by mrniceguy »

catweazel wrote:
Wed Mar 20, 2019 1:05 am

What would probably help more than anything is taking the advice you've already been given.
Ok. This disk is brand new and has hardly been used at all. It works perfectly in Windows.

I installed smartmontools like you suggested. It doesn't tell me anything useful.

This is what happens:

Code: Select all

sudo smartctl -i /dev/sdb
[sudo] password for mrniceguy: 
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-20-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdb: Unknown USB bridge [0x1058:0x25e1 (0x1019)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary
So I put in the -h, and it just lists all the other commands available for smartmontools.

Googled for advice on how to use smartmontools. Got nothing that helped. Tried some of the other commands.

Code: Select all

sudo smartctl -s on /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-20-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdb: Unknown USB bridge [0x1058:0x25e1 (0x1019)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

Code: Select all

smartctl -a /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-20-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdb: Unknown USB bridge [0x1058:0x25e1 (0x1019)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

Code: Select all

smartctl -d /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-20-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

ERROR: smartctl requires a device name as the final command-line argument.


Use smartctl -h to get a usage summary
I tried other commands but just got error messages.

Plugged it back into a Windows PC, right clicked 'Properties', checked the disk, and it said "No errors found". Ran a full scan. It said there are errors and asked me if I wanted to repair them. I clicked Yes and it repaired the errors.

Brought it back to the Linux computer. 'Disks' has an option to allow you to mount a device but that option is greyed out for the My Passport.

There is still something preventing Mint from reading it. I suspect it's the WD Unlocker, which is an .exe file.

Found this: https://blog.bestcoding.net/en/unlock-w ... ive-linux/ which looks like it's the solution. I successfully completed the first step. But the 2nd step has a roadblock.

Code: Select all

sudo pip install py_sg
The directory '/home/mrniceguy/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/mrniceguy/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting py_sg
  Downloading https://files.pythonhosted.org/packages/de/fe/aa8b849771ed622e0f734183fe4ddb84648ea017b2a08f308b04bbf779bf/py_sg-0.11.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vkmXo2/py-sg/
Found that you're supposed to use 'chmod' in this situation. Tried that:

Code: Select all

chmod +x~/wdpassport-utils.py
chmod: missing operand after ‘+x~/wdpassport-utils.py’
Try 'chmod --help' for more information.
Entered 'chmod --help' and got nothing that explains the issue.

Tried the same command with a space, because I can't tell if there's a space or not:

Code: Select all

chmod +x ~/wdpassport-utils.py
chmod: cannot access '/home/mrniceguy/wdpassport-utils.py': No such file or directory
That didn't work either. What do I enter to get permission to execute the

Code: Select all

sudo pip install py_sg
command?
User avatar
thx-1138
Level 8
Level 8
Posts: 2114
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Can you use the same My Passport drive in Linux and Windows?

Post by thx-1138 »

...try apt install python-setuptools first, it appears to have failed above, because setuptools is missing.
Then try sudo pip install py_sg again. If you still get errors afterwards, report them, so that others can guide you further.

cd ~ && wget https://raw.githubusercontent.com/evox95/wdpassport-utils/master/wdpassport-utils.py && chmod +x ~/wdpassport-utils.py
Works fine here, you must have saved the script elsewhere for it to not be found...
If you find confusing the wget / chmod procedure, just right click / save link as directly, and save it under /home/mrniceguy/
Right-click the script, permissions, allow executing as program...

Your drive is in absolutely perfect condition, it's just that Linux can't interpret properly some of the firmware's weirdness, blame WD for that.

Code: Select all

[659110.109860] sd 5:0:0:0: [sdb] Sense Key : Data Protect [current] 
[659110.109864] sd 5:0:0:0: [sdb] Add. Sense: Logical unit access not authorized
It's indeed locked. I dunno if you will further find that you would need to disable the Virtual CD nonsense.
Hopefully such won't be needed. Since you dual-boot, your life is easier, as you can also use some of WD's own tools for some of those tasks.

Don't be surprised however if you eventually have to (low-level) reformat entirely the drive,
& then rebuild the partitions from scratch (under Linux, without any of the WD's 'Windows-friendly' features).
Do make a back-up of everything before fiddling around with such (under whatever OS).
mrniceguy
Level 4
Level 4
Posts: 242
Joined: Fri Apr 26, 2013 5:32 am

Re: Can you use the same My Passport drive in Linux and Windows?

Post by mrniceguy »

thx-1138 wrote:
Sat Mar 23, 2019 12:10 am
...try apt install python-setuptools first, it appears to have failed above, because setuptools is missing.
Then try sudo pip install py_sg again. If you still get errors afterwards, report them, so that others can guide you further.

cd ~ && wget https://raw.githubusercontent.com/evox95/wdpassport-utils/master/wdpassport-utils.py && chmod +x ~/wdpassport-utils.py
Works fine here, you must have saved the script elsewhere for it to not be found...
If you find confusing the wget / chmod procedure, just right click / save link as directly, and save it under /home/mrniceguy/
Right-click the script, permissions, allow executing as program...

Your drive is in absolutely perfect condition, it's just that Linux can't interpret properly some of the firmware's weirdness, blame WD for that.

Code: Select all

[659110.109860] sd 5:0:0:0: [sdb] Sense Key : Data Protect [current] 
[659110.109864] sd 5:0:0:0: [sdb] Add. Sense: Logical unit access not authorized
It's indeed locked. I dunno if you will further find that you would need to disable the Virtual CD nonsense.
Hopefully such won't be needed. Since you dual-boot, your life is easier, as you can also use some of WD's own tools for some of those tasks.

Don't be surprised however if you eventually have to (low-level) reformat entirely the drive,
& then rebuild the partitions from scratch (under Linux, without any of the WD's 'Windows-friendly' features).
Do make a back-up of everything before fiddling around with such (under whatever OS).
Ok, thank you. I attempted to follow your first suggestion but got an error:
apt install python-setuptools
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Post Reply

Return to “Hardware Support”