Click to See Complete Forum and Search --> : 2 FreeBSD questions
Seph64
05-19-2003, 08:58 PM
1. Whenever I mount my NTFS drive by mount_ntfs -u 101 /dev/ad0s1 /mnt/ntfs not everything shows up in the folder listings.
Which is annoying because I can't see My Music folder to access the music I have stored on the NTFS drive. Is there anyway around this?
2. I can't mount a NFS drive that I have setup on a linux computer, keeps stating permission denied, I took a look at the FreeBSD FAQ, and states something along the lines of:
If you have compiled your kernel with the IPFIREWALL option, you need to be aware that the default policy as of 2.1.7R (this actually changed during 2.1-STABLE development) is to deny all packets that are not explicitly allowed.
If you had unintentionally misconfigured your system for firewalling, you can restore network operability by typing the following while logged in as root:
# ipfw add 65534 allow all from any to any
You can also set firewall_type="open" in /etc/rc.conf.
But if I try compiling the kernel with the option IPFIREWALL I can not use the network.
IS there a way around the Permission denied issue?
I am using FreeBSD 4.8
zdude255
05-19-2003, 09:17 PM
Not really sure, you might wanna try a more BSD based forum, but I'll try.
Try running scandisk on the ntfs partition. Check surface for errors too.
Not really sure about the second one though... Sorry
Seph64
05-19-2003, 10:14 PM
Thanks...
I guess I shall wait until someone more knowledgable comes along.
xulfralos
05-19-2003, 10:35 PM
1. Whenever I mount my NTFS drive by mount_ntfs -u 101 /dev/ad0s1 /mnt/ntfs not everything shows up in the folder listings.
Which is annoying because I can't see My Music folder to access the music I have stored on the NTFS drive. Is there anyway around this?
Rename 'My Music' to something else, preferably one word, or create a new dir and copy your files to the new dir.
2. I can't mount a NFS drive that I have setup on a linux computer, keeps stating permission denied, I took a look at the FreeBSD FAQ, and states something along the lines of:
If you have compiled your kernel with the IPFIREWALL option, you need to be aware that the default policy as of 2.1.7R (this actually changed during 2.1-STABLE development) is to deny all packets that are not explicitly allowed.
If you had unintentionally misconfigured your system for firewalling, you can restore network operability by typing the following while logged in as root:
# ipfw add 65534 allow all from any to any
You can also set firewall_type="open" in /etc/rc.conf.
But if I try compiling the kernel with the option IPFIREWALL I can not use the network.
IS there a way around the Permission denied issue?
You already answered your own question with that excerpt from the FreeBSD documentation:
# ipfw add 65534 allow all from any to any
or
set
firewall_type="open"
in /etc/rc.conf
The best thing to do would be to learn how to configure ipfw to allow traffic.
If this box is not a firewall, then remove ipfw from your kernel and recompile.
Seph64
05-19-2003, 10:55 PM
Originally posted by xulfralos
Rename 'My Music' to something else, preferably one word, or create a new dir and copy your files to the new dir.
If this box is not a firewall, then remove ipfw from your kernel and recompile. [/B]
I already did that when I found out that I couldn't get net access.
And I do not think renaming the folder would work because I can't see another folder that is one word only. Maybe moving the folder someplace else would work.
About NFS, the problem still occurs no matter what I do. Because if I can't access my NTFS drive fully, and can't access my main computer via NFS, then I can't listen to music properly while I use that particular computer.
Edit: Alright, I found the problem. I am trying to mount 192.168.x.x:/mnt/win_c (my mount point for my Windows partition on my main machine) /mnt/gentoo on my system. That's got to be the problem. I guess I am going to have to copy My Music folder from my Window s drive to my Linux drive.
try "mount -t ntfs /dev/blahblah /mnt/blah" works for me... as for NFS, never had a chance to use it.
Seph64
05-20-2003, 12:03 AM
Okay, I got another question. How do I get the Wheel of my MS Optical Wheel Mouse to work?
I tried adding
Option "ZAxisMapping" "4 5"
to my XF86Config file. But that did not work.
# ************************************************** ********************
# Core Pointer's InputDevice section
# ************************************************** ********************
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "MouseSystems"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5"
That's the mouse section in the XF86Config. I put MouseSystems there because the installer told me to do so. I don't think the IMPS/2 protocol would work in FreeBSD. Am I wrong?
scott_R
05-20-2003, 02:09 PM
use /dev/psm0 for your mouse, assuming it's a ps/2 style mouse.
For a little more setup help, you can also try this site:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
Seph64
05-20-2003, 02:48 PM
All MS Optical mice are USB.
The Config looks fine.. mabye try changing your zaxis values to 3 4 or whatever.
Also, you should look in to imwheel, its in the freebsd ports and it will let you use the side buttons on the mouse.
xulfralos
05-20-2003, 07:58 PM
You need to add:
Option "Buttons" "5"
to the same section that you added the ZAxisMapping line.
sharth
05-20-2003, 08:16 PM
non-bsdish answer (since i never have used it), but try imps/2 as your protocal
Seph64
05-20-2003, 09:29 PM
Originally posted by sharth
non-bsdish answer (since i never have used it), but try imps/2 as your protocal
No, that won't work on BSD. The protocol has to be SysMouse or MouseSystems.
Thanks Xulfralos, I shall give that a go.
Edit: That doesn't seem to work
scott_R
05-21-2003, 01:32 PM
Isn't sysmouse the console driver? I'm at work now, and can't really check it myself.
Seph64
05-23-2003, 01:12 PM
GAH! I got a problem. My network has just stopped working in FreeBSD. When it boots it sstates that it's doing some network stuff, about bringing up the hostname. But it takes a long time.
My NIC is :
Davicom Semiconductor, Inc. Ethernet 100/10 MBit (rev 49).
according to cat /proc/pci
The network in FreeBSD was working the last time I used it, and I haven't changed anything in the configuration.
What could be the problem?
larryt
05-24-2003, 01:36 AM
Mine works as shown below:
It is the Logitech 2button wheel mouse with the
thumb ball.
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto"
Option "Emulate3Buttons"
# Option "Device" "/dev/psm0"
Option "Device" "/dev/sysmouse"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
larry
Seph64
05-24-2003, 02:47 AM
Does anyone have any suggestions for my network problem? Thanks.
xulfralos
05-24-2003, 03:14 AM
Originally posted by Seph64
GAH! I got a problem. My network has just stopped working in FreeBSD. When it boots it sstates that it's doing some network stuff, about bringing up the hostname. But it takes a long time.
My NIC is :
Davicom Semiconductor, Inc. Ethernet 100/10 MBit (rev 49).
according to cat /proc/pci
The network in FreeBSD was working the last time I used it, and I haven't changed anything in the configuration.
What could be the problem? So you have dc0. Ok, what have you done to attempt to resolve the issue? Are there any error messages when booting up? Did you check /var/log/messages? Do you have another NIC that you can replace the dc with to see if it continues to occur? Document as much as you can and post your findings. Searching the FreeBSD Mailing Lists (http://www.freebsd.org/search/search.html#mailinglists) is a good thing to do before posting here.
Seph64
05-25-2003, 01:30 PM
I found the problem, but I do not know how to solve it.
FreeBSD is trying to to bring up the Inet6 configuration. I am connecting to the net through a router, so I have to use dhcp. How can I get it to use dhcp again?
Or not..... I just rebooted in FreeBSD, and my network is up and running again... :o
On a different note. Thanks Larryt, that helped getting my mousewheel to work.