LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-13-2003, 09:03 PM   #1
piglingz
LQ Newbie
 
Registered: Feb 2003
Posts: 24

Rep: Reputation: 15
Mount a FAT HD onto linux.


Hi,
I wonder how can I mount as existing HD (FAT fs) with data on it. It was pulled from a Windows OS. THanks for all your help!

Eric
 
Old 02-13-2003, 09:21 PM   #2
Palin
Member
 
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
mount -t vfat /dev/hdXY /mnt/<mount dir>

create a directory in /mnt
and then you have to figure out what XY is for that harddrive
X will depend on where its connected in the computer
a-primary master
b-primary slave
c-secondary master
d-secondary slave
( i think thats it someone correct me if I'm wrong )
if there is only one partition then Y will be 1

so I hope this helps

edit: forgot if you want it automount at boot then you will need to edit the fstab file in the /etc directory search around there is alot of help for that.
 
Old 02-13-2003, 09:27 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Plug it into the box, of course.

You'll need to determine the drive designation...
...primary master = hda
...primary slave = hdb
...secondary master = hdc
...secondary slave = hdd

The easiest thing to do is run fdisk -l , as root. This will list all partitions on all your drives. Make a note of what partition numbers show up on the drive you want to mount. Prob'ly a 1, maybe a 5, and then a 6+. The 1 would have been C:, the 5 is an extended partition. The 6 and greater are logical partitions, D:, E:, etc.

Then, you need to create a mount point... As root, run mkdir /mnt/test .

Now, we can put it all together... As root, run mount -t vfat /dev/hdX# /mnt/test , replacing the X# with the appropriate letter and number. You can then look inside the /mnt/test directory to see what's on the partition.

Unmount with umount /mnt/test . Notice that there isn't an N between the U and the M. You can then mount another partition on the drive, if there are any, by re-running the mount command with the new partition number.
 
  


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
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 02:47 AM
How to mount FAT partitions under Linux automatically cquedugdylp Linux - Hardware 9 03-23-2005 10:14 PM
mount fat partition MissEileen Linux - General 4 03-02-2005 10:19 AM
Can we mount linux /fat 32 onto solaris juby Solaris / OpenSolaris 3 02-05-2004 08:43 AM
Linux supports fat or fat 32? dark_light Linux - General 3 04-25-2002 01:06 AM

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

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