Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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)?
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:
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.