Re: moving the /var partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> I would boot into rescue (or single user) mode and use find/cpio to
>> copy /var/ to /user/.
>>
>> find /var -xdev | cpio -pmduv /user
>
> I don't think this worked. I *know* my cp -prx blah blah didn't work. I
> get several errors when I reboot:
>
> chmod: failed to get attributes of '/var/log/wtmp': No such file or
> directory.
>
> I am guessing these files were not copied or created properly in the
> /user filesystem.
>
>>
>> ...and then just rename them and modify your fstab file.
>>
>> mv /var /var.old
>> mv /user /var
>> mv /var.old /user
>>
>> Chris
>>
>>
>>
>
> I also tried used parted to copy the filesystem, but parted didn't work.
>  I'm guessing it was expecting an ext2 filesystem, when it was actually
> an ext3 filesystem. I was also hoping to use parted to reduce what will
> be a 60GB /var partition to something more managable. No joy there
> either.
>
> Does parted not work with ext3?
>
> Bill

I don't know about parted because I've never used it.  In the fstab file,
did you specify the correct filesystem (ext3) and partition numbers (or
labels)?  If you followed the directions above, /var should be your new
partition that you just created, and /user is now your old var partition. 
Correct??  If so, run some basic commands against /var and /user to see
that everything matches.  Run 'ls -lh', 'du -sh', and other various
commands to see if you notice any differences in the partitions. Look at
file sizes, ownership, and things like that.

Chris





-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux