From owner-freebsd-questions Sun Aug 25 13:13:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90AEF37B400 for ; Sun, 25 Aug 2002 13:13:21 -0700 (PDT) Received: from janeway.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95AB643E3B for ; Sun, 25 Aug 2002 13:13:19 -0700 (PDT) (envelope-from syborg@stny.rr.com) Received: by janeway.vonbek.dhs.org (Postfix, from userid 507) id 6A8404FC8A; Sun, 25 Aug 2002 16:10:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by janeway.vonbek.dhs.org (Postfix) with ESMTP id 650DD4A0D; Sun, 25 Aug 2002 16:10:08 -0400 (EDT) Date: Sun, 25 Aug 2002 16:10:08 -0400 (EDT) From: John Bleichert X-X-Sender: syborg@janeway.vonbek.dhs.org Reply-To: John Bleichert To: George Stamatiou Cc: questions@FreeBSD.ORG Subject: Re: mount In-Reply-To: <000801c24c22$ea6b1300$51fccdd4@LocalHost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 25 Aug 2002, George Stamatiou wrote: > Date: Sun, 25 Aug 2002 13:33:54 +0300 > From: George Stamatiou > To: questions@FreeBSD.ORG > Subject: mount > > hello. how can i mount my first hard disk drive and my cd ? > > Thanks > > Well, the installer should have created an entry for your CD-ROM in the filesystem table /etc/fstab. On this box it's entry looks like: [johnnyb@picard johnnyb]$ grep cdrom /etc/fstab /dev/acd0c /cdrom cd9660 ro,noauto 0 0 So to mount a CD, I put the CD in the player and type: [johnnyb@picard johnnyb]$ mount /cdrom cd9660: /dev/acd0c: Operation not permitted [johnnyb@picard johnnyb]$ su Password: picard# mount /cdrom picard# mount /dev/ad0s2a on / (ufs, local) /dev/ad0s2f on /tmp (ufs, local, soft-updates) /dev/ad0s2g on /usr (ufs, local, soft-updates) /dev/ad0s2e on /var (ufs, local, soft-updates) procfs on /proc (procfs, local) janeway:/data/network on /network (nfs) /dev/acd0c on /cdrom (cd9660, local, read-only) I left the permissions error in there as you may see it. You may need to be the superuser to mount the disk. For the drive you're trying to mount, you need to know what its filesystem is and if the kernel knows it is there: picard# dmesg | grep ad0 ad0: 57241MB [116301/16/63] at ata0-master UDMA100 Mounting root from ufs:/dev/ad0s2a and if you look in my filesystem table for the hard disk entries: picard# cat /etc/fstab # See the fstab(5) manual page for important information on automatic mounts # of network filesystems before modifying this file. # # Device Mountpoint FStype Options Dump Pass# /dev/ad0s2b none swap sw 0 0 /dev/ad0s2a / ufs rw 1 1 /dev/ad0s2f /tmp ufs rw 2 2 /dev/ad0s2g /usr ufs rw 2 2 /dev/ad0s2e /var ufs rw 2 2 /dev/acd0c /cdrom cd9660 ro,noauto 0 0 janeway:/data/network /network nfs rw 0 0 proc /proc procfs rw 0 0 You can see then entry for the drive partitions (/dev/ad0 is partitioned for FreeBSD). The fstab(5) and mount(8) man pages are very elucidating, the the FreeBSD handbook has a section on working with disks: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mount-unmount.html For further help with the 'first drive' as you call it, please send the output from dmesg. HTH - JB The FreeBSD Handbook is your friend :-) /* * John Bleichert * syborg@stny.rr.com * http://vonbek.dhs.org/latest.jpg */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message