From owner-freebsd-questions@FreeBSD.ORG Mon Aug 20 22:52:15 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B79AE16A417 for ; Mon, 20 Aug 2007 22:52:15 +0000 (UTC) (envelope-from msherman77@yahoo.com) Received: from web88314.mail.re4.yahoo.com (web88314.mail.re4.yahoo.com [216.39.53.237]) by mx1.freebsd.org (Postfix) with SMTP id 5628613C4B4 for ; Mon, 20 Aug 2007 22:52:15 +0000 (UTC) (envelope-from msherman77@yahoo.com) Received: (qmail 70914 invoked by uid 60001); 20 Aug 2007 22:52:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=k6rjAgAqHP7W79SdFFRMLgVt/KDB+KG+KTWOmfpCKzWBCWKLBygka/cXR0ZRUz4Ern0CqdVE0Px0uPWuZeXBOkQ1kplhEDj+iV+IbQdh/lEzb00d3QZdlcIGWGADhgCTmY8gS1OVCoeKyDwmneKruDJ108bjB9sohFXRQaDYMOI=; X-YMail-OSG: FBs2kTMVM1kc1CVGfRvh7l_Z4YII2Cc5i6RR3o9U8rEMMtZJfk1Zknyer7u5ORhTwc1vS90P0YIEnN3mYke0zII5mFx_Nak2NYeIn86MB6YjVx3dBwyGU3JM76TEkg-- Received: from [74.107.243.44] by web88314.mail.re4.yahoo.com via HTTP; Mon, 20 Aug 2007 18:52:12 EDT Date: Mon, 20 Aug 2007 18:52:12 -0400 (EDT) From: Michael S To: Derek Ragona , FreeBSD Mailing List In-Reply-To: <6.0.0.22.2.20070820160602.0264a8c0@mail.computinginnovations.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <613308.67484.qm@web88314.mail.re4.yahoo.com> Cc: Subject: Re: Trying to move /usr X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 22:52:15 -0000 I tried the earlier suggested dump/restore: %cd /user %dump -L -f - /usr | restore -r -f - When I log-in over ssh I get: Could not chdir to home directory /home/michael: No such file or directory. Here's my fstab: # Device Mountpoint FStype Options Dump Pass# /dev/da0s1b none swap sw 0 0 /dev/da1s1b none swap sw 0 0 /dev/da0s1a / ufs rw 1 1 /dev/da0s1e /tmp ufs rw 2 2 /dev/da0s1f /user ufs rw 2 2 /dev/da0s1d /var ufs rw 2 2 /dev/da1s1d /home ufs rw 2 2 /dev/da2s1d /usr ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 This reflects the new /usr. Here's my dmesg.boot Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RELEASE-p7 #2: Mon Aug 20 07:20:53 EDT 2007 root@free:/usr/obj/usr/src/sys/MARIMIKE ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Sempron(tm) Processor 3400+ (2009.68-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20fc2 Stepping = 2 Features=0x78bfbff Features2=0x1 AMD Features=0xe2500800 AMD Features2=0x1 real memory = 469696512 (447 MB) avail memory = 450179072 (429 MB) ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe8000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) ahc0: port 0xe000-0xe0ff mem 0xf6022000-0xf6022fff irq 16 at device 8.0 on pci0 ahc0: [GIANT-LOCKED] aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs xl0: <3Com 3c905-TX Fast Etherlink XL> port 0xe200-0xe23f irq 17 at device 9.0 on pci0 miibus0: on xl0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:10:4b:31:54:cd atapci0: port 0xe300-0xe307,0xe400-0xe403,0xe500-0xe507,0xe600-0xe603,0xe700-0xe70f,0xe800-0xe8ff irq 20 at device 15.0 on pci0 ata2: on atapci0 ata3: on atapci0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe900-0xe90f at device 15.1 on pci0 ata0: on atapci1 ata1: on atapci1 uhci0: port 0xea00-0xea1f irq 21 at device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xeb00-0xeb1f irq 21 at device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xec00-0xec1f irq 21 at device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xed00-0xed1f irq 21 at device 16.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xf6020000-0xf60200ff irq 21 at device 16.4 on pci0 ehci0: [GIANT-LOCKED] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered isab0: at device 17.0 on pci0 isa0: on isab0 pci0: at device 17.5 (no driver attached) vr0: port 0xef00-0xefff mem 0xf6021000-0xf60210ff irq 23 at device 18.0 on pci0 miibus1: on vr0 ukphy0: on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:19:db:77:1a:78 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 plip0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse Explorer, device ID 4 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2009681670 Hz quality 800 Timecounters tick every 1.000 msec Waiting 5 seconds for SCSI devices to settle acd0: CDRW at ata1-master PIO4 da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 20.000MB/s transfers (20.000MHz, offset 15), Tagged Queueing Enabled da0: 6149MB (12594960 512 byte sectors: 255H 63S/T 784C) da1 at ahc0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled da1: 70007MB (143374650 512 byte sectors: 255H 63S/T 8924C) da2 at ahc0 bus 0 target 8 lun 0 da2: Fixed Direct Access SCSI-3 device da2: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da2: 17366MB (35566478 512 byte sectors: 255H 63S/T 2213C) cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/da0s1a IP Filter: v4.1.13 initialized. Default = pass all, Logging = enabled xl0: link state changed to UP Thanks again for your help --- Derek Ragona wrote: > At 12:37 PM 8/20/2007, Michael S wrote: > >I reverted to the old /usr. > >What I had done: > >Initially I set up the newly installed drive (da2) > >to have only one partition (da2s1d) which I chose > to > >be /user (note the e). > >I tarred /usr to a file in /user > >tar -cf /user/usr.tar /tar > > > >and extracted the file > >tar -xf usr.tar > >I had the whole structure of /usr underneath > /user/usr > > > >And then > >cd usr > >mv * .. > > > >to have everything under /user > > > >Then I edited fstab. Whatever was /user became /usr > >and /usr became /user. > > > >I will definitely try dump. Never used it before. > > > >Thanks a lot, > >Michael > > Michael, > > To use tar properly for this operation: > cd /usr > tar -cvf /user/usr.tar . > cd /user > tar -xvpf ./usr.tar > > Then you can switch the mount points and all should > work. > > -Derek > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > MailScanner thanks transtec Computers for their > support. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >