System stops because /var/log not found after moving to new partition
Hi !
I have a Red Hat 8.0 on a intel 2.4 machine with 512 MB .
I have kernel 2.4.20-30.8-legacy & 2.4.20-30.8-legacy bigmem.
I used to have all my directories /var , /tmp , /usr , /home under one partition / .
Thanks to everybody , now I was able to re-partition my drive into extended drives (drives < 4) and move my /var , /tmp into hda5 & ,my /usr , /home into /hda6 .
Bu I am facing one problem.
When I boot my system logger does not see the /var/log which has been moved to the new location .
The system just hangs .
When I boot in single mode by passing an argument to my kernel that does show in the dmesg in the new location .
In addtion when I run a command like 'clear ' it shows that it could not find the library to run it .
I have mounted hda5 & hda6 in my fstab .
I did create soft link for my new var , new tmp & new usr to the the /var , /tmp , /usr as ffs :-
ln -s /mnt/hda5/var /var
ln -s /mnt/hda5/tmp /tmp
ln -s /mnt/hda6/usr /usr
I moved the old files using the ff commands:-
cd source directory
cp -ax * /mnt/usr5/var
or
cd /src/dir ; tar cf - . | (cd /dest/dir && tar xvf - )
But still it does not work .
Please find attached the dmesg & library error and fstab.
Please advice.
Thank you for your help in advance.
bj
Linux version 2.4.20-30.8.legacy ([email protected]) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Fri Feb 20 17:47:48 PST 2004 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Kernel command line: ro root=LABEL=/ hdb=ide-scsiide_setup: hdb=ide-scsi
Initializing CPU#0
Detected 2393.991 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 4771.02 BogoMIPS
Memory: 511512k/524224k available (1340k kernel code, 10148k reserved, 999k data, 128k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: bfebfbff 00000000 00000000 00000000 CPU: Common caps: bfebfbff 00000000 00000000 00000000 CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 07
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch ([email protected])
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb270, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router VIA [1106/3177] at 00:11.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16)
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled ttyS0 at 0x03f8 (irq = 4) is a 16550A
ttyS1 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta3-.2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xxVP_IDE: IDE controller at PCI slot 00:11.1VP_IDE: chipset revision 6VP_IDE: not 100% native mode: will probe irqs laterVP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:pio, hdd:DMAhda: ST360020A, ATA DISK drive
hdb: SONY CD-RW CRX1611, ATAPI CD/DVD-ROM drive
blk: queue c03a6260, I/O limit 4095Mb (mask 0xffffffff)
hdd: ST380011A, ATA DISK drive
blk: queue c03a6808, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 117231408 sectors (60022 MB) w/2048KiB Cache, CHS=7297/255/63, UDMA(100)
hdd: attached ide-disk driver.
hdd: host protected area => 1
hdd: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, UDMA(100) ide-floppy driver 0.99.newide
Partition check:
hda:hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
blk: queue c03a6260, I/O limit 4095Mb (mask 0xffffffff)
hdb: DMA disabled
ide0: reset: success
hda1 hda2 hda3 hda4 < hda5 hda6 >
hdd: hdd1 hdd2 < hdd5 >
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 126k freed
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 128k freedusb.c: registered new driver usbdevfsusb.c: registered new driver hub
PCI: Found IRQ 11 for device 00:10.3
PCI: Sharing IRQ 11 with 00:0c.0
ehci-hcd 00:10.3: VIA Technologies, Inc. USB 2.0
ehci-hcd 00:10.3: irq 11, pci mem e0849000usb.c: new USB bus registered, assigned bus number 1
PCI: 00:10.3 PCI cache line size set incorrectly (32 bytes) by BIOS/FW.
PCI: 00:10.3 PCI cache line size corrected to 128.
ehci-hcd 00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Jan-22 hub.c: USB hub foundhub.c: 6 ports detectedusb.c: registered new driver hiddevusb.c: registered new driver hidhid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <[email protected]> hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all micehub.c: new USB device 00:10.3-1, assigned address 2usb.c: USB device 2 (vend/prod 0x8ec/0x12) is not claimed by any active driver. EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal Adding Swap: 1052248k swap-space (priority -1)
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
ide0: reset: success
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Kingston Model: DataTraveler2.0 Rev: 4.80
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
hdb: attached ide-scsi driver.
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SONY Model: CD-RW CRX1611 Rev: TYS3
Type: CD-ROM ANSI SCSI revision: 02
LABEL=/ / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 /dev/hda5 /mnt/hda5 ext3 defaults 1 2 /dev/hda6 /mnt/hda6 ext3 defaults 1 3 none /dev/shm tmpfs defaults 0 0 /dev/hda3 swap swap defaults 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 /dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/mnt/hda6/usr/bin/clear: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Ray Olszewski
Sent: Sunday, February 27, 2005 8:44 AM
To: [email protected]
Subject: Re: System stops because /var/log not found after moving to new partition
Quoted 4 lines · bj
Hi !
I have a Red Hat 8.0 on a intel 2.4 machine with 512 MB .
Quoted 8 lines
I have kernel 2.4.20-30.8-legacy & 2.4.20-30.8-legacy bigmem.
I used to have all my directories /var , /tmp , /usr , /home under one partition / .
Thanks to everybody , now I was able to re-partition my drive into extended drives (drives < 4) and move my /var , /tmp into hda5 & ,my /usr , /home into /hda6 .
For future reference, it is a lot easier to associate partitions with a single top-level directory than with multiple ones, as you have chosen to to. For example, if I assign a partition to /home, I can just mount it there in fstab, without needing to use the symlink indirection you use:
/dev/hda4 /home ext2 defaults 0
2
Quoted 6 lines
Bu I am facing one problem.
When I boot my system logger does not see the
/var/logwhich has been moved to the new location .The system just hangs .
At what point does it "just" hang? What is the last message on screen? And how long do you wait ... are you sure it is a true hang and not a problem that times out after, say, 3 minutes?
Quoted 5 lines
When I boot in single mode by passing an argument to my kernel that does show in the dmesg in the new location .
In addtion when I run a command like 'clear ' it shows that it could not find the library to run it .
Where does your system have libncurses.so.5 (the "missing" library)? On my systems,it is always in /lib, a hard place to lose.
Quoted 3 lines
I have mounted hda5 & hda6 in my fstab .
I did create soft link for my new var , new tmp & new usr to the the /var
,
Quoted 6 lines
/tmp , /usr as ffs :-
ln -s
/mnt/hda5/var/var
ln -s/mnt/hda5/tmp/tmpln -s
/mnt/hda6/usr/usr
This should all work fine, assuming the symlinks are created immediately after the partitiions are mounted during the init process.
Quoted 8 lines
I moved the old files using the ff commands:-
cd source directory
cp -ax *
/mnt/usr5/varor
Quoted 8 lines
cd /src/dir ; tar cf - . | (cd /dest/dir && tar xvf - )
But still it does not work .
Please find attached the dmesg & library error and fstab.
I assume the dmesg example is from the single-user boot, not the one that "just hangs". So it doesn't tell us what is up with the hang. Next time, please also include the output of ...
ls -l /
df... and if you are reporting the results of two different boot/init sequences (single user and multiuser) please be VERY VERY clear about which attempt each result goes with.
Quoted 11 lines
Please advice.
Thank you for your help in advance.
bj
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Hi!
Thank you for the prompt reply .
Since I have Red Hat 8 , I had downloaded and installed (configure;make;make install) the latest stable qt-x11-free-3.3.4 from the /home directory which I moved .
My understanding was that wherever I downloaded the library will be still be installed under /lib .
My /lib is where it was from the beginning . I have not moved it .
The system hangs means , the boot process shows "Starting system logger " then just stays there because it could not find the new /var that has been moved to /mnt/hda5/var .
The boot process also gives messages such as :-
/etc/rc.d/rc.sysinit:line 596:/var/run/utmp : no such file or directory
/etc/rc.d/sysinit:line 744: /var/log/dmesg:no such file or directory
touch:creating 'var/lock/subsys/keytable" no such file
Hence , it does not find the moved var .
Please find attached the df & ls -l listings :-
ls
total 196
drwxr-xr-x 3 root root 4096 Feb 13 10:14 applications drwxr-xr-x 5 root root 4096 Feb 8 10:01 backup drwxr-xr-x 2 root root 4096 Feb 5 04:15 bin drwxr-xr-x 3 root root 4096 Feb 25 10:49 boot drwxr-xr-x 21 root root 118784 Feb 26 23:00 dev drwxr-xr-x 70 root root 8192 Feb 26 23:01 etc drwxr-xr-x 2 root root 4096 Jun 21 2001 initrd drwxr-xr-x 6 root root 4096 Feb 4 22:49 lib drwx------ 2 root root 16384 Jun 26 2004 lost+found drwxr-xr-x 2 root root 4096 Aug 27 2002 misc drwxr-xr-x 8 root root 4096 Feb 26 08:44 mnt drwxr-xr-x 2 root root 4096 Aug 23 1999 opt -rw-r--r-- 1 root root 0 Feb 26 22:32 other dr-xr-xr-x 33 root root 0 Feb 26 18:00 proc drwxr-x--- 31 root root 4096 Feb 25 10:52 root drwxr-xr-x 2 root root 8192 Feb 4 23:04 sbin drwxr-xr-x 3 root root 4096 Feb 5 04:10 tftpboot
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 4134932 410416 3514468 11% / /dev/hda5 10056868 284348 9261656 3% /mnt/hda5
/dev/hda6 19765692 4879948 13881684 27% /mnt/hda6
none 256972 0 256972 0% /dev/shm/dev/sda1 1025840 535856 489984 53% /mnt/usb
Thanks,
bj
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 14 lines · bj
Hi !
I have a Red Hat 8.0 on a intel 2.4 machine with 512 MB .
I have kernel 2.4.20-30.8-legacy & 2.4.20-30.8-legacy bigmem.
I used to have all my directories /var , /tmp , /usr , /home under one partition / .
Thanks to everybody , now I was able to re-partition my drive into extended drives (drives < 4) and move my /var , /tmp into hda5 & ,my /usr , /home into /hda6 .
Quoted 6 lines
Bu I am facing one problem.
When I boot my system logger does not see the
/var/logwhich has been moved to the new location .The system just hangs .
It should not really hang, though it might wait 3 minutes or so to revoder (a typical timeout for this sort of problem, but I'm just guessing at the value).
In any case, you do have a problem, and it is that your /etc/fstab does not contain entries to mount the other partitions. The file you attached only has an entry for the root filesystem:
LABEL=/ / ext3 defaults 1 1
none /dev/pts
You need a series of entries for the other partitions. I don't have such a system running here, so I can only give you an approximate illustration of what you need, not a working example. On one of my systems --
/dev/hda4 /home ext2 defaults 0 2
-- mounts a separate partition at /home . You need similar entries for all your partitions. But if I read your description correctly, you have a different problem too ... you tried to put 2 top-level directories into a single partition.
You can do that, but doing it is a bit icky. What you need to do is something like this (I'll use /usr and /home in the example). In fstab, put
/dev/hda5 /custom1 ext3 defaults 0 2
Then create 2 symlinks:
ln -s /custom1/home /home
ln -s /custom1/usr /usr
Oh, you will of course have o create the mount point /custom1 as well.
Quoted 5 lines
When I boot in single mode by passing an argument to my kernel that does show in the dmesg in the new location .
In addtion when I run a command like 'clear ' it shows that it could not find the library to run it .
I doubt it, at least for the actual example (I don't know what commends you think are "like" clear, so I can't generalize from your instance).
What you probably get is a message like this:
autovcr@kuryakin:~$ clear -bash: clear: command not found
That's because the clear command is itself in /usr/bin, and your system is having trouble finding that directory. (clear only uses libraries that are normally in /lib, not ones in /usr/lib, so I doubt you are seeing clear unable to find libc6 or libncurses.)
Quoted 1 line
I have mounted hda5 & hda6 in my fstab .
Not the one you attached to your message.
Quoted 5 lines
I did create soft link for my new var , new tmp & new usr to the the /var , /tmp , /usr as ffs :-
ln -s
/mnt/hda5/var/var
ln -s/mnt/hda5/tmp/tmp
This should serve; it is similar o my sugestion above.
Quoted 1 line
ln -s
/mnt/hda6/usr/usr
This too.
Quoted 17 lines
I moved the old files using the ff commands:-
cd source directory
cp -ax *
/mnt/usr5/varor
cd /src/dir ; tar cf - . | (cd /dest/dir && tar xvf - )
But still it does not work .
Quoted 13 lines
Please find attached the dmesg & library error and fstab.
Please advice.
Thank you for your help in advance.
bj
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 4 lines · bj
Hi !
I have a Red Hat 8.0 on a intel 2.4 machine with 512 MB .
Quoted 8 lines
I have kernel 2.4.20-30.8-legacy & 2.4.20-30.8-legacy bigmem.
I used to have all my directories /var , /tmp , /usr , /home under one partition / .
Thanks to everybody , now I was able to re-partition my drive into extended drives (drives < 4) and move my /var , /tmp into hda5 & ,my /usr , /home into /hda6 .
For future reference, it is a lot easier to associate partitions with a single top-level directory than with multiple ones, as you have chosen to to. For example, if I assign a partition to /home, I can just mount it there in fstab, without needing to use the symlink indirection you use:
/dev/hda4 /home ext2 defaults 0
2
Quoted 6 lines
Bu I am facing one problem.
When I boot my system logger does not see the
/var/logwhich has been moved to the new location .The system just hangs .
At what point does it "just" hang? What is the last message on screen? And how long do you wait ... are you sure it is a true hang and not a problem that times out after, say, 3 minutes?
Quoted 5 lines
When I boot in single mode by passing an argument to my kernel that does show in the dmesg in the new location .
In addtion when I run a command like 'clear ' it shows that it could not find the library to run it .
Where does your system have libncurses.so.5 (the "missing" library)? On my systems,it is always in /lib, a hard place to lose.
Quoted 9 lines
I have mounted hda5 & hda6 in my fstab .
I did create soft link for my new var , new tmp & new usr to the the /var , /tmp , /usr as ffs :-
ln -s
/mnt/hda5/var/var
ln -s/mnt/hda5/tmp/tmpln -s
/mnt/hda6/usr/usr
This should all work fine, assuming the symlinks are created immediately after the partitiions are mounted during the init process.
Quoted 8 lines
I moved the old files using the ff commands:-
cd source directory
cp -ax *
/mnt/usr5/varor
Quoted 8 lines
cd /src/dir ; tar cf - . | (cd /dest/dir && tar xvf - )
But still it does not work .
Please find attached the dmesg & library error and fstab.
I assume the dmesg example is from the single-user boot, not the one that "just hangs". So it doesn't tell us what is up with the hang. Next time, please also include the output of ...
ls -l /
df... and if you are reporting the results of two different boot/init sequences (single user and multiuser) please be VERY VERY clear about which attempt each result goes with.
Quoted 11 lines
Please advice.
Thank you for your help in advance.
bj
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Ray Olszewski
Sent: Sunday, February 27, 2005 8:44 AM
To: [email protected]
Subject: Re: System stops because /var/log not found after moving to new partition
Quoted 4 lines · bj
Hi !
I have a Red Hat 8.0 on a intel 2.4 machine with 512 MB .
Quoted 8 lines
I have kernel 2.4.20-30.8-legacy & 2.4.20-30.8-legacy bigmem.
I used to have all my directories /var , /tmp , /usr , /home under one partition / .
Thanks to everybody , now I was able to re-partition my drive into extended drives (drives < 4) and move my /var , /tmp into hda5 & ,my /usr , /home into /hda6 .
For future reference, it is a lot easier to associate partitions with a single top-level directory than with multiple ones, as you have chosen to to. For example, if I assign a partition to /home, I can just mount it there in fstab, without needing to use the symlink indirection you use:
/dev/hda4 /home ext2 defaults 0
2
Quoted 6 lines
Bu I am facing one problem.
When I boot my system logger does not see the
/var/logwhich has been moved to the new location .The system just hangs .
At what point does it "just" hang? What is the last message on screen? And how long do you wait ... are you sure it is a true hang and not a problem that times out after, say, 3 minutes?
Quoted 5 lines
When I boot in single mode by passing an argument to my kernel that does show in the dmesg in the new location .
In addtion when I run a command like 'clear ' it shows that it could not find the library to run it .
Where does your system have libncurses.so.5 (the "missing" library)? On my systems,it is always in /lib, a hard place to lose.
Quoted 3 lines
I have mounted hda5 & hda6 in my fstab .
I did create soft link for my new var , new tmp & new usr to the the /var
,
Quoted 6 lines
/tmp , /usr as ffs :-
ln -s
/mnt/hda5/var/var
ln -s/mnt/hda5/tmp/tmpln -s
/mnt/hda6/usr/usr
This should all work fine, assuming the symlinks are created immediately after the partitiions are mounted during the init process.
Quoted 8 lines
I moved the old files using the ff commands:-
cd source directory
cp -ax *
/mnt/usr5/varor
Quoted 8 lines
cd /src/dir ; tar cf - . | (cd /dest/dir && tar xvf - )
But still it does not work .
Please find attached the dmesg & library error and fstab.
I assume the dmesg example is from the single-user boot, not the one that "just hangs". So it doesn't tell us what is up with the hang. Next time, please also include the output of ...
ls -l /
df... and if you are reporting the results of two different boot/init sequences (single user and multiuser) please be VERY VERY clear about which attempt each result goes with.
Quoted 5 lines
Please advice.
Thank you for your help in advance.
bj
Hi Ray !
Thank you for the prompt reply.
80 % of the solution worked .
1. I did mount hda5 & hda6 as below .
2. After I keyed in the symbolic links as below my commands could find the lib .
3 But the sym link to /var did n't work & once I reboot , the system created a /var by itself .The system created /var is mostly empty . If I delete that auto created /var , and reboot , it creates the /var again . The contents I have listed below .
4. yes , the system stopped for 5 minutes looking to start the system logger . After it could not find it , the boot process move forward and the normal login prompt did come( not single user but multi user login prompt ) . So you were right , the system didn't hang but just stopped for 5 minutes trying to start the system logger .
.
I did mount hda5 & hda6 in the fstab .
Cat /etc/fstab gives the ff
LABEL=/ / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 /dev/hda5 /mnt/hda5 ext3 defaults 1 2 /dev/hda6 /mnt/hda6 ext3 defaults 1 3 none /dev/shm tmpfs defaults 0 0 /dev/hda3 swap swap defaults 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0
0/dev/cdrom /mnt/cdrom iso9660
noauto,owner,kudzu,ro 0 0
The symbolic link also worked . After I keyed in the ff :-
cd /
ln -s /mnt/hda5/var
ln -s /mnt/hda5/tmp
ln -s /mnt/hda6/usr
ln -s /mnt/hda6/home
Once I cd / and give the four link (ln ) commands three work . The result running file command on the links :-
usr: symbolic link to /mnt/hda6/usr
tmp: symbolic link to /mnt/hda5/tmp
But the link to var didn't .
It gives no error message. But when I type reboot , it shows that it could not find a file shutdown.pid under /var .
Once I reboot , it gives quite few error messages that shows that it could
not still find /var.
It does stop around 5 minutes trying to start the system logger & after 5 minutes , it keep boots successfully.
After I log in I notice a /var directory has been created . This /var has been created auto , as I didn't create it .
The system is auto creating this directory & removing the sym link ,and so it does not find the other needed files in /var.
Why do you think this is happening ?
In addition I would also like to have the command to mount a partition read only such as /usr on a readonly partition.
Cheers,
bj
When I do ls -lR on the auto created /var , it gives out the ff contents :-
var:
total 4
drwxr-xr-x 3 root root 4096 Feb 27 09:28 lib
var/lib:
total 8
-rw------- 1 root root 512 Feb 27 09:28 random-seed drwxr-xr-x 2 root root 4096 Feb 27 09:22 rpm
var/lib/rpm:
total 308
-rw-r--r-- 1 root root 8192 Feb 27 09:22 __db.001 -rw-r--r-- 1 root root 1310720 Feb 27 09:22 __db.002 -rw-r--r-- 1 root root 360448 Feb 27 09:22 __db.003 -rw-r--r-- 1 root root 12288 Feb 27 09:22 Name -rw-r--r-- 1 root root 12288 Feb 27 09:22 Packages
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Hi
Maybe you could try not to use symlinks for those folders. Keep them as real folders and use 'mount --bind /var /mnt/hda5/var' instead right after hda5 is mounted. Make similar commands for the other folders and partitions.
I'm not sure it will work, but it is worth the shot.
Good luck!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
At 10:12 AM 2/27/2005 +0545, bj wrote:
[...]
Quoted 7 lines
Hi Ray !
Thank you for the prompt reply.
80 % of the solution worked .
1. I did mount hda5 & hda6 as below .
That looks good. But I still wish you had done what I asked and provided the output of df.
Quoted 2 lines
2. After I keyed in the symbolic links as below my commands could find the lib .
I am still puzzled as to why this fix solves the library problem. I wish you had answered my earlier question about where the ncurses5 library is kept on your system.
Quoted 4 lines
3 But the sym link to /var did n't work & once I reboot , the system created a /var by itself .The system created /var is mostly empty . If I delete that auto created /var , and reboot , it creates the /var again . The contents I have listed below .
The commands you transcribed below are incomplete and should not work. Not any of them. I asked you to provide the output of "ls -l /" this time around, and you did not. Please do so, along with a correct transcription of the commands you are using to create the symlinks.
Quoted 19 lines
4. yes , the system stopped for 5 minutes looking to start the system logger . After it could not find it , the boot process move forward and the normal login prompt did come( not single user but multi user login prompt ) . So you were right , the system didn't hang but just stopped for 5 minutes trying to start the system logger .
.I did mount hda5 & hda6 in the fstab .
Cat
/etc/fstabgives the ffLABEL=/ / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 /dev/hda5 /mnt/hda5 ext3 defaults 1 2 /dev/hda6 /mnt/hda6 ext3 defaults 1 3 none /dev/shm tmpfs defaults 0 0 /dev/hda3 swap swap defaults 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0
Quoted 3 lines
0
/dev/cdrom/mnt/cdromiso9660
noauto,owner,kudzu,ro 0 0
What does "ff" mean? You use it several times.
Quoted 8 lines
The symbolic link also worked . After I keyed in the ff :-
cd /
ln -s/mnt/hda5/var
ln -s/mnt/hda5/tmp
ln -s/mnt/hda6/usr
ln -s/mnt/hda6/home
As I wrote above, these are incomplete. They should be of the form
ln -s /mnt/hda6/usr /usr
It is possible that your current problem arises from nothing more than your entering 3 of the commands correctly and the fourth (the one for /var) incorrectly.
Or you may have entered them too late ... after syslogd has started.
Or you may have removed the actual /usr, /tmp, and /home directories, allowing ln -s to recreate them as symlinks ... but forgotten to remove /var (this *might* be what you mean by "has been created auto" below), which would cause even a correct symlink command to fail.
Or some other init script may be doing something (for example, noticing that /var is absent and creating it) that interferes with your symlink approach.
Or maybe something else. It's hard to say without more detail.
Please, next time, provide the diagnostics I ask for, instead of (or in addition to) the ones you think are interesting.
Quoted 2 lines
Once I cd / and give the four link (ln ) commands three work . The result running file command on the links :-
I don't know what this sentence means, specifically the phrase "running file command on the links :-".
Quoted 11 lines
usr: symbolic link to
/mnt/hda6/usrtmp: symbolic link to
/mnt/hda5/tmpBut the link to var didn't .
It gives no error message. But when I type reboot , it shows that it could not find a file shutdown.pid under /var .
Once I reboot , it gives quite few error messages that shows that it could
not still find /var.
I assume we are talking about a normal multi-user boot/init here (another thing you may recall my asking you to be specific about in my prior response). In any case, it is impossible to interpret these messages when you tell us neither what they say or when in the boot/init process they appear. For example, are the messages really about /var, or might they be about /var/log ?
Quoted 6 lines
It does stop around 5 minutes trying to start the system logger & after 5 minutes , it keep boots successfully.
After I log in I notice a /var directory has been created . This /var has been created auto , as I didn't create it .
Quoted 7 lines
The system is auto creating this directory & removing the sym link ,and so it does not find the other needed files in /var.
Why do you think this is happening ?
In addition I would also like to have the command to mount a partition read only such as /usr on a readonly partition.
mount -o remount,ro /dev/whateveritis /usr
is one way. Read the man page for mount for the details.
But remember that in your setup, your /usr directory is *not* its own partition (which is why I used the "somethingorother" above, lacking a real example from your system).
Quoted 17 lines
Cheers,
bjWhen I do ls -lR on the auto created /var , it gives out the ff contents :-
var:
total 4
drwxr-xr-x 3 root root 4096 Feb 27 09:28 libvar/lib:
total 8-rw------- 1 root root 512 Feb 27 09:28 random-seed drwxr-xr-x 2 root root 4096 Feb 27 09:22 rpmvar/lib/rpm:
total 308
Review
Quoted 5 lines
(quoted diff) +0
-5-rw-r--r-- 1 root root 8192 Feb 27 09:22 __db.001 -rw-r--r-- 1 root root 1310720 Feb 27 09:22 __db.002 -rw-r--r-- 1 root root 360448 Feb 27 09:22 __db.003 -rw-r--r-- 1 root root 12288 Feb 27 09:22 Name -rw-r--r-- 1 root root 12288 Feb 27 09:22 Packages
OK. As I aked before, I want to see the output of ...
ls -l /
df
find / -name libncurses* (I didn't give the actual
command before; I
just asked where libncurses5 was
located)
... and all actual error messages (not summaries or paraphrases) that you see.
Also, please provide the output of
ls -l /mnt/hda5
ls -l /mnt/hda6-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Ray Olszewski
Sent: Sunday, February 27, 2005 10:28 PM
To: [email protected]
Subject: RE: System stops because /var/log not found after moving to new partition
At 10:12 AM 2/27/2005 +0545, bj wrote:
[...]
Quoted 7 lines
Hi Ray !
Thank you for the prompt reply.
80 % of the solution worked .
1. I did mount hda5 & hda6 as below .
That looks good. But I still wish you had done what I asked and provided the output of df.
Quoted 2 lines
2. After I keyed in the symbolic links as below my commands could find the lib .
I am still puzzled as to why this fix solves the library problem. I wish you had answered my earlier question about where the ncurses5 library is kept on your system.
Quoted 1 line
3 But the sym link to /var did n't work & once I reboot , the system
created
Quoted 1 line
a /var by itself .The system created /var is mostly empty . If I delete
that
Quoted 1 line
auto created /var , and reboot , it creates the /var again . The contents
I
Quoted 1 line
have listed below .
The commands you transcribed below are incomplete and should not work. Not any of them. I asked you to provide the output of "ls -l /" this time around, and you did not. Please do so, along with a correct transcription of the commands you are using to create the symlinks.
Quoted 1 line
4. yes , the system stopped for 5 minutes looking to start the system
logger
Quoted 13 lines
. After it could not find it , the boot process move forward and the normal login prompt did come( not single user but multi user login prompt ) . So you were right , the system didn't hang but just stopped for 5 minutes trying to start the system logger .
.I did mount hda5 & hda6 in the fstab .
Cat
/etc/fstabgives the ffLABEL=/ / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0
Quoted 7 lines
/dev/hda5/mnt/hda5ext3
defaults 1 2/dev/hda6/mnt/hda6ext3
defaults 1 3none /dev/shm tmpfs defaults 0 0 /dev/hda3 swap swap defaults 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu
0
Quoted 3 lines
0
/dev/cdrom/mnt/cdromiso9660
noauto,owner,kudzu,ro 0 0
What does "ff" mean? You use it several times.
Quoted 8 lines
The symbolic link also worked . After I keyed in the ff :-
cd /
ln -s/mnt/hda5/var
ln -s/mnt/hda5/tmp
ln -s/mnt/hda6/usr
ln -s/mnt/hda6/home
As I wrote above, these are incomplete. They should be of the form
ln -s /mnt/hda6/usr /usr
It is possible that your current problem arises from nothing more than your entering 3 of the commands correctly and the fourth (the one for /var) incorrectly.
Or you may have entered them too late ... after syslogd has started.
Or you may have removed the actual /usr, /tmp, and /home directories, allowing ln -s to recreate them as symlinks ... but forgotten to remove /var (this *might* be what you mean by "has been created auto" below), which would cause even a correct symlink command to fail.
Or some other init script may be doing something (for example, noticing that /var is absent and creating it) that interferes with your symlink approach.
Or maybe something else. It's hard to say without more detail.
Please, next time, provide the diagnostics I ask for, instead of (or in addition to) the ones you think are interesting.
Quoted 2 lines
Once I cd / and give the four link (ln ) commands three work . The result running file command on the links :-
I don't know what this sentence means, specifically the phrase "running file command on the links :-".
Quoted 10 lines
usr: symbolic link to
/mnt/hda6/usrtmp: symbolic link to
/mnt/hda5/tmpBut the link to var didn't .
It gives no error message. But when I type reboot , it shows that it could not find a file shutdown.pid under /var .
Once I reboot , it gives quite few error messages that shows that it
could
Quoted 1 line
not still find /var.
I assume we are talking about a normal multi-user boot/init here (another thing you may recall my asking you to be specific about in my prior response). In any case, it is impossible to interpret these messages when you tell us neither what they say or when in the boot/init process they appear. For example, are the messages really about /var, or might they be about /var/log ?
Quoted 6 lines
It does stop around 5 minutes trying to start the system logger & after 5 minutes , it keep boots successfully.
After I log in I notice a /var directory has been created . This /var has been created auto , as I didn't create it .
Quoted 7 lines
The system is auto creating this directory & removing the sym link ,and so it does not find the other needed files in /var.
Why do you think this is happening ?
In addition I would also like to have the command to mount a partition read only such as /usr on a readonly partition.
mount -o remount,ro /dev/whateveritis /usr
is one way. Read the man page for mount for the details.
But remember that in your setup, your /usr directory is *not* its own partition (which is why I used the "somethingorother" above, lacking a real example from your system).
Quoted 17 lines
Cheers,
bjWhen I do ls -lR on the auto created /var , it gives out the ff contents :-
var:
total 4
drwxr-xr-x 3 root root 4096 Feb 27 09:28 libvar/lib:
total 8-rw------- 1 root root 512 Feb 27 09:28 random-seed drwxr-xr-x 2 root root 4096 Feb 27 09:22 rpmvar/lib/rpm:
total 308
Review
Quoted 5 lines
(quoted diff) +0
-5-rw-r--r-- 1 root root 8192 Feb 27 09:22 __db.001 -rw-r--r-- 1 root root 1310720 Feb 27 09:22 __db.002 -rw-r--r-- 1 root root 360448 Feb 27 09:22 __db.003 -rw-r--r-- 1 root root 12288 Feb 27 09:22 Name -rw-r--r-- 1 root root 12288 Feb 27 09:22 Packages
OK. As I aked before, I want to see the output of ...
ls -l /
df
find / -name libncurses* (I didn't give the actual
command before; I
just asked where libncurses5 was
located)
... and all actual error messages (not summaries or paraphrases) that you see.
Also, please provide the output of
ls -l /mnt/hda5
ls -l /mnt/hda6-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Hi !
Thank you all for the help .
I again tried by removing the old links & recreating them in single user mode .
cd /
ln -s /mnt/hda5/var
ln -s /mnt/hda5/tmp
ln -s /mnt/hda6/usr
ln -s /mnt/hda6/home
This time everything worked fine & my sytem is up & running.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs