From owner-freebsd-questions@FreeBSD.ORG Sat Feb 7 09:27:47 2004 Return-Path: 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 EBC7116A4CE for ; Sat, 7 Feb 2004 09:27:46 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C22E43D1F for ; Sat, 7 Feb 2004 09:27:46 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 24590 invoked from network); 7 Feb 2004 17:27:45 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 7 Feb 2004 17:27:45 -0000 Date: Sat, 7 Feb 2004 19:29:36 +0200 From: Ion-Mihai Tetcu To: "Mazen S. Alzogbi" , questions@freebsd.org Message-Id: <20040207192936.7ca83d0a@it.buh.cameradicommercio.ro> In-Reply-To: <000001c3ed9b$bef002a0$23daa5d9@winstation> References: <20040207180600.6c3c3206@it.buh.cameradicommercio.ro> <000001c3ed9b$bef002a0$23daa5d9@winstation> Subject: Re: Accessing Windows files from FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 17:27:47 -0000 X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit [please don't top-post, it makes hard to follow] [cc'ed back to the list] On Sat, 7 Feb 2004 20:59:16 +0400 "Mazen S. Alzogbi" wrote: > Hi Ion-Mihai, > > I appreciate your help (and Ads Serpe's too). The question now, how can > I know the /dev/???? Part? > > I have many "devices" mapped under /dev/ and I have no clue which one > maps to which!! It goes like this: - if there are ATA disks their name is ad - if there are SCSI disks their name is da - hard-disks are numbered from 0 - slices are numbered from 1 - bsd slices are denoted by letters a - the /, c - the hole slice, b - swap, d-h normal partitions So the root partition of the first slice of the first ata disk (the firts ata disk is the primary master) will be: ad0s1. Now if you do a fdisk you will get something like: itetcu@it> /tmp [19:13:05] 1 # fdisk ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=238216 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=238216 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 20964762 (10236 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 20964825, size 163573830 (79870 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 184538655, size 20964825 (10236 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) start 205503480, size 34604010 (16896 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 with no options fdisk default to print the configuration of the hdd I have booted from. Let alone the physical parameters for now. What we are after are is: ******* Working on device /dev/ad0 ******* -- The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 20964762 (10236 Meg), flag 0 -- The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 20964825, size 163573830 (79870 Meg), flag 0 -- The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 184538655, size 20964825 (10236 Meg), flag 80 (active) -- The data for partition 4 is: sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) start 205503480, size 34604010 (16896 Meg), flag 0 This tells me I have 4 slices on the HDD I've booted from, three (1-3) of which are FreeBSD slices and the 4th being a FAT32 one. So the name of my win partition is ad0s4 the mount command will be: mount_msdos /dev/ad0s4 /mnt because I don't want to tape every time all this, i've added in my /etc/fstab the following line: /dev/ad0s4 /vol/it/xp msdosfs ro 0 0 ^ ^ ^ ^ device mount_point type read_only > You guessed it, a newbie here :) The newbee out there should do himself a favor and read the handbook, the FAQ and make extensive use of apropos(1) and man(1) commands. -- IOnut Unregistered ;) FreeBSD user