LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-03-2012, 01:08 PM   #1
Squerl101
Member
 
Registered: Nov 2011
Location: Muskego, WI
Posts: 39

Rep: Reputation: 0
Question How to mount an external hd on Ubuntu 11.10?


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.
 
Old 03-03-2012, 02:55 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by Squerl101 View Post
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 View Post
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.

[X] Doc CPU
 
Old 03-03-2012, 02:58 PM   #3
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
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.
 
Old 03-03-2012, 03:33 PM   #4
Squerl101
Member
 
Registered: Nov 2011
Location: Muskego, WI
Posts: 39

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by lucmove View Post
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
so what should i do now?
 
Old 03-03-2012, 03:46 PM   #5
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by Squerl101 View Post
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?

[X] Doc CPU
 
Old 03-03-2012, 04:06 PM   #6
Squerl101
Member
 
Registered: Nov 2011
Location: Muskego, WI
Posts: 39

Original Poster
Rep: Reputation: 0
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.

Last edited by Squerl101; 03-03-2012 at 04:08 PM.
 
Old 03-03-2012, 04:24 PM   #7
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by Squerl101 View Post
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.

[X] Doc CPU
 
Old 03-04-2012, 01:58 PM   #8
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by Squerl101 View Post
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 View Post
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 View Post
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.

Sorry I can't help any more than this. Good luck.
 
  


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
[SOLVED] mount remotely external usb drive with ubuntu kristo5747 Linux - Newbie 1 07-05-2010 09:47 PM
Unable to mount external HD on Dell Mini/Ubuntu 8.04 jdb777 Linux - Newbie 3 12-30-2009 04:42 PM
Mount external usb-ntfs hd on ubuntu Nis2k Linux - Newbie 1 12-30-2007 09:49 PM
ubuntu external HD won't mount at boot koensmet Linux - Software 1 05-22-2007 05:52 PM
manual mount - external usb hdd (ubuntu) tripled2006 Linux - General 1 01-15-2007 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration