LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   access usb hard disk through commands (https://www.linuxquestions.org/questions/linux-hardware-18/access-usb-hard-disk-through-commands-589597/)

iandroul 10-05-2007 03:43 AM

access usb hard disk through commands
 
Hi

I have Fedora 6 and a western digital usb hard disk 500GB. I can mount the hard disk but the problem is when I work in command line I can not see anywhere the disk. Does anyone knows how I can access the hard disk through the command line environment, because through the grafical x environment I am not facing any problems.

Thanx

sycamorex 10-05-2007 10:34 AM

First you can check where it is.

# /sbin/fdisk -l
you'll find a list of all drives/partitions that you have.

let's say it'll be for example /dev/sda1

you can create a new directory (e.g. westerndigital) in your home directory and:

# mount -t ext3 /dev/sda1 /path/to/your/westerndigital

If it is a windows fat partition you need to replace 'ext3' with 'vfat'. It'll be mounted under westerndigital and can be accessed there. To make it permanent, you need to add an entry in the file /etc/fstab

regards


All times are GMT -5. The time now is 05:52 AM.