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

From: Robert Nichols (SEE_SIGNATURE_at_localhost.localdomain.invalid)
Date: 07/13/05

  • Next message: Jan Gerrit Kootstra: "Re: how to implement my unused /var partition in FC4?"
    Date: Wed, 13 Jul 2005 13:15:07 +0000 (UTC)
    
    

    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"
    

  • Next message: Jan Gerrit Kootstra: "Re: how to implement my unused /var partition in FC4?"

    Relevant Pages

    • Re: hung boot process->Karls post
      ... It appears that my separate /boot partition was ... I tried installing with just a /, ... I also want to see if a bug has ... I have a new computer, where I installed 7.10 with a separate boot, root ...
      (Ubuntu)
    • Re: [SLE] HOWTO Configure Linux over multiple hard drives
      ... the root and /usr filesystems could easily be on the same ... I usually don't create a separate /boot, ... /boot as a separate partition, you can protect the kernels from ... around to installing 9.0 on the desktop, I will install over the 8.1 ...
      (SuSE)
    • Re: Dual Boot to same OS
      ... |> I have a dual boot configuration on a my partitioned hard drive. ... |> mine set up and have 2 completely separate OS's, ... |> I could use a 3rd partition for them to use as Shared Documents ... | installing all software twice, ...
      (microsoft.public.windowsxp.help_and_support)
    • Using a Separate Home
      ... Time and again, I see advice on how to use separate partitions, even on ... installation specifying a separate /home partition. ... when installing your ... next distro, and so it goes on - one /home, many installations. ...
      (alt.os.linux.suse)
    • how to implement my unused /var partition in FC4?
      ... when I was installing my FC4 recently, ... partition for /var, but somehow missed telling the installer ... I had to go into linux rescue and delete the above fstab line, ...
      (linux.redhat.install)