Re: ext2fs and NFS

2005-12-31 Thread Bob Hepple
On Fri, 30 Dec 2005 15:03:35 +1030
Malcolm Kay [EMAIL PROTECTED] wrote:

 On Sat, 29 Oct 2005 04:23 am, Bob Hepple wrote:
  On Thu, 27 Oct 2005 11:39:03 +1000
 
  Bob Hepple [EMAIL PROTECTED] wrote:
   I need to export an ext2fs file system mounted at /mnt/guest
   - it's a removable IDE disc that I carry to  from my linux
   system at work...
  
   mount shows:
  
   /dev/ad2s1 on /mnt/guest (ext2fs, local)
  
   So, I put an entry into /etc/exports:
  
   /mnt/guest -alldirs -network 192.168.254.0 -mask
   255.255.255.0
  
   and then:
  
   kill -s HUP `cat /var/run/mountd.pid`
  
   showmount localhost shows nothing and in /var/log/messages
   I have:
  
   Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old
   mount syscall Oct 27 11:36:01 raita mountd[417]: can't
   export /mnt/guest Oct 27 11:36:01 raita mountd[417]: bad
   exports list line /mnt/guest -network 192.168.254.0 -mask
   255.255.255.0
  
   ... so there's really no way to NFS export an ext2fs file
   system???
 
  Hmmm - looks like no-one has good news for me on this front so
  I'll try a different approach:
 
  Can anyone suggest a UNIX filesystem for a removable IDE disc
  that can be used on linux and freebsd and that can be exported
  by NFS?
 
 
 I thought most linux systems could mount 'ufs' file systems; 
 perhaps not 'ufs2' so you might need to be specific in creating 
 the file system.
 
 Malcolm Kay

Yes - but linux is READ-ONLY for UFS2. Even the older UFS write access
is marked dangerous. So I'm not keen on using it.


Cheers


Bob


-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux partitions

2005-12-01 Thread Bob Hepple
On Tue, 29 Nov 2005 15:08:55 +
RW [EMAIL PROTECTED] wrote:

 On Tuesday 29 November 2005 14:05, Lowell Gilbert wrote:
  arden [EMAIL PROTECTED] writes:
   I want to duel boot BSD with Slackware whats the best Linux file system
   to use for reading and write to I would normally use ReiserFS would this
   be ok ?
 
  reiserfs support in FreeBSD is read-only at the moment.  I believe the
  only filesystem that can be written to by both Linux and FreeBSD is FAT.
 
 The last time I dual-booted to linux I used an ext3 partition to exchange 
 data, FreeBSD can read/write this as ext2.

... but don't try to NFS export an ext2 file system from FreeBSD - it
doesn't work!!!


Cheers


Bob

-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext2fs and NFS

2005-10-28 Thread Bob Hepple
On Thu, 27 Oct 2005 11:39:03 +1000
Bob Hepple [EMAIL PROTECTED] wrote:

 I need to export an ext2fs file system mounted at /mnt/guest - it's a
 removable IDE disc that I carry to  from my linux system at work...
 
 mount shows:
 
 /dev/ad2s1 on /mnt/guest (ext2fs, local)
 
 So, I put an entry into /etc/exports:
 
 /mnt/guest -alldirs -network 192.168.254.0 -mask 255.255.255.0
 
 and then:
 
 kill -s HUP `cat /var/run/mountd.pid`
 
 showmount localhost shows nothing and in /var/log/messages I have:
 
 Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old mount syscall
 Oct 27 11:36:01 raita mountd[417]: can't export /mnt/guest
 Oct 27 11:36:01 raita mountd[417]: bad exports list line /mnt/guest -network 
 192.168.254.0 -mask 255.255.255.0
 
 ... so there's really no way to NFS export an ext2fs file system???

Hmmm - looks like no-one has good news for me on this front so I'll try a
different approach:

Can anyone suggest a UNIX filesystem for a removable IDE disc that can be
used on linux and freebsd and that can be exported by NFS?


Thanks

Bob


-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt


pgpuZ4cTqOHeL.pgp
Description: PGP signature


ext2fs and NFS

2005-10-26 Thread Bob Hepple
Hello,

Google and the search screen at www.FreeBSD.org tell me that this
question has been asked before but I can't find an answer ...

I need to export an ext2fs file system mounted at /mnt/guest - it's a
removable IDE disc that I carry to  from my linux system at work...

mount shows:

/dev/ad2s1 on /mnt/guest (ext2fs, local)

