Date: Mon, 20 Aug 2007 18:52:12 -0400 (EDT) From: Michael S <msherman77@yahoo.com> To: Derek Ragona <derek@computinginnovations.com>, FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Trying to move /usr Message-ID: <613308.67484.qm@web88314.mail.re4.yahoo.com> In-Reply-To: <6.0.0.22.2.20070820160602.0264a8c0@mail.computinginnovations.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <VIAK8M AWRDACPI> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> Features2=0x1<SSE3> AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow+,3DNow> AMD Features2=0x1<LAHF> real memory = 469696512 (447 MB) avail memory = 450179072 (429 MB) ioapic0 <Version 0.3> irqs 0-23 on motherboard acpi0: <VIAK8M AWRDACPI> 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: <ACPI CPU> on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 agp0: <VIA 8380 host to PCI bridge> mem 0xe8000000-0xefffffff at device 0.0 on pci0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) ahc0: <Adaptec 29160N Ultra160 SCSI adapter> 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: <MII bus> on xl0 nsphy0: <DP83840 10/100 media interface> on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:10:4b:31:54:cd atapci0: <VIA 6420 SATA150 controller> port 0xe300-0xe307,0xe400-0xe403,0xe500-0xe507,0xe600-0xe603,0xe700-0xe70f,0xe800-0xe8ff irq 20 at device 15.0 on pci0 ata2: <ATA channel 0> on atapci0 ata3: <ATA channel 1> on atapci0 atapci1: <VIA 8237 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe900-0xe90f at device 15.1 on pci0 ata0: <ATA channel 0> on atapci1 ata1: <ATA channel 1> on atapci1 uhci0: <VIA 83C572 USB controller> port 0xea00-0xea1f irq 21 at device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xeb00-0xeb1f irq 21 at device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xec00-0xec1f irq 21 at device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: <VIA 83C572 USB controller> 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: <VIA 83C572 USB controller> port 0xed00-0xed1f irq 21 at device 16.3 on pci0 uhci3: [GIANT-LOCKED] usb3: <VIA 83C572 USB controller> 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: <VIA VT6202 USB 2.0 controller> 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: <VIA VT6202 USB 2.0 controller> 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: <PCI-ISA bridge> at device 17.0 on pci0 isa0: <ISA bus> on isab0 pci0: <multimedia, audio> at device 17.5 (no driver attached) vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xef00-0xefff mem 0xf6021000-0xf60210ff irq 23 at device 18.0 on pci0 miibus1: <MII bus> on vr0 ukphy0: <Generic IEEE 802.3u media interface> on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:19:db:77:1a:78 fdc0: <floppy drive controller> 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: <Standard parallel printer port> port 0x378-0x37f,0x778-0x77b irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: <Parallel port bus> on ppc0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 plip0: <PLIP network interface> on ppbus0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse Explorer, device ID 4 pmtimer0 on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> 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 <SAMSUNG CD-R/RW SW-408B/BS02> at ata1-master PIO4 da0 at ahc0 bus 0 target 0 lun 0 da0: <QUANTUM FIREBALL SE6.4S PJ0A> 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: <SEAGATE ST173404LW 0004> 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: <QUANTUM ATLAS10K2-TY184L DA40> 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: <SAMSUNG CD-R/RW SW-408B BS02> 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 <derek@computinginnovations.com> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?613308.67484.qm>