UFS How can I move /usr to new disk?

MhmodHanafi

New Member


Messages: 9

How can I move /usr to new disk?

And second question, which paths must have large space I mean the standard?

Like the file of games where it will be installed and other apps?

Is it /usr or /var or what?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,751
Messages: 30,832

Depending on what you use it for but most of the time /usr/ will be the biggest. Keep in mind it contains things like /usr/ports, /usr/src/, /usr/local/ and /usr/home. All of which can grow quite large.
 

Snowe

New Member


Messages: 9

If / is not a large partition, additional kernels can take up a large portion of space too.

If you are new to unix, running du -h -d1 / will show you how much space each directory tree under / is using.
 

wblock@

Beastie Himself
Developer

Reaction score: 3,645
Messages: 13,850

In general:

Make a full backup.
Partition new disk with gpart(8).
Copy /usr/ from old disk to new disk with dump(8)/restore(8).
Modify /etc/fstab to mount new /usr.
 

User23

Well-Known Member

Reaction score: 67
Messages: 495

Another way is to use cpdup() after the new disk is partitioned and contains a filesystem.
 
Top