Subject: Re: mount and modem
To: None <emorfin@caracol.red.cinvestav.mx>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 10/14/2003 01:41:59
On Mon, 13 Oct 2003 23:22:14 -0500 (CDT), emorfin@caracol.red.cinvestav.mx
wrote:
>
> how can i mount my win (fat) partition? (mount -t ??? /dev/wd0??
> /mnt/wd0a)
NetBSD often generates a disklabel for FAT disks. Here's mine:
# size offset fstype [fsize bsize cpg]
d: 1667232 0 unused 0 0 # (Cyl. 0 -
1653)
e: 1665153 63 MSDOS # (Cyl. 0*-
1651)
Mine is mounted with:
mount -t msdos /dev/wd2e /mnt
> and my ext3 partition? can i use the ext2 type?
> is xfs or reiser supported?
> is hfs and hfsplus (ppc) supported?
To see what's supported, try "ls /sbin/mount*". When you say "mount -t
xxx", what gets invoked is "mount_xxx".
To mount anything, NetBSD needs to know where it is. The only place it
looks is the device's disklabel, so if you want to mount a "foreign"
partition, you have to add it to the disklabel. Cf. disklable(8). Use
fdisk(8) to discover the geometry. It's not the easiest thing. Here's a
more complicated one:
# size offset fstype [fsize bsize cpg]
d: 40188960 0 unused 0 0 # (Cyl. 0 -
39869)
e: 10233342 63 NTFS # (Cyl. 0*-
10152*)
f: 2040255 10233405 MSDOS # (Cyl. 10152*-
12176*)
g: 27904905 12273660 4.2BSD 1024 8192 16 # (Cyl. 12176*-
39859*)
> my modem is in com3 (win) and ttyS2 on linux, where is on netbsd?
/dev/tty01
> how can i config the ethernet card? (no dhcp) where are the files to
> edit them? (are ther files or just with ifconfig?)
http://people.allbsd.org/~hrs/NetBSD/guide/en/netbsd.pdf
I recommend you print it out, at least the important chapters. You
discover your card's device with "dmesg|more". Mine is ex0:
$ dmesg |grep ex0
ex0 at pci0 dev 14 function 0: 3Com 3c905-TX 10/100 Ethernet (rev. 0x0)
ex0: interrupting at irq 9
ex0: MAC address 00:10:4b:9b:00:ad
nsphy0 at ex0 phy 24: DP83840 10/100 media interface, rev. 1
so I'd use
# ifconfig ex0 192.168.1.1 netmask 0xffffff00 up
to start it.
> how can i start or stop daemons?
See "man rc.d" and "ls /etc/rc.d". The thing is, normally you need write
access to /etc/rc.conf. To force daemons to start without editing
rc.conf, use "forcestart", as in:
$ /etc/rc.d/named forcestart
> Where i have to put my scripts to run at boottime?
Again, with the livecd, I don't know if anything can be done. Normally,
you'd add stuff to /etc/rc.local.
> can livecd be installed on HD? or i have to use the install cd?
You need the install CD or floppy.
--jkl