LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2016, 10:47 AM   #1
Celtic Yokel
Member
 
Registered: Feb 2013
Location: Knighton, Powys, Mid Wales
Distribution: Linux Mint 17.3 Rosa
Posts: 40

Rep: Reputation: Disabled
Cannot access external hard-drive


I have used a 1T WD My Passport external hard-drive in Linux Mint 17.3 and Windows 7 dual-boot system on my Samsung laptop for months. I've just installed LM 17.3 Cinnamon on a Dell Optiplex GX280, but after using the Passport with that I can't open it in any of the os. I think that the problem is with the volume type, because in W7 disk management it shows as unallocated, nor is there a volume description under Disks in Linux. What have I done wrong, and can it be fixed?
 
Old 04-22-2016, 01:52 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
First, can you still access the WD external drive from the Samsung laptop?
 
Old 04-22-2016, 09:07 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,690
Blog Entries: 12

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
If the USB drive is attached and unmounted on a Linux machine, how does it show in the output of these commands?

Code:
fdisk -l
dmesg
 
Old 04-23-2016, 03:52 AM   #4
Celtic Yokel
Member
 
Registered: Feb 2013
Location: Knighton, Powys, Mid Wales
Distribution: Linux Mint 17.3 Rosa
Posts: 40

Original Poster
Rep: Reputation: Disabled
Thank you for your replies Bigrigdriver and Frankbell.
The external hard-drive shows in disk management in both Linux and W7. In Linux it is shown in the hardware list under Computer, but 'unable to mount location' when ehd selected.
I entered lsusb for the following result:
elizabeth@elizabeth-R520-R522-R620 ~ $ lsusb
Bus 002 Device 003: ID 1058:0810 Western Digital Technologies, Inc. My Passport Ultra (WDBZFP)
Then, as requested by Frankbell:
elizabeth@elizabeth-R520-R522-R620 ~ $ fdisk -l
elizabeth@elizabeth-R520-R522-R620 ~ $ dmesg
[ 12.921166] sd 0:0:0:0: [sdb]
[ 12.921175] Add. Sense: No additional sense information
[ 12.921179] sd 0:0:0:0: [sdb] CDB:
[ 12.921181] Read(10): 28 00 74 6f 66 98 00 00 08 00
[ 12.921201] end_request: I/O error, dev sdb, sector 1953457816
[ 12.960825] sd 0:0:0:0: [sdb]
[ 12.960829] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 12.960833] sd 0:0:0:0: [sdb]
[ 12.960836] Sense Key : Aborted Command [current]
[ 12.960841] sd 0:0:0:0: [sdb]
[ 12.960846] Add. Sense: No additional sense information
[ 12.960850] sd 0:0:0:0: [sdb] CDB:
[ 12.960852] Read(10): 28 00 74 6f 66 98 00 00 08 00
[ 12.960872] end_request: I/O error, dev sdb, sector 1953457816
[ 13.000878] sd 0:0:0:0: [sdb]
[ 13.000887] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 13.000891] sd 0:0:0:0: [sdb]
[ 13.000894] Sense Key : Aborted Command [current]
[ 13.000899] sd 0:0:0:0: [sdb]
[ 13.000908] Add. Sense: No additional sense information
There was loads more answer to the dmesg command, but I don't know the method to post it. Do you need more, Frankbell?

Last edited by Celtic Yokel; 04-23-2016 at 11:12 AM. Reason: Further info
 
Old 04-23-2016, 11:35 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
fdisk -l must be run as root in order to obtain output.

Open a terminal and run sudo fdisk -l or su to root then run fdisk -l.
 
Old 04-23-2016, 04:47 PM   #6
Doug G
Member
 
Registered: Jul 2013
Posts: 658

Rep: Reputation: Disabled
Maybe something here will help: http://askubuntu.com/questions/22451...n-ubuntu-12-10
 
Old 04-23-2016, 06:48 PM   #7
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 3,110

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
Quote:
Originally Posted by Celtic Yokel View Post
I have used a 1T WD My Passport external hard-drive in Linux Mint 17.3 and Windows 7 dual-boot system on my Samsung laptop for months. I've just installed LM 17.3 Cinnamon on a Dell Optiplex GX280, but after using the Passport with that I can't open it in any of the os. I think that the problem is with the volume type, because in W7 disk management it shows as unallocated, nor is there a volume description under Disks in Linux. What have I done wrong, and can it be fixed?
when you say "I have used a 1T WD My Passport external hard-drive in Linux Mint 17.3 and Windows 7 dual-boot system on my Samsung laptop for months."

do you mean you where using this to boot off of? In other words Linux and Windows where installed as OS's and using it on your Samsung, or that you where using it in conjunction with your Linux and Windows operating systems on your Samsung?

Have you tried using Gparted on it to see if it will see it?
GParted will give you information on your partitions too.


Have you tried
Code:
sudo blkid
with it pluged in usb port ( of course) to see if your new system sees it?

if it does see it then it maybe a permissions , or ownership issue.

if your new system sees your external HDD when you issue the sudo blkid, then
Code:
sudo mount /dev/sdxx /mnt

sudo chown Your_current_userName:Your_current_userName /mnt -R
then see if it will allow you in to your external HDD

Last edited by BW-userx; 04-23-2016 at 07:05 PM.
 
Old 04-23-2016, 10:09 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,690
Blog Entries: 12

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Celtic Yokel, that was enough of dmesg. It shows the drive is being seen.

What type of file system is on that device? Commonly, these days Passports come with NTFS (I have two of them). If it has been reformatted to a Linux file system, Windows will be unable to see it and will report the drive as unallocated space.

Some Linux distros do not include NTFS drivers by default, as NTFS is non-free. It's been a while since I installed Mint and I can't remember whether it includes NTFS drivers by default; if it doesn't, they should be in the repos.

I still don't have a clear theory as to what the problem is, but this, from the Shot in the Dark Dept., might help: https://community.linuxmint.com/tutorial/view/1100

bigrigdriver is correct and I should have caught this; fdisk must commonly be run as root. In a terminal, run

