System stops because /var/log not found after moving to new partition
System stops because /var/log not found after moving to new partition
am 26.02.2005 16:31:28 von BJ
This is a multi-part message in MIME format.
------=_NextPart_000_0025_01C51C49.44062190
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
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
------=_NextPart_000_0025_01C51C49.44062190
Content-Type: text/plain;
name="dmesg.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="dmesg.txt"
Linux version 2.4.20-30.8.legacy (legacy@yoda.loki.me) (gcc version 3.2 =
20020903 (Red Hat Linux 8.0 3.2-7)) #1 Fri Feb 20 17:47:48 PST 2004=0A=
BIOS-provided physical RAM map:=0A=
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)=0A=
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)=0A=
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)=0A=
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)=0A=
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)=0A=
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)=0A=
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)=0A=
0MB HIGHMEM available.=0A=
511MB LOWMEM available.=0A=
On node 0 totalpages: 131056=0A=
zone(0): 4096 pages.=0A=
zone(1): 126960 pages.=0A=
zone(2): 0 pages.=0A=
Kernel command line: ro root=3DLABEL=3D/ hdb=3Dide-scsi=0A=
ide_setup: hdb=3Dide-scsi=0A=
Initializing CPU#0=0A=
Detected 2393.991 MHz processor.=0A=
Console: colour VGA+ 80x25=0A=
Calibrating delay loop... 4771.02 BogoMIPS=0A=
Memory: 511512k/524224k available (1340k kernel code, 10148k reserved, =
999k data, 128k init, 0k highmem)=0A=
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)=0A=
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)=0A=
Mount cache hash table entries: 512 (order: 0, 4096 bytes)=0A=
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)=0A=
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)=0A=
CPU: Trace cache: 12K uops, L1 D cache: 8K=0A=
CPU: L2 cache: 512K=0A=
Intel machine check architecture supported.=0A=
Intel machine check reporting enabled on CPU#0.=0A=
CPU: After generic, caps: bfebfbff 00000000 00000000 00000000=0A=
CPU: Common caps: bfebfbff 00000000 00000000 00000000=0A=
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 07=0A=
Enabling fast FPU save and restore... done.=0A=
Enabling unmasked SIMD FPU exception support... done.=0A=
Checking 'hlt' instruction... OK.=0A=
POSIX conformance testing by UNIFIX=0A=
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)=0A=
mtrr: detected mtrr type: Intel=0A=
PCI: PCI BIOS revision 2.10 entry at 0xfb270, last bus=3D1=0A=
PCI: Using configuration type 1=0A=
PCI: Probing PCI hardware=0A=
PCI: Using IRQ router VIA [1106/3177] at 00:11.0=0A=
isapnp: Scanning for PnP cards...=0A=
isapnp: No Plug & Play device found=0A=
Linux NET4.0 for Linux 2.4=0A=
Based upon Swansea University Computer Society NET3.039=0A=
Initializing RT netlink socket=0A=
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16)=0A=
Starting kswapd=0A=
VFS: Disk quotas vdquot_6.5.1=0A=
pty: 2048 Unix98 ptys configured=0A=
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT =
SHARE_IRQ SERIAL_PCI ISAPNP enabled=0A=
ttyS0 at 0x03f8 (irq =3D 4) is a 16550A=0A=
ttyS1 at 0x02f8 (irq =3D 3) is a 16550A=0A=
Real Time Clock Driver v1.10e=0A=
Floppy drive(s): fd0 is 1.44M=0A=
FDC 0 is a post-1991 82077=0A=
NET4: Frame Diverter 0.46=0A=
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize=0A=
Uniform Multi-Platform E-IDE driver Revision: 7.00beta3-.2.4=0A=
ide: Assuming 33MHz system bus speed for PIO modes; override with =
idebus=3Dxx=0A=
VP_IDE: IDE controller at PCI slot 00:11.1=0A=
VP_IDE: chipset revision 6=0A=
VP_IDE: not 100% native mode: will probe irqs later=0A=
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1=0A=
ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:DMA=0A=
ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:pio, hdd:DMA=0A=
hda: ST360020A, ATA DISK drive=0A=
hdb: SONY CD-RW CRX1611, ATAPI CD/DVD-ROM drive=0A=
blk: queue c03a6260, I/O limit 4095Mb (mask 0xffffffff)=0A=
hdd: ST380011A, ATA DISK drive=0A=
blk: queue c03a6808, I/O limit 4095Mb (mask 0xffffffff)=0A=
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14=0A=
ide1 at 0x170-0x177,0x376 on irq 15=0A=
hda: attached ide-disk driver.=0A=
hda: host protected area =3D> 1=0A=
hda: 117231408 sectors (60022 MB) w/2048KiB Cache, CHS=3D7297/255/63, =
UDMA(100)=0A=
hdd: attached ide-disk driver.=0A=
hdd: host protected area =3D> 1=0A=
hdd: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=3D9729/255/63, =
UDMA(100)=0A=
ide-floppy driver 0.99.newide=0A=
Partition check:=0A=
hda:hda: dma_intr: status=3D0x51 { DriveReady SeekComplete Error }=0A=
hda: dma_intr: error=3D0x84 { DriveStatusError BadCRC }=0A=
hda: dma_intr: status=3D0x51 { DriveReady SeekComplete Error }=0A=
hda: dma_intr: error=3D0x84 { DriveStatusError BadCRC }=0A=
hda: dma_intr: status=3D0x51 { DriveReady SeekComplete Error }=0A=
hda: dma_intr: error=3D0x84 { DriveStatusError BadCRC }=0A=
hda: dma_intr: status=3D0x51 { DriveReady SeekComplete Error }=0A=
hda: dma_intr: error=3D0x84 { DriveStatusError BadCRC }=0A=
blk: queue c03a6260, I/O limit 4095Mb (mask 0xffffffff)=0A=
hdb: DMA disabled=0A=
ide0: reset: success=0A=
hda1 hda2 hda3 hda4 < hda5 hda6 >=0A=
hdd: hdd1 hdd2 < hdd5 >=0A=
ide-floppy driver 0.99.newide=0A=
md: md driver 0.90.0 MAX_MD_DEVS=3D256, MD_SB_DISKS=3D27=0A=
md: Autodetecting RAID arrays.=0A=
md: autorun ...=0A=
md: ... autorun DONE.=0A=
NET4: Linux TCP/IP 1.0 for NET4.0=0A=
IP Protocols: ICMP, UDP, TCP, IGMP=0A=
IP: routing cache hash table of 4096 buckets, 32Kbytes=0A=
TCP: Hash tables configured (established 32768 bind 65536)=0A=
Linux IP multicast router 0.06 plus PIM-SM=0A=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.=0A=
RAMDISK: Compressed image found at block 0=0A=
Freeing initrd memory: 126k freed=0A=
VFS: Mounted root (ext2 filesystem).=0A=
Journalled Block Device driver loaded=0A=
kjournald starting. Commit interval 5 seconds=0A=
EXT3-fs: mounted filesystem with ordered data mode.=0A=
Freeing unused kernel memory: 128k freed=0A=
usb.c: registered new driver usbdevfs=0A=
usb.c: registered new driver hub=0A=
PCI: Found IRQ 11 for device 00:10.3=0A=
PCI: Sharing IRQ 11 with 00:0c.0=0A=
ehci-hcd 00:10.3: VIA Technologies, Inc. USB 2.0=0A=
ehci-hcd 00:10.3: irq 11, pci mem e0849000=0A=
usb.c: new USB bus registered, assigned bus number 1=0A=
PCI: 00:10.3 PCI cache line size set incorrectly (32 bytes) by BIOS/FW.=0A=
PCI: 00:10.3 PCI cache line size corrected to 128.=0A=
ehci-hcd 00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Jan-22=0A=
hub.c: USB hub found=0A=
hub.c: 6 ports detected=0A=
usb.c: registered new driver hiddev=0A=
usb.c: registered new driver hid=0A=
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik =0A=
hid-core.c: USB HID support drivers=0A=
mice: PS/2 mouse device common for all mice=0A=
hub.c: new USB device 00:10.3-1, assigned address 2=0A=
usb.c: USB device 2 (vend/prod 0x8ec/0x12) is not claimed by any active =
driver.=0A=
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal=0A=
Adding Swap: 1052248k swap-space (priority -1)=0A=
hda: dma_intr: status=3D0x51 { DriveReady SeekComplete Error }=0A=
hda: dma_intr: error=3D0x84 { DriveStatusError BadCRC }=0A=
hda: dma_intr: status=3D0x51 { DriveReady SeekComplete Error }=0A=
hda: dma_intr: error=3D0x84 { DriveStatusError BadCRC }=0A=
hda: dma_intr: status=3D0x51 { DriveReady SeekComplete Error }=0A=
hda: dma_intr: error=3D0x84 { DriveStatusError BadCRC }=0A=
hda: dma_intr: status=3D0x51 { DriveReady SeekComplete Error }=0A=
hda: dma_intr: error=3D0x84 { DriveStatusError BadCRC }=0A=
ide0: reset: success=0A=
SCSI subsystem driver Revision: 1.00=0A=
Initializing USB Mass Storage driver...=0A=
usb.c: registered new driver usb-storage=0A=
scsi0 : SCSI emulation for USB Mass Storage devices=0A=
Vendor: Kingston Model: DataTraveler2.0 Rev: 4.80=0A=
Type: Direct-Access ANSI SCSI revision: 02=0A=
WARNING: USB Mass Storage data integrity not assured=0A=
USB Mass Storage device found at 2=0A=
USB Mass Storage support registered.=0A=
hdb: attached ide-scsi driver.=0A=
scsi1 : SCSI host adapter emulation for IDE ATAPI devices=0A=
Vendor: SONY Model: CD-RW CRX1611 Rev: TYS3=0A=
Type: CD-ROM ANSI SCSI revision: 02=0A=
------=_NextPart_000_0025_01C51C49.44062190
Content-Type: text/plain;
name="fstab.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="fstab.txt"
LABEL=3D/ / ext3 defaults =
1 1=0A=
none /dev/pts devpts =
gid=3D5,mode=3D620 0 0=0A=
none /proc proc defaults =
0 0=0A=
/dev/hda5 /mnt/hda5 ext3 defaults 1 2=0A=
/dev/hda6 /mnt/hda6 ext3 defaults 1 3 =0A=
none /dev/shm tmpfs defaults =
0 0=0A=
/dev/hda3 swap swap defaults =
0 0=0A=
/dev/fd0 /mnt/floppy auto =
noauto,owner,kudzu 0 0=0A=
/dev/cdrom /mnt/cdrom iso9660 =
noauto,owner,kudzu,ro 0 0=0A=
------=_NextPart_000_0025_01C51C49.44062190
Content-Type: text/plain;
name="liberror.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="liberror.txt"
/mnt/hda6/usr/bin/clear: error while loading shared libraries: =
libncurses.so.5: cannot open shared object file: No such file or =
directory=0A=
------=_NextPart_000_0025_01C51C49.44062190--
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
RE: System stops because /var/log not found after moving to new partition
am 26.02.2005 18:45:04 von BJ
-----Original Message-----
From: linux-newbie-owner@vger.kernel.org
[mailto:linux-newbie-owner@vger.kernel.org]On Behalf Of Ray Olszewski
Sent: Sunday, February 27, 2005 8:44 AM
To: linux-newbie@vger.kernel.org
Subject: Re: System stops because /var/log not found after moving to new
partition
At 09:16 PM 2/26/2005 +0545, bj wrote:
>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 .
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
>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 .
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?
>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.
>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
This should all work fine, assuming the symlinks are created immediately
after the partitiions are mounted during the init process.
>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.
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.
>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 majordomo@vger.kernel.org
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: System stops because /var/log not found after moving to new partition
am 27.02.2005 03:43:24 von Ray Olszewski
At 09:16 PM 2/26/2005 +0545, bj wrote:
>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 .
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.
>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.)
>I have mounted hda5 & hda6 in my fstab .
Not the one you attached to your message.
>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.
>ln -s /mnt/hda6/usr /usr
This too.
>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
>
>
>
>
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: System stops because /var/log not found after moving to new partition
am 27.02.2005 03:59:29 von Ray Olszewski
At 09:16 PM 2/26/2005 +0545, bj wrote:
>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 .
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
>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 .
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?
>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.
>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
This should all work fine, assuming the symlinks are created immediately
after the partitiions are mounted during the init process.
>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.
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.
>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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
RE: System stops because /var/log not found after moving to new partition
am 27.02.2005 05:27:11 von BJ
-----Original Message-----
From: linux-newbie-owner@vger.kernel.org
[mailto:linux-newbie-owner@vger.kernel.org]On Behalf Of Ray Olszewski
Sent: Sunday, February 27, 2005 8:44 AM
To: linux-newbie@vger.kernel.org
Subject: Re: System stops because /var/log not found after moving to new
partition
At 09:16 PM 2/26/2005 +0545, bj wrote:
>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 .
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
>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 .
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?
>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.
>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
This should all work fine, assuming the symlinks are created immediately
after the partitiions are mounted during the init process.
>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.
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.
>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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: System stops because /var/log not found after moving to new partition
am 27.02.2005 16:45:44 von Arthur Nascimento
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
RE: System stops because /var/log not found after moving to new partition
am 27.02.2005 17:42:46 von Ray Olszewski
At 10:12 AM 2/27/2005 +0545, bj wrote:
[...]
>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.
>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.
>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.
>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
What does "ff" mean? You use it several times.
>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.
>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 :-".
>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.
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 ?
>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.
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).
>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
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
RE: System stops because /var/log not found after moving to new partition
am 28.02.2005 06:03:31 von BJ
-----Original Message-----
From: linux-newbie-owner@vger.kernel.org
[mailto:linux-newbie-owner@vger.kernel.org]On Behalf Of Ray Olszewski
Sent: Sunday, February 27, 2005 10:28 PM
To: linux-newbie@vger.kernel.org
Subject: RE: System stops because /var/log not found after moving to new
partition
At 10:12 AM 2/27/2005 +0545, bj wrote:
[...]
>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.
>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.
>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.
>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
What does "ff" mean? You use it several times.
>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.
>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 :-".
>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.
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 ?
>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.
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).
>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
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 majordomo@vger.kernel.org
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs