LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-03-2010, 09:10 AM   #1
mike ashcroft
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Path-name to external hard-drive


Ubuntu 9.10 recognizes my Freecom 120gig external hard-drive (when it's plugged in) and I can manage its contents OK - except via the command line. I don't seem to be able to find its path-name. See below:

mike@mike-desktop:~$ cd /media
mike@mike-desktop:/media$ ls
cdrom cdrom0 FREECOM HDD
mike@mike-desktop:/media$ sudo fdisk -l
[sudo] password for mike:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb8000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 38174 306632623+ 83 Linux
/dev/sda2 38175 38913 5936017+ 5 Extended
/dev/sda5 38175 38913 5935986 82 Linux swap / Solaris

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcdffed52

Device Boot Start End Blocks Id System
/dev/sdb1 1 14593 117218241 7 HPFS/NTFS
mike@mike-desktop:/media$

Despite all this info, I fail to get into the external hard-drive from the command line. Please provide the obvious solution which is not obvious to me...

Many thanks

Mike
 
Old 02-03-2010, 09:33 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Exactly, what is the mount point?

Is it /media/FREECOM or

Is it /media/FREECOM HDD ?

If it is the later, try doing a cd from /media with this... cd 'FREECOM HDD' and see if you can change to that directory.

If you can not get it to work, post the entry for /dev/sdb from /etc/fstab.

Also watch the case as you type the commands, linux is case sensitive.
 
Old 02-03-2010, 01:51 PM   #3
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
@camorri: I assume FREECOM and HDD are two different mount points.

'cd /media/FREECOM/' should get you there.
 
Old 02-03-2010, 01:57 PM   #4
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Try
Code:
cd /media/"FREECOM HDD"
(note the ")
 
Old 02-03-2010, 02:11 PM   #5
mike ashcroft
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by camorri View Post
Exactly, what is the mount point?

Is it /media/FREECOM or

Is it /media/FREECOM HDD ?

If it is the later, try doing a cd from /media with this... cd 'FREECOM HDD' and see if you can change to that directory.

If you can not get it to work, post the entry for /dev/sdb from /etc/fstab.

Also watch the case as you type the commands, linux is case sensitive.
Thanks for the quick response. None of the following work:

FREECOM
FREECOM HDD
'FREECOM HDD'

Please give second part of your advice in "keystroke-by-keystroke" format.

Your help is much appreciated.
Mike
 
Old 02-03-2010, 02:38 PM   #6
archlinux_jessica
Member
 
Registered: Aug 2009
Location: PA USA
Distribution: Arch Linux
Posts: 78

Rep: Reputation: 19
cd /media/FREECOM*

cd "/media/FREECOM HDD"

should get you there.
 
Old 02-03-2010, 03:03 PM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Run mount. It will display what devices are mounted, and the mountpoints for each. The mountpoint for your external drive is the base directory of the external drive.
--- rod.
 
Old 02-03-2010, 03:44 PM   #8
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
First of all run mount in a Command Terminal. This will show you all devices that are mounted and where they are mounted to.

Second you should try to avoid mounting a drive to a folder with a space in it's name. However if can do so if you choose. Also you should use a proper escape character in the path name instead of quotes. If the drive is Mounted on FREECOM HDD then you should use the following

Code:
cd /media/FREECOM\ HDD
the \ say to read the next character as a literal. In this case the literal character to be read is a space.
 
1 members found this post helpful.
  


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
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 06:59 PM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM

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

All times are GMT -5. The time now is 10:32 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