Code:
sudo fdisk -l
and post the output here (Mint is a *buntu derivative, and *buntus have the root login obscured--it's not disabled, as some would put it, just obscured--by default). Please be sure to enclose the output in "code" tags, which become available when to click the "Go Advanced" button at the bottom of the compose post windows, for improved readabilty.

Last edited by frankbell; 04-23-2016 at 10:18 PM.
 
Old 04-23-2016, 10:12 PM   #9
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
From your dmesg seems the drive is damaged, was it dropped?
 
Old 04-23-2016, 10:20 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,690
Blog Entries: 12

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Emerson, please satisfy my curiosity. What in the dmesg output tipped you off to this?

Inquiring minds want to know.
 
Old 04-24-2016, 10:16 AM   #11
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
There are I/O errors and at least one unreadable sector, OP said this is just a small part of dmesg, so I presume there may be more bad sectors.
 
Old 04-24-2016, 11:21 AM   #12
Celtic Yokel
Member
 
Registered: Feb 2013
Location: Knighton, Powys, Mid Wales
Distribution: Linux Mint 17.3 Rosa
Posts: 40

Original Poster
Rep: Reputation: Disabled
Thank you all for your replies. I'll answer them in the order in which they're posted.

Code:
elizabeth@elizabeth-R520-R522-R620 ~ $ sudo fdisk -l
[sudo] password for elizabeth: 

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x0a487b7d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    31459327    15728640   27  Hidden NTFS WinRE
/dev/sda2   *    31459328    31664127      102400    7  HPFS/NTFS/exFAT
/dev/sda3        31664128   527134569   247735221    7  HPFS/NTFS/exFAT
/dev/sda4       527134718   625141759    49003521    5  Extended
/dev/sda5       527134720   618934271    45899776   83  Linux
/dev/sda6       618936320   625141759     3102720   82  Linux swap / Solaris
I've looked at Doug G's link - that doesn't apply to my access problem. I inadvertently side-stepped that problem when I first had the drive by turning the encryption off because no-one else was going to use it.

I've used the external hard-drive for file storage only, and until now I've had no problems with accessing the files. All the os are on the laptop and Dell. I haven't dropped the hard-drive, simply moved it 18 inches on my desk and plugged it into the other computer via usb hub.

Code:
elizabeth@elizabeth-R520-R522-R620 ~ $ sudo blkid
[sudo] password for elizabeth: 
/dev/sda1: LABEL="RECOVERY" UUID="1CC4C15CC4C138B2" TYPE="ntfs" 
/dev/sda2: LABEL="SYSTEM" UUID="4614C23614C2292F" TYPE="ntfs" 
/dev/sda3: UUID="ACE0C41CE0C3EB22" TYPE="ntfs" 
/dev/sda5: UUID="cee652aa-0019-4aa2-bc8e-fea3b1b7e1c1" TYPE="ext4" 
/dev/sda6: UUID="4fdf592a-da39-4b5c-a8d8-4d7889177720" TYPE="swap" 
elizabeth@elizabeth-R520-R522-R620 ~ $ sudo mount /dev/sdb /mnt
[sudo] password for elizabeth: 
mount: /dev/sdb: can't read superblock
There's a huge amount I don't know about coding, but even I can see that the above block doesn't look very promising!
 
Old 04-24-2016, 12:17 PM   #13
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Quote:
mount: /dev/sdb: can't read superblock
What filesystem is used on this drive? Was the filesystem created on raw device (sdb) or it was partitioned (sdb1, sdb2, so on)? In case a Linux filesystem was used did you run fsck on it? (Do a fsck "dry run", do not let it make any changes to the filesystem.)
 
Old 04-24-2016, 02:30 PM   #14
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 3,110

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
try mounting in on the partition not device
Code:
mount /dev/sdb1 /mnt
example of what you did wrong:
Code:
[userx@voided ~]$ sudo blkid
/dev/mmcblk0p1: LABEL="HP_TOOLS" UUID="E74D-12E2" TYPE="vfat"
/dev/sda1: UUID="b2ea32fc-0a25-4e12-baf1-d0be0842aedb" TYPE="ext4" PARTUUID="60a4b85c-01"
/dev/sda2: UUID="b1648f6b-0e93-45fa-89aa-5ec0d7209c71" TYPE="swap" PARTUUID="60a4b85c-02"
/dev/sda3: UUID="bf4e8bf4-9197-4770-a63e-1d56bfba45e8" TYPE="ext4" PARTUUID="60a4b85c-03"
/dev/mmcblk0: PTTYPE="dos"
/dev/sdb1: LABEL="WD3TB" UUID="89f35fb4-9578-42ca-9244-0f4b5ef1604d" TYPE="ext4"


[userx@voided ~]$ sudo mount /dev/sdb /mnt

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

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

# mounting the partition needs to be done:

[userx@voided ~]$ sudo mount /dev/sdb1 /mnt
[userx@voided ~]$

https://wiki.archlinux.org/index.php/fsck

http://www.debianhelp.co.uk/fsck.htm

BUT if it is NTFS or FAT I do not think that fsck works on that type of format.

MOD:
here for NTFS in Linux: you do not what to install Ubunututututu like this post says, the tools it tells you to use should 99.9% be available on all Linux OS's

http://www.makeuseof.com/tag/fix-cor...system-ubuntu/

a different post on this subject

https://linuxacademy.com/blog/linux/...very-in-linux/

Last edited by BW-userx; 04-24-2016 at 03:01 PM.
 
Old 04-24-2016, 02:41 PM   #15
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Do not run fsck on mounted filesystem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access external hard drive divanvanzyl Linux - Hardware 2 04-25-2014 04:06 PM
not authorized to access external hard drive sniper8752 Linux - Newbie 9 02-08-2013 06:49 PM
Access External Hard Drive Saptech Other *NIX 5 10-30-2008 11:52 AM
external hard drive - access problem bigjohn Linux - Hardware 1 12-24-2006 04:51 AM
Can't access external hard drive. new@this Linux - Hardware 0 12-11-2003 06:43 AM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration