Mailinglist Archive: opensuse (2488 mails)
| < Previous | Next > |
Re: [opensuse] need to move /var to RAID
- From: Brian Jackson <brian@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Feb 2007 13:52:38 -0800
- Message-id: <200702051352.39397.brian@xxxxxxxxxxxxxxxxxxxxx>
On Monday 05 February 2007 13:28, James D. Parra wrote:
> Hello,
>
> How can I move /var, currently on the system drive, to the RAID drive
> without hosing my system?
While the system is running??? Wouldn't really do that.
Best option would be to build your new filesystem, boot a rescue CD,
then mount your /var and /newvar partition. Now, if your /var is on
your root (/) partition, then just mount your root partiton as /mnt and
then do the following.
tar cf - /mnt/var | (cd /mnt/newvar; tar xf - )
make sure you edit the /etc/fstab on YOUR root partition (assuming you
mounted it like the other partitions above) to point to the /newvar
partition. DON'T EDIT the rescue /etc/fstab, that won't get things
done.
There are lots of ways to go about doing this, but this is the way I've
been doing it for the past 12 years. cpio and dd come to mind as
alternatives.
brian
--
Brian Jackson Photo
Sports ~ People ~ Events
http://www.BrianJacksonPhoto.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
> Hello,
>
> How can I move /var, currently on the system drive, to the RAID drive
> without hosing my system?
While the system is running??? Wouldn't really do that.
Best option would be to build your new filesystem, boot a rescue CD,
then mount your /var and /newvar partition. Now, if your /var is on
your root (/) partition, then just mount your root partiton as /mnt and
then do the following.
tar cf - /mnt/var | (cd /mnt/newvar; tar xf - )
make sure you edit the /etc/fstab on YOUR root partition (assuming you
mounted it like the other partitions above) to point to the /newvar
partition. DON'T EDIT the rescue /etc/fstab, that won't get things
done.
There are lots of ways to go about doing this, but this is the way I've
been doing it for the past 12 years. cpio and dd come to mind as
alternatives.
brian
--
Brian Jackson Photo
Sports ~ People ~ Events
http://www.BrianJacksonPhoto.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |