LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-25-2015, 09:33 PM   #1
suivezmoi
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Rep: Reputation: Disabled
External hard drive not recognized on Centos 6


I recently installed Centos 6 on my Dell Dimension 8300 desktop. When I was using Linux Mint, my computer recognized my WD 640 GB external hard drive. Centos 6 does not recognize it. What's the solution?
 
Old 11-25-2015, 09:37 PM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,149

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
ntfs-3g driver installed on Centos 6? what's the file system of your WD?
 
Old 11-25-2015, 09:38 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
User permission to mount usb?
 
Old 11-25-2015, 11:42 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by suivezmoi View Post
I recently installed Centos 6 on my Dell Dimension 8300 desktop. When I was using Linux Mint, my computer recognized my WD 640 GB external hard drive. Centos 6 does not recognize it. What's the solution?
Do you see any trace of that drive? For example:
  • a message in /var/log/messages
  • the lsblk command
  • the blkid command
  • the lsscsi command
  • the lsusb command

Note that the lsscsi command needs to be installed manually; it's probably not in your system by default.
 
1 members found this post helpful.
Old 11-27-2015, 10:52 PM   #5
suivezmoi
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
TO JJJCR: File system of WD is ext3/ext4
Not too familiar with YUM. What is the command to install ntfs-3g driver?
 
Old 11-27-2015, 10:55 PM   #6
suivezmoi
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
To berndbausch: I entered the lsblk, blkid, and lsusb commands. Computer recognizes external hard drive, but doesn't mount it.
 
Old 11-27-2015, 11:09 PM   #7
suivezmoi
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
To jefro: I am root. Doesn't that give me user permission?
 
Old 11-27-2015, 11:39 PM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by suivezmoi View Post
To berndbausch: I entered the lsblk, blkid, and lsusb commands. Computer recognizes external hard drive, but doesn't mount it.
That's a good start.
Try to manually mount the drive. You need
  • a directory, preferably empty
  • root permissions (it seems you are root already)
  • the device file that corresponds to your drive
You run:

mount devicefile directory

What's the result? Error message or will it be mounted?
 
Old 11-28-2015, 12:20 AM   #9
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,149

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool

Quote:
Originally Posted by suivezmoi View Post
TO JJJCR: File system of WD is ext3/ext4
Not too familiar with YUM. What is the command to install ntfs-3g driver?
you don't need to install ntfs-3g since the file system is compatible with Linux.

To install ntfs-3g driver check out this link: https://wiki.centos.org/TipsAndTricks/NTFS

Last edited by JJJCR; 11-28-2015 at 12:20 AM. Reason: edit
 
Old 11-28-2015, 07:47 PM   #10
suivezmoi
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
To bernbausch: Having problems mounting device: I chose [myhome]/Documents as my target directory. The difficulty is writing the correct command. What do I include: the device file system (ext3/ext4)? The name I created for the device? The full name of the device (Western Digital Technologies, Inc. My Book Essential Edition 2.0 (WDH1U)? The device drive (sdd1)?
 
Old 11-28-2015, 09:02 PM   #11
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The latter.

You use the device file as reported by a tool like lsblk. Here is an example (from a Raspberry Pi, which uses an SD card instead of a disk):
Code:
$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0 28.8G  0 disk
mmcblk0p1 179:1    0    1G  0 part
mmcblk0p2 179:2    0    1K  0 part
mmcblk0p3 179:3    0   32M  0 part /media/pi/SETTINGS
mmcblk0p5 179:5    0   60M  0 part /boot
mmcblk0p6 179:6    0 27.7G  0 part /
In this example, the device files for the various partitions are /dev/mmcblk0p1 etc. If I had to mount them, I would say
Code:
mount /dev/mmcblk0p1 /home/users/myusername/Documents
You don't normally need to specify the file system type; the mount command figures this out. If it can't figure it out, you are missing the software for that file system type.

Also, the blkid command should give you clues what filesystem type this is:
Code:
$ sudo blkid
/dev/mmcblk0: PTUUID="00054b8f" PTTYPE="dos"
/dev/mmcblk0p1: LABEL="RECOVERY" UUID="6630-3761" TYPE="vfat" PARTUUID="00054b8f-01"
/dev/mmcblk0p3: LABEL="SETTINGS" UUID="01853b15-8e15-4cff-9dad-00ef72acd2c8" TYPE="ext4" PARTUUID="00054b8f-03"
/dev/mmcblk0p5: SEC_TYPE="msdos" LABEL="boot" UUID="02AC-7D90" TYPE="vfat" PARTUUID="00054b8f-05"
/dev/mmcblk0p6: LABEL="root" UUID="8ba69365-84b7-449b-b3ad-c7fbc4655493" TYPE="ext4" PARTUUID="00054b8f-06"
Again, if it doesn't, you need to add the software required to handle that file system type.
 
Old 11-28-2015, 09:42 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
https://access.redhat.com/documentat...-Mounting.html
 
Old 11-29-2015, 09:16 AM   #13
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by suivezmoi View Post
Having problems mounting device: I chose [myhome]/Documents as my target directory.
That is not a good idea. Create a new mount point
Code:
mkdir $HOME/newmountpointname
When you mount at an existing directory, you will not be able to access the documents that already exist in the directory until you unmount.

Quote:
Originally Posted by suivezmoi View Post
The difficulty is writing the correct command. What do I include: the device file system (ext3/ext4)? The name I created for the device? The full name of the device (Western Digital Technologies, Inc. My Book Essential Edition 2.0 (WDH1U)? The device drive (sdd1)?
EXAMPLE:
Code:
sudo mount /dev/sdd1 /mountpointname
Or, to make it easier, mount with udisks, which creates a directory for you in /media, using the Label, and then deletes it when you unmount.
Code:
udisks --mount /dev/sdd1
Mounted /org/freedesktop/UDisks/devices/sdd1 at /media/DiskLabel
 
  


Reply



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
USB WD external Hard drive not recognized? smegz Linux - Newbie 4 06-30-2015 02:35 PM
[SOLVED] External Hard Drive not recognized on Debian SID utanja Debian 19 11-16-2013 06:04 PM
external hard drive not recognized mayor89 Linux - Hardware 8 10-18-2012 02:08 PM
external hard drive issues - Will not mount, not recognized either. FFM Linux - Server 5 10-12-2011 09:02 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:48 PM.

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
Open Source Consulting | Domain Registration