From owner-freebsd-questions Fri May 11 7:34:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from informatix.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 3F2A337B423 for ; Fri, 11 May 2001 07:34:39 -0700 (PDT) (envelope-from so@informatix.i-clue.de) Received: (from so@localhost) by informatix.i-clue.de (8.11.3/8.11.3) id f4BEZUN17766; Fri, 11 May 2001 16:35:30 +0200 (CEST) (envelope-from so) Content-Type: text/plain; charset="iso-8859-1" From: Christoph Sold Organization: i-clue GmbH To: sam , freebsd-questions@FreeBSD.ORG Subject: Re: mount da0 da1 is it an illusion? Date: Fri, 11 May 2001 16:35:30 +0200 X-Mailer: KMail [version 1.2] References: <200105111234.f4BCYsG06204@newgate.miami.home> In-Reply-To: <200105111234.f4BCYsG06204@newgate.miami.home> MIME-Version: 1.0 Message-Id: <01051116353003.17691@informatix.i-clue.de> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Well, Indeed it's confusing. But it's simple, if you think about it. You did once format the second disk as a FreeBSD disk, along with all the gory details. Then, it was mounted as first (da0) disk. Thus, the disklabels from the disk still read da0sXx. The disklabel gets the information at label time, it stays the same no matter what. Thus, after remounting the disk on da1, the disklabel does not change. HTH -Christoph Sold On Friday 11 May 2001 15:36, sam wrote: > I am so confused. > > The machine has 2 identical SCSI drives: size, manufacturer, what on > them I'm not sure anymore. > # df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/da0s1a 99183 27958 63291 31% / > /dev/da0s1g 7203658 40912 6586454 1% /home > /dev/da0s1f 992239 690397 222463 76% /usr > /dev/da0s1e 127023 1804 115058 2% /var > procfs 4 4 0 100% /proc > > I thought I was mounting the second drive by doing: > > # mount da1s1 /BU > # cd /BU > # ls -l > drwxr-xr-x 15 root wheel 2048 May 4 13:16 etc > drwxr-xr-x 5 root wheel 512 May 11 05:35 home > > BUT the second drive was once partitioned the same as the boot drive so > the copied files are just going to "/" on the second drive in a small > partition. > #df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/da0s1a 99183 27958 63291 31% / > /dev/da0s1g 7203658 40912 6586454 1% /home > /dev/da0s1f 992239 690397 222463 76% /usr > /dev/da0s1e 127023 1804 115058 2% /var > procfs 4 4 0 100% /proc > /dev/da1s1 99183 43280 47969 47% /BU > > See, it's half full and /BU is the same size as /. > > #Now it's start getting more interesting. > > So I thought, "how nice, I can mount all the partitions on da1 and copy > the same file systems." Like: > /dev/da1s1a /BU > /dev/da1s1g /BUhome > And so on. > > But there was no /dev/da1s1a. So being braver than smart, I don't read > about MAKEDEV and do: > # MAKEDEV da1s1a. > > I got lost but it appears to have made da1s1a - da1s1h? > > BUT then it got really scary. > > # mount /dev/da1s1a /BU > # cd /BU > # ls -l > -rw-r--r-- 2 root wheel 658 Nov 20 07:03 .cshrc > -rw-r--r-- 2 root wheel 251 Nov 20 07:03 .profile > -r--r--r-- 1 root wheel 4735 Nov 20 07:03 COPYRIGHT > drwxr-xr-x 2 root wheel 1024 Mar 12 10:51 bin > drwxr-xr-x 3 root wheel 512 Mar 12 10:52 boot > drwxr-xr-x 2 root wheel 512 Mar 12 10:48 cdrom > lrwxr-xr-x 1 root wheel 11 Mar 12 10:52 compat -> /usr/compat > drwxr-xr-x 3 root wheel 13824 Mar 12 15:57 dev > drwxr-xr-x 2 root wheel 512 Mar 12 10:48 dist > drwxr-xr-x 15 root wheel 2048 Mar 15 11:03 etc > drwxr-xr-x 2 root wheel 512 Mar 12 10:48 home > -r-xr-xr-x 1 root wheel 3258128 Nov 20 08:02 kernel > -r-xr-xr-x 1 root wheel 3258128 Nov 20 08:02 kernel.GENERIC > drwxr-xr-x 2 root wheel 512 Nov 20 06:56 mnt > drwxr-xr-x 2 root wheel 2560 Mar 12 10:48 modules > dr-xr-xr-x 2 root wheel 512 Nov 20 06:56 proc > drwxr-xr-x 2 root wheel 512 Mar 12 10:48 root > drwxr-xr-x 2 root wheel 2048 Mar 12 10:51 sbin > drwxr-xr-x 4 root wheel 1024 Mar 12 10:48 stand > lrwxrwxrwx 1 root wheel 11 Mar 12 10:49 sys -> usr/src/sys > drwxrwxrwt 2 root wheel 512 Mar 15 11:04 tmp > drwxr-xr-x 2 root wheel 512 Mar 12 10:48 usr > drwxr-xr-x 2 root wheel 512 Mar 12 10:48 var > > What the hell is that. I almost did: > # cd /BU > # rm -R * > > Thinking I was looking at some old installation on the second disk. > > It's an illusion. It must be the way I did MAKEDEV right? da0s1a and > da1s1a are the same thing??? > > If you're still with me. I think I need to reformat the second disk. But > I'm not sure what's real and what's an illusion. > > Look at the line below labeled "disk:" after disklabel -r for both da0 > and da1: > > ns1[/]# disklabel -r da0s1 > # /dev/da0s1c: > type: SCSI > disk: da0s1 > > ns1[/]# disklabel -r da1s1 > # /dev/da1s1c: > type: SCSI > disk: da0s1 > > Obviously I am clueless. I'll go google and man for few hours now. > > Please, if anyone can shed some light. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message