LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-15-2003, 02:57 PM   #1
ecmorris
LQ Newbie
 
Registered: May 2003
Location: Canada
Distribution: Red Hat 8
Posts: 5

Rep: Reputation: 0
harddrive access


This is probably a really dumb question, but how do I get files off of another hardsdrive on my system. I have redhat 8 and I want to get some files off of a fat32 drive. If it makes any difference RH can see that there is two drives if I go to the hardware browser.
Thanks a lot!
 
Old 06-15-2003, 03:09 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You need to mount the partition where you have the files. Was the second disk in your machine when you installed Linux? If yes, look into /mnt directory. In one of dirs inside /mnt there may be files you're searching for.

If not, you need to create a directory when you mount the partition. For example, it may be /mnt/files. Create the directory (as root). Then you need to find out Linux name of the partition. The name is something like /dev/hdb1. 'b' means second disk (primary slave) where '1' means partition number (so /dev/hdb1 is first partition on primary slave drive, /dev/hdc1 on secondary master and so on). If you don't know the full name, open a terminal (as root) and run
fdisk /dev/hdb
(if it's primary master)
p
to list partitions and
q
to quit

Look at the table printed by fdisk. You should be able to find out which partition you'd like to access. Then run
mount -t vfat /dev/hdb1 /mnt/dirname
replace /dev/hdb1 with the right value and use right directory (created before) instead of /mnt/dirname
Now there should be your files inside /mnt/dirname . When you don't need them, use
umount /mnt/dirname
to unmount the partition (it doesn't remove the files).
 
Old 06-15-2003, 05:13 PM   #3
ecmorris
LQ Newbie
 
Registered: May 2003
Location: Canada
Distribution: Red Hat 8
Posts: 5

Original Poster
Rep: Reputation: 0
I tried running fdisk to see what partitions I have but apparently fdisk is not a command on my system. When I type fdisk I get:
bash: fdisk: command not found

However I was able to mount the partition I wanted using mount -t vfat /dev/hda1 /mnt/folder
But I now have a second problem, I a unable to modify or delete any of the files on the windows partition. Is there something else that I need to change in windows config, maybe sharing...?
Thanks again for your help, EM.
 
Old 06-16-2003, 04:28 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Quote:
Originally posted by ecmorris

But I now have a second problem, I a unable to modify or delete any of the files on the windows partition. Is there something else that I need to change in windows config, maybe sharing...?
Thanks again for your help, EM.
Does it happen when you're root or only when you're a normal user?
 
  


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
Loosing harddrive access insectile Linux - Hardware 6 04-05-2005 12:49 PM
how to access 2 different harddrive at start up? pharmd Linux - Newbie 4 03-31-2005 03:36 PM
DSL HardDrive Access obm DamnSmallLinux 2 03-02-2005 03:31 PM
Access denied to my second harddrive zwyrbla Slackware 13 09-19-2004 01:45 PM
fstab, harddrive access, etc kngharv Linux - General 1 02-21-2002 11:31 PM


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