So, I put an entry into /etc/exports:

/mnt/guest -alldirs -network 192.168.254.0 -mask 255.255.255.0

and then:

kill -s HUP `cat /var/run/mountd.pid`

showmount localhost shows nothing and in /var/log/messages I have:

Oct 27 11:36:01 raita kernel: ext2fs doesn't support the old mount syscall
Oct 27 11:36:01 raita mountd[417]: can't export /mnt/guest
Oct 27 11:36:01 raita mountd[417]: bad exports list line /mnt/guest -network 
192.168.254.0 -mask 255.255.255.0

... so there's really no way to NFS export an ext2fs file system???


Yow!




Thanks


Bob


-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD routing

2005-10-19 Thread Bob Hepple
On Wed, 19 Oct 2005 12:52:22 +1000
Richard Burakowski [EMAIL PROTECTED] wrote:

 Bob Hepple wrote:
 
 Well, it has to be taught ... eg with a FreeBSD 2.214 I can do this:
 route delete default
 route add -net 192.168.254.0 -interface xl0 # !!!
 route add default 192.168.254.245
 cp /etc/resolv.conf.home /etc/resolv.conf
   
 
 well, my turn ...
 
 from the man page:
 If the destination is directly reachable via an interface requiring no
 intermediary system to act as a gateway, the -interface modifier should
 be specified; the gateway given is the address of this host on the 
 common
 network, indicating the interface to be used for transmission.
 
 what i've now come to understand hinges on the phrase address of this 
 host on the common network, indicating the interface to be used for 
 transmission..  note this is not *the* interface.  for ethernet, it's 
 the local interface and the destination's mac address.  the format of 
 this address is partly described in link_addr(3).
 
 route add 192.168.2.214/32 -link -interface rl0:x:x:x:x:x:x
 
 if you want the kernel to use arp to find the mac address, you 
 specifically have to tell it to:
 
 route add 192.168.2.214/32 -interface rl0 -cloning
 
 a giveaway should have been the duplicate mac addresses in your routing 
 tables which we all missed.
 

Richard,

Hmmm - that works! Thanks very much ...

... but given that solution, I would have thought that

route add -host 192.168.2.214 -interface rl0 -cloning

would also work, but it doesn't. Back to the man pages for me!!

Interesting how seemingly similar but subtly different FreeBSD can be, at
least in this example. I wonder which behaviour of route, FreeBSD or
Linux, is more strictly correct, if there such a thing as a correct
behaviour - without starting a trawl, of course!

Thanks again!



Bob

-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD routing

2005-10-17 Thread Bob Hepple
On Mon, 17 Oct 2005 14:44:07 +1000
Richard Burakowski [EMAIL PROTECTED] wrote:

 Bob
 
 I'm having a hard time imagining how the packets are finding their way 
 back during your linux testing.  How does 2.214 know what to do with the 
 reply when it recieves the echo request from 254.245?  

Well, it has to be taught ... eg with a FreeBSD 2.214 I can do this:
route delete default
route add -net 192.168.254.0 -interface xl0 # !!!
route add default 192.168.254.245
cp /etc/resolv.conf.home /etc/resolv.conf

and I get this:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.254.245UGS 01xl0
127.0.0.1  127.0.0.1  UH  04lo0
192.168.2  link#1 UC  00xl0
192.168.2.15   link#1 UHLW10xl0
192.168.4  192.168.2.15   UGS 00xl0
192.168.254link#1 UCS 00xl0
192.168.254.24500:01:29:74:99:c2  UHLW1   96xl0   1060

In other words FreeBSD is happy to create a _subnet_ 192.168.254.0/24,
even though it won't create a route to a specific host.

 Was openvpn up 
 during you linux testing and down during your freebsd testing?  

Yes - absolutely although I don't usually bother to provide NAT for the
2.214 access to 2.0

 Can we 
 see your linux routing tables during the various stages?

Yup - here ya go:

[EMAIL PROTECTED]:~/ $ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags   MSS Window  irtt Iface
10.1.2.10.0.0.0 255.255.255.255 UH0 0  0 tun0
192.168.2.214   0.0.0.0 255.255.255.255 UH0 0  0 eth0
192.168.4.0 10.1.2.1255.255.255.0   UG0 0  0 tun0
192.168.2.0 10.1.2.1255.255.255.0   UG0 0  0 tun0
192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0 ath0
192.168.254.0   0.0.0.0 255.255.255.0   U 0 0  0 eth0
127.0.0.0   127.0.0.1   255.0.0.0   UG0 0  0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG0 0  0 ath0

