LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing directory to an external hard-drive (https://www.linuxquestions.org/questions/linux-newbie-8/changing-directory-to-an-external-hard-drive-914933/)

ashleyneedshelp 11-22-2011 12:07 PM

changing directory to an external hard-drive
 
Hi!
I am currently in:

Users/Name/

in Linux. However I wish to use data which is on an external hard-drive.
I have tried cd /media/harddrive, and various other things with no success!
Does anyone know how to change directory into an external hard-drive or USB?

Thanks!

brainvision 11-22-2011 12:43 PM

sorry but the question is not so clear.. maybe it's a problem of mne, but I can't understand what exactly is the point..
1. do you have yet mounted your USB or CD device?
2. did you do it with a file manager (thunar, nautilus, etc. etc.) or manually?

now: if you haven't still mounted it you must authenticate as root (or use sudo, indeed) and:
Code:

mount /dev/YOUR.DEVICE /media/zip
your device is usually sr0 , sr1 (and so on) or sg0, sg1 (and so on) for CD/DVD drives.. it depends by the PATA / IDE / SATA specific of the drive itself..
if the device is an USB ones, usually you can find it in
Code:

/dev/sdb1
(and sdb2, sdb3 if it's partitioned with more than one partition, of course); if you plug a second USB device you'll find it in sdc1 and so on..

the
Code:

/media/zip
is the mount point: if you are manually mounting the device you have to specify it; if you use a file manager usually the devices are automatically mounted in
Code:

/media/LABEL.NAME
I hope that I've been sufficiently clear to help you.. let me know.. :)

ashleyneedshelp 11-23-2011 10:18 AM

Yes thank you very much, it appears I had not mounted the hard-drive!

brainvision 12-05-2011 04:30 PM

Quote:

Originally Posted by ashleyneedshelp (Post 4531821)
yes thank you very much, it appears i had not mounted the hard-drive!

LOL!! ;)


All times are GMT -5. The time now is 12:08 AM.