LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mounting a windows drive (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-a-windows-drive-130374/)

BuzzStPoint 12-31-2003 11:18 AM

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?

michaelk 12-31-2003 11:29 AM

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

BuzzStPoint 12-31-2003 11:31 AM

Code:

[root@localhost buzz]# fdisk -l /dev/hda
bash: fdisk: command not found


BuzzStPoint 12-31-2003 11:36 AM

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


BuzzStPoint 12-31-2003 11:40 AM

Ok I got it mounted.. and can see my files I had to mount hda5

will this stay mounted when I reboot?

Skyline 12-31-2003 11:53 AM

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


All times are GMT -5. The time now is 12:55 AM.