LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-26-2003, 10:11 AM   #1
fuelinux
Member
 
Registered: Oct 2003
Location: Tbilisi, Georgia
Posts: 85

Rep: Reputation: 15
mounting drive with windows


i have 2 hard drives: one is master and there is win95 and all other files installed on it, and second is primary slave with linux.
now i want to mount master drive to /mnt ( i want to listen to mp3 collection on it under linux.

will command
# mount /dev/hda vfat /mnt/windows

mount it correctly? (providing that i already created a folder windows in /mnt)

thanks in advance
 
Old 10-26-2003, 10:19 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You need to use "-t" for type or let the system guess and also add the partition number- try:
mount -t vfat /dev/hdaX /mnt/windows

Where X is the partition number - look at the output from:
fdisk -l
 
Old 10-26-2003, 10:24 AM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,577

Rep: Reputation: 220Reputation: 220Reputation: 220
I think your syntax is a little off; try:

# mount -t vfat /dev/hda1 /mnt/windows

The general syntax is:

# mount -t <file system> <device file> <mount point>

Also your device file was off(/dev/hda). You have to designate the partition your mounting on a hard drive which for the primary master drive will be in the form /dev/hdax where 'x' corresponds to the partition number on that drive. For a win 95 install that will almost certainly be hda1, i.e. the first primary partition on the drive since win 95 insists on being installed there.
 
Old 10-26-2003, 10:44 AM   #4
porous
Member
 
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Rep: Reputation: 15
ye on most new distros i think it wont be a problem even if you dont mention the fs type (not needed for vfat for sure)

on my rh9
# mount /dev/hda* /mnt/windows

works fine...

if you want to mount it at boot time , then include an entry in /etc/fstab
 
Old 10-26-2003, 11:44 AM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
........... and for your fstab entry:

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

make sure you substitue in your partition device name and mount point
 
Old 10-28-2003, 08:49 AM   #6
fuelinux
Member
 
Registered: Oct 2003
Location: Tbilisi, Georgia
Posts: 85

Original Poster
Rep: Reputation: 15
[QUOTE]
........... and for your fstab entry:

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

make sure you substitue in your partition device name and mount point
[QUOTE]

I've done so and now i get the following message when I run HALT to shutdown computer:

[mntent]: warning: no final newline at the end of /etc/fstab

is there anything wrong?

Last edited by fuelinux; 10-28-2003 at 08:50 AM.
 
Old 10-28-2003, 02:07 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Well I think the error is pretty explanitory - just add a blank line to the end of /etc/fstab
 
Old 10-29-2003, 09:24 AM   #8
porous
Member
 
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Rep: Reputation: 15
i havent noticed that before ..
 
Old 10-29-2003, 06:19 PM   #9
Vizy
LQ Newbie
 
Registered: Oct 2003
Location: Slovenia
Posts: 23

Rep: Reputation: 15
as porous said ...you can do exactly the same in slackware 9.1 as in rh

just go to /mnt and create a directory named windows. than open terminal and write

mount /dev/hda# mnt/windows

(where # stands for a number of your Win partition)

it should work if you did everything properly
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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