tun0 is the openvpn device
ath0 is the wireless connection to the internet
eth0 is the 10baseT network

 
 Is it possible to preconfigure the servers to your home subnet instead 
 of 192.168.2.214?  or additionally?  it shouldn't cause any dramas if 
 your home subnet dosen't appear at work.
 
Hmmm - not quite sure what you're driving at here. I need to have a sleep
and a think!!

Cheers



Bob



-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD routing

2005-10-15 Thread Bob Hepple
On Sat, 15 Oct 2005 05:59:53 +0200
Björn König [EMAIL PROTECTED] wrote:
 Bob Hepple wrote:
  [...]
  I just want to add an arbitrary machine (eg. with IP 192.168.2.214) to my
  home network 192.168.254.0/24. Under Linux I just do a 
  
  route add -host 192.168.2.214 eth0
  
  and I can ping it.
  
  On FreeBSD I tried both
  
  route add -host 192.168.2.214 192.168.254.245
  route add -host 192.168.2.214 -interface rl0
  
  but I'm getting some kind of redirect loop. Apparently my use of the
  FreeBSD route command is wrong.
   
 Hello Bob,
 
 welcome to FreeBSD.
 
 I won't expect that this will work at all, even not with Linux, because 
 the IP 192.168.254.245 and 192.168.2.214 are of different subnets. 
 Either you use 192.168.254.0/24 or 192.168.2.0/24 in the 10baseT net, 
 but not both. I don't know if Linux makes it possible to do this; I 
 haven't tried it yet. At least I can reproduce your error message with a 
 similar setup. Just assign the IP 192.168.2.245 to rl0 for example; then 
 it should work without problems.
 
 Regards
 Björn

Hi Björn

I know it looks a bit odd, but Linux is perfectly happy with it. I've
relied on it every day for the last 6 years or so. 

The reason I'm doing it this way is that I have machines at work on the
192.168.2.0/24 network that I access from home over openvpn. So I can't
grab 192.168.2 at home. But I always bring home one of many different
machines - they're already configured to 192.168.2.214. It's so
convenient to be able to access all of 192.168.2 over openvpn _except_
for the one machine 192.168.2.214.

It's just a bit of a fag to re-configure each machine for home use -
particularly as it could be freebsd, linux (x 4 distros), Solaris, AIX,
SCO OS5, SCO UW7, HPUX etc etc and they all configure in different ways.

Oh well.

Thanks very much for confirming it - at least I can stop scouring the man
pages  google - I learned a lot on the way.

I must say I like FreeBSD very much - very stable drivers compared to
Linux whose wifi drivers seem to hang the system quite a lot. That's the
main reason I'm trying to make the move to FreeBSD - my wifi connection
goes about twice as fast (4-5 Mbps on FreeBSD vs 1-2 Mbps with Linux) and
is _much_ more stable.


Bob



-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD routing

2005-10-14 Thread Bob Hepple
   ath0
127.0.0.1  127.0.0.1  UH  0  139lo0
192.168.0  link#3 UC  00   ath0
192.168.0.100:09:5b:ec:45:4a  UHLW1   44   ath0286
192.168.2.214  00:01:29:74:99:c2  UHLS00rl0
192.168.254link#1 UC  00rl0
192.168.254.24500:01:29:74:99:c2  UHLW0  448lo0

bash-2.05b# ping rasam
PING rasam.gc.eracom-tech.com (192.168.2.214): 56 data bytes
36 bytes from raita.finder.com.au (192.168.254.245): Redirect Host(New addr: 192
.168.2.214)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks  Src  Dst
 4  5  00 0054 063f   0   40  01 f14d 192.168.254.245  192.168.2.214 

36 bytes from raita.finder.com.au (192.168.254.245): Redirect Host(New addr: 192
.168.2.214)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks  Src  Dst
 4  5  00 0054 063f   0   3f  01 f24d 192.168.254.245  192.168.2.214 

... same story. Any idea what I'm doing wrong?


Thanks



Bob

-- 
Bob Hepple, Research  Development Group
Eracom Technologies Australia Pty. Ltd.
28 Greg Chappell Drive, Burleigh Heads, Qld. 4220, Australia
Tel.: +61 7 5593 4911   Fax.: +61 7 5593 4388
mailto:[EMAIL PROTECTED] http://www.eracom-tech.com
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]