LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-31-2003, 11:18 AM   #1
BuzzStPoint
LQ Newbie
 
Registered: Oct 2002
Posts: 18

Rep: Reputation: 0
Mounting a windows drive


I have Redhat 9 and am trying to mount a windows drive.. This drive has data files I need.

I'm new to linux and having touble.. While browsing I seen some commands to try to mount but I dont know what hd"x" to use. I seen somewhere to run fdisk but that gives me a bad command.. I also seen to type df.. so i did.
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             21274668   2067644  18126324  11% /
/dev/hda1               102454      9323     87841  10% /boot
none                     62492         0     62492   0% /dev/shm
[root@localhost //]#
I can boot to DOS and see my files but How do i mount the drive in Redhat 9?

Last edited by BuzzStPoint; 12-31-2003 at 11:19 AM.
 
Old 12-31-2003, 11:29 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
You need to log in as root first.

fdisk -l /dev/hda (That is a small L)

My first guess would be hda2.

Post the output
 
Old 12-31-2003, 11:31 AM   #3
BuzzStPoint
LQ Newbie
 
Registered: Oct 2002
Posts: 18

Original Poster
Rep: Reputation: 0
Code:
[root@localhost buzz]# fdisk -l /dev/hda
bash: fdisk: command not found
 
Old 12-31-2003, 11:36 AM   #4
BuzzStPoint
LQ Newbie
 
Registered: Oct 2002
Posts: 18

Original Poster
Rep: Reputation: 0
Sorry, logged out and logged in as root

Code:
Disk /dev/hda: 30.0 GB, 30003240960 bytes
240 heads, 63 sectors/track, 3875 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
 
   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        14    105808+  83  Linux
/dev/hda2          2908      3875   7318080    f  Win95 Ext'd (LBA)
/dev/hda3            15      2873  21614040   83  Linux
/dev/hda4          2874      2907    257040   82  Linux swap
/dev/hda5          2908      3875   7318048+   b  Win95 FAT32
 
Partition table entries are not in disk order
 
Old 12-31-2003, 11:40 AM   #5
BuzzStPoint
LQ Newbie
 
Registered: Oct 2002
Posts: 18

Original Poster
Rep: Reputation: 0
Ok I got it mounted.. and can see my files I had to mount hda5

will this stay mounted when I reboot?

Last edited by BuzzStPoint; 12-31-2003 at 11:42 AM.
 
Old 12-31-2003, 11:53 AM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Quote:
[root@localhost buzz]# fdisk -l /dev/hda
bash: fdisk: command not found
You'll need su dash ie

su -
root password

to get a typical Root user PATH in Red Hat and hence use fdisk (well /sbin/fdisk) - anyways......

Quote:
will this stay mounted when I reboot?
- it'll get mounted on boot-up if you put an entry in /etc/fstab

create a mount point

mkdir /mnt/windows

then on a new line in /etc/fstab

/dev/hda5 /mnt/windows vfat umask=000,defaults 0 0

save - then reboot

Last edited by Skyline; 12-31-2003 at 12:21 PM.
 
  


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
Mounting a windows drive jon_k Linux - Hardware 14 07-18-2003 08:58 PM
mounting windows drive chrismiceli Linux - Networking 2 06-28-2003 01:11 AM
mounting windows drive ditto Linux - Newbie 2 05-24-2003 09:10 AM
Mounting a Windows Drive digsby0007 Linux - Software 4 05-09-2003 04:18 PM
Mounting windows drive celtic32 Linux - General 10 09-09-2002 11:32 AM

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

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