Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Hey guys, I just bought a 2.5 inch sata hard drive enclosure, but it wont show up when i plug it in, so i figured i would have to mount it myself. Can someone tell me how to mount it? Thanks.
I just bought a 2.5 inch sata hard drive enclosure, but it wont show up when i plug it in
the enclosure only? With no HDD in it?
Quote:
Originally Posted by Squerl101
so i figured i would have to mount it myself. Can someone tell me how to mount it? Thanks.
Ubuntu, like many other popular distros, will detect external volumes automatically. But it auto-mounts only formatted file systems. So if your external enclosure contains a) no HDD or b) a blank, unpartitioned or unformatted HDD, there will be no auto-mount. You first have to create and format a partition on the HDD.
I am running Lubuntu (LXDE/Openbox) 11.10 and it does mount external media automatically. In fact, a pop-up dialogue box asks me if I want to browse it with the file manager or... Well, I don't remember what the other options are because I never choose them, but I know they are there.
I could bet that your brand new external HD isn't mounted or nothing else happens because it's new and isn't formatted yet. Become root and try these commands:
# su -
[enter password]
# cfdisk /dev/sdb
That should show you all the existing partitions in the external hard drive. If that fails (maybe your external drive didn't hook up as /dev/sdb), try this, also as root:
# fdisk -l
That should show you all your disks and partitions, so you can check if the external drive is /dev/sdb, or maybe /dev/sdc, or whatever.
If you can't find it, that's probably because it's not formatted. Look closely, the DISK will be identified, but with no partitions.
Creating partitions is fairly easy. Use the 'cfdisk' application, it's very easy to use. Just be very, VERY careful not to damage the partitions on the internal hard disk. Your internal hard disk probably is /dev/sda. Watch out: if you run 'cfdisk /dev/sda', you will be editing the partition table on the internal hard disk. You don't want that. If you run just 'cfdisk', it defaults to editing the partition table on the internal hard disk. You don't want that. So I recommend that you run 'fdisk -l' first, check what device the external hard disk is (probably /dev/sdb), then call cfdisk correctly: 'cfdisk /dev/sdb'.
I am running Lubuntu (LXDE/Openbox) 11.10 and it does mount external media automatically. In fact, a pop-up dialogue box asks me if I want to browse it with the file manager or... Well, I don't remember what the other options are because I never choose them, but I know they are there.
I could bet that your brand new external HD isn't mounted or nothing else happens because it's new and isn't formatted yet. Become root and try these commands:
# su -
[enter password]
# cfdisk /dev/sdb
That should show you all the existing partitions in the external hard drive. If that fails (maybe your external drive didn't hook up as /dev/sdb), try this, also as root:
# fdisk -l
That should show you all your disks and partitions, so you can check if the external drive is /dev/sdb, or maybe /dev/sdc, or whatever.
If you can't find it, that's probably because it's not formatted. Look closely, the DISK will be identified, but with no partitions.
Creating partitions is fairly easy. Use the 'cfdisk' application, it's very easy to use. Just be very, VERY careful not to damage the partitions on the internal hard disk. Your internal hard disk probably is /dev/sda. Watch out: if you run 'cfdisk /dev/sda', you will be editing the partition table on the internal hard disk. You don't want that. If you run just 'cfdisk', it defaults to editing the partition table on the internal hard disk. You don't want that. So I recommend that you run 'fdisk -l' first, check what device the external hard disk is (probably /dev/sdb), then call cfdisk correctly: 'cfdisk /dev/sdb'.
Come back here if you need more help.
Thanks for the help,
i ran cfdisk /dev/sdb and got a fatal error then i ran fdisk -l. it brings up stuff and says that /dev/sda3/ is extended. not sure what it means.
this is what i got when i ran fdisk -l:
Code:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x00083f13
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 125831167 62812160 7 HPFS/NTFS/exFAT
/dev/sda3 125833214 234440703 54303745 5 Extended
/dev/sda5 125833216 232364031 53265408 83 Linux
/dev/sda6 232366080 234440703 1037312 82 Linux swap / Solaris
then i ran fdisk -l. it brings up stuff and says that /dev/sda3/ is extended. not sure what it means.
that's okay, ut means that sda3 is some sort of container that contains sda5 and sda6.
Code:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x00083f13
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 125831167 62812160 7 HPFS/NTFS/exFAT
/dev/sda3 125833214 234440703 54303745 5 Extended
/dev/sda5 125833216 232364031 53265408 83 Linux
/dev/sda6 232366080 234440703 1037312 82 Linux swap / Solaris
Alright, only sda shows up. Nothing else? No mention of sdb? Then there's a problem with you external disk. But you're sure there is a disk in the external enclosure?
yes, it is an external case and there is a hard drive in it. i did have a problem before with windows, it said i had to initialize the disk,and i did, and then it never said anything again. but yes. theres a 2.5 inch sata in the enclosure. 80 GB. windows had to install drivers too. im not sure if thats the case here as well.
yes, it is an external case and there is a hard drive in it. i did have a problem before with windows, it said i had to initialize the disk,and i did, and then it never said anything again. but yes. theres a 2.5 inch sata in the enclosure. 80 GB. windows had to install drivers too. im not sure if thats the case here as well.
if Windows had to install extra drivers, there's something weird about this unit. Usually, Windows supports external USB media out of the box, without any additional driver. Have you tried to contact the manufacturer of the enclosure? Or his web site?
Some time ago, I had similar trouble with an external enclosure. I had only used it with an Ubuntu PC, where it worked just fine. Then a friend visited me and brought his notebook along. We wanted to exchange some files, and I suggested that he just connect my external drive to his Windows PC. His Windows 7 based notebook briefly displayed a note about new hardware being detected, then, after some seconds, that the new hardware could now be used. However, it hadn't assigned a drive letter to the external drive, though it was a standard FAT32 partition, and Win7 even refused to assign a drive letter manually (my old Win2k PC would let me do it).
After a moment of contemplation, I dismantled the enclosure, connected the HDD to a different USB/SATA adapter and reattached that to the Win7 notebook - and it worked right from the start.
So Windows is sometimes a little picky about external drives. But I didn't know Ubuntu is, too.
Sorry I can't offer you any more help at this moment.
i ran cfdisk /dev/sdb and got a fatal error then i ran fdisk -l. it brings up stuff and says that /dev/sda3/ is extended. not sure what it means.
this is what i got when i ran fdisk -l:
OK, your external disk is not detected. I don't know why. I just want to make sure you understand that /dev/sda is your internal disk. Never mess with that one. Be careful with that. OK?
And you should probably have full, working backups before you start using cfdisk.
Quote:
Originally Posted by Squerl101
yes, it is an external case and there is a hard drive in it. i did have a problem before with windows, it said i had to initialize the disk,and i did, and then it never said anything again. but yes. theres a 2.5 inch sata in the enclosure. 80 GB. windows had to install drivers too. im not sure if thats the case here as well.
Quote:
Originally Posted by Doc CPU
if Windows had to install extra drivers, there's something weird about this unit. Usually, Windows supports external USB media out of the box, without any additional driver.
In my experience, Windows does that "driver installation" thing for almost anything USB I'll ever connect to it. Even simple pen drives or SD cards, I have seen Windows do that many, many times. It's one of those things at which Linux is a lot more simple, practical and convenient. So it's not a good indicator that your hard disk or enclosure is broken.
Not even being detected by 'fdisk -l' is a good indicator, though. In your place, I would suspect the enclosure first. See if you can test that hard disk in another enclosure. If it still doesn't work, try it as an internal hard disk, connected to the motherboard on a desktop machine. If it still doesn't work, then it is probably dead and should get a proper burial. I am, however, more prone to thinking the problem is in the USB enclosure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.