Re: how to implement my unused /var partition in FC4?

From: Jan Gerrit Kootstra (news_at_kootstra.org.uk)
Date: 07/13/05


Date: Wed, 13 Jul 2005 20:36:14 +0200


"Robert Nichols" <SEE_SIGNATURE@localhost.localdomain.invalid> schreef in
bericht news:db344r$reg$1@omega-3a.right.here...
> In article <1121229461.015523.273450@g47g2000cwa.googlegroups.com>,
> andrew <seawolf@scssi.org> wrote:
> :Hello, all
> :
> :when I was installing my FC4 recently, i had allocated a separate
> :(500MB) partition for /var, but somehow missed telling the installer
> :this, and ended up with a /var subdirectory of /(root)
> :
> :short of doing a reinstall (which would be very time-costly for me),
> :how can I fix this?
> :
> :Should the follow strategy work?
> :
> :I tried the following once, but did not persist after it failed:
> :
> :1) boot with linux rescue
> :2) mount my /dev/sda5 (the unused, intended /var) on a temporary
> : mount point ( /sysimage/blah )
> :
> :3) cp -Rp /sysimage/var /sysimage/blah
> :
> :4) add the following to my /etc/fstab :
> :/dev/sda5 /var ext3 defaults 1 2
> :
> :When I rebooted, the system hang
> :I had to go into linux rescue and delete the above fstab line, to get
> :back to "normal"
>
> I suspect that the problem is with your "cp" command and that the
> contents of your old /var directory now exist in /var/var when your
> new partition is mounted. Try this:
>
> cp -a /sysimage/var/* /sysimage/blah
>
> Note the use of "-a", which will preserve symbolic links, something
> your original options did not do.
>
> --
> Bob Nichols AT comcast.net I am "rnichols42"

Andrew,

In the rescue mode, I would do a chroot to your boot disk.

After that copy the /var content to /blah by

cp -avR /var/* /blah

Regards,

Jan Gerrit



Relevant Pages

  • RE: redhat-list Digest, Vol 55, Issue 24
    ... Boot in Linux rescue mode. ... Skip when asked to mount filesystem. ... Can not find partitions in linux rescue after missing fstab ...
    (RedHat)
  • Re: Cannot mount old drive with LVM partition - help!
    ... With FC3 as the primary system, boot from the FC5 DVD ... boot: linux rescue ... If you can see your data then you can disconnect the FC3 ...
    (alt.os.linux)
  • Re: can FC4 write a boot block to a SATA drive?
    ... >> one that you had when you booted linux rescue? ... > after the chroot, it does look similar to what I have on other machines ... > Tho there is no /initrd directory, the boot directory seems well populated. ...
    (Fedora)
  • Re: Red Hat Linux reboot fail
    ... Looks like the system couldn't mount /proc, boot from install CD, ... enter "linux rescue", read/follow the instructions, check/fix ...
    (comp.os.linux.misc)
  • Re: XP working not quite right.
    ... >Most programs boot and operate normally, ... >I'm concerned that the registry was corrupted somehow. ... >How do I proceed to diagnose and fix these things? ... virus scan of the hard drive. ...
    (microsoft.public.windowsxp.general)