LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-01-2004, 02:59 PM   #1
frostedthorns
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 9.1
Posts: 10

Rep: Reputation: 0
mounting usb hard drive


hey guys, i have fedora 2 & its totaly updated as of 3 mins ago. ive been trying to mount my usb hdd but i havehad no luck. plus 3 of the guides or wat not deal with formattig the hdd, i have 73 gb of datta that cant be lost, the hdd has a single extended partition formatted with fat32, as to have read/write compatability with win xp pro & fedora core 2. please advise~
 
Old 07-01-2004, 03:13 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
First you plug your USB hard drive in your USB port. Then open a terminal. Type su, to switch to root user. Once you are root, do a fdisk -l to see where the hard drive is. It should produce results in form of /dev/hda1 /dev/hda2 /dev/hda3 (these are the lines of your primary harddisk. The USB harddrive should be /dev/sda1 or seomthing starting with sd. If it's not, just analyse what the harddrives in your computer are.

Like for example. You know you only have one harddisk in your computer. That one is certainly /dev/hdax (where x are the numbers of partitions). IF you have two harddisks in your computer, then the second one is /dev/hdbx and the third one is /dev/hdc..... and so on.

Just eliminate the ones you know are not the USB harddrive. But as I said, the USB harddrive should be like /dev/sda1. Also in the line of that, you see the filesystem type of that drive. In your case it should say FAT something.

SO remember, just switch to root, and "fdisk -l" to see where it is.

Once you know where it is, and what filesystem type it is, you just have to mount it. To do that, you first need to create a directory.

mkdir /myusbdisk (this creates the directory)

and then just mount it there with the command:

mount -t vfat /dev/sda1 /myusbdisk

This is true, if you find it at /dev/sda1 and it is FAT filesystem.

Then just navigate to the directory /myusbdisk and there is your data. If you want to make it auto mount, just edit your /etc/fstab file. Just follow the examples already in it. Copy a line and change it to suit your needs.

Good luck!

You cant loose any of your data, with this. Mounting does not touch the harddisk at all.

Peace!
 
Old 07-01-2004, 03:29 PM   #3
frostedthorns
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 9.1
Posts: 10

Original Poster
Rep: Reputation: 0
hmmmmmm

i triedthe fdisk -l as per my cuz's instructions, lol then saw ur so i did it. it only recognizes my internal, no usb hdd...dunno
 
Old 07-01-2004, 03:34 PM   #4
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Which kernel are you running?

You can see that by typing:

uname -r

Also try this:

cat /proc/modules | grep hcd

This should produce some output if you have USB support in your kernel.
 
Old 07-01-2004, 10:51 PM   #5
frostedthorns
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 9.1
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up sucess

yay, guys, lol, that was gay. but yea i got it workin. im runnin the 2.6 versionof linuz kernel. but i got it runnin, imma look up how again, my friend apocrafiend told me how to. i plan to gete it & post it for others in a day or few hrs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting usb hard drive and memory key osumanus SUSE / openSUSE 2 04-19-2005 08:16 PM
Problem mounting USB hard drive kernelbuster Linux - Enterprise 0 02-14-2005 04:36 PM
Mounting USB Hard Drive in SuSE 9.1 Caboose447 SUSE / openSUSE 4 12-13-2004 10:39 AM
mounting a usb hard drive yocompia Slackware 5 10-19-2003 02:31 PM
mounting a usb hard drive--PPC arch. tomservo Linux - Hardware 3 07-16-2002 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration