Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-25-2001, 08:51 PM   #1
LQ Newbie
Registered: Dec 2001
Location: Edinburgh
Distribution: Redhat 7.2
Posts: 12

Rep: Reputation: 0
Unhappy Problems mounting a network drive


I'm having a problem mounting a network drive. I'm running Redhat 7.2, and I'm trying to get it to mount a drive on another (windows) machine on my network. I've created a directory /mnt/primary (as seen in other posts) and I am now getting an error which is - "mount: /primary is not a block device". I've seen similar posts for problems with CDROMs and I've tried using modprobe /primary, and I've tried using depmod -ae. Neither made any difference.

My /etc/fstab is:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/hda6 swap swap defaults 0 0
/primary /mnt/primary auto noauto,owner,ro 0 0

/SWAP swap swap defaults 0 0

I altered the line from //primary to /primary. Neither line made any difference to the message issued.

I have set up Samba 2.2.1, and I can browse my Linux machine from my windows machine, but not vice versa.


Old 01-23-2002, 08:38 AM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
OK, the problem you're having is the the mount command (which is what the fstab relates to) is trying to mount /primary as a block device (i.e. a harddisk) on /mnt/primary. You will need to set the filetype as smbfs. Try typing the following in, at the command prompt:

mount //hostname/sharename -t smbfs /mnt/primary

This should mount the Window's shared folder called '//hostname/sharename' under the /mnt/primary directory.
Old 01-27-2002, 07:41 AM   #3
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
An explanation:
sharename is what the directory is shared as, not the path like c:\games


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
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 07:23 PM
mounting network drive viper52b Linux - Networking 2 03-10-2004 01:59 PM
mounting network drive? phatboyz Linux - Networking 3 03-02-2004 12:11 PM
Problems mounting a network drive silkyd Linux - Networking 10 02-16-2002 09:09 PM
mounting a network drive... Sonny Linux - Security 6 01-24-2002 01:08 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration