...how to make it properly?
I know that there is a lot of articles about growing partitions, slices and file systems and I read I think all of them but now I'm a bit confused and I don't want to harm my system that costed me a lot of time to configure.
As you can imagine I'm a newbie.
When I first installed FreeBSD on my 250G hd I decide to give FreeBSD only a small fraction of that space. Now I've realized that I was wrong.
This is the situation.
and
and
The 2T disk is waiting for a ZFS partition but that's another history.
What I would like to obtain is to grow up the space assigned to each file system according with needing. But first of all I don't know which one really need more space. For example I think that /dev/ad1s1f assigned to /usr need more space but I don't think so for /dev/ad1s1e (/tmp). What about /var?
Another thing I'm thinking about is a new separate partition (or slice? or, better, file system?) of about 50/70G that I'll use as a kind of temp for swapping big files in and out.
The final goal is to use about 100/120G for FreeBSD.
My questions are: which is the best way to do it? Which are the right file system (BSD4.2 or UFS or.. don't know) for installing ports and for swapping files?
And.. how to do that?
I read the growfs(8) man page but, as a newbie, I'm a bit scared. I don't want to lose my homework.
Can you please help me?
Thanks in advance,
Lo.
I know that there is a lot of articles about growing partitions, slices and file systems and I read I think all of them but now I'm a bit confused and I don't want to harm my system that costed me a lot of time to configure.
As you can imagine I'm a newbie.
When I first installed FreeBSD on my 250G hd I decide to give FreeBSD only a small fraction of that space. Now I've realized that I was wrong.
This is the situation.
Code:
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad1s1a 963M 310M 576M 35% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad1s1e 944M 1.0M 868M 0% /tmp
/dev/ad1s1f 10G 4.5G 4.8G 48% /usr
/dev/ad1s1d 3.7G 127M 3.3G 4% /var
and
Code:
# bsdlabel -A ad1s1
# /dev/ad1s1:
type: ESDI
disk: ad1s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 484521
sectors/unit: 488397168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 2043904 0 4.2BSD 0 0 0
b: 8073399 2043904 swap
c: 41942817 0 unused 0 0 # "raw" part, don't edit
d: 8019968 10117303 4.2BSD 0 0 0
e: 2004992 18137271 4.2BSD 0 0 0
f: 21800554 20142263 4.2BSD 0 0 0
bsdlabel: partition c doesn't cover the whole unit!
bsdlabel: An incorrect partition c may cause problems for standard system utilities
and
Code:
# egrep 'ad[0-9]|cd[0-9]' /var/run/dmesg.boot
ad1: 238475MB <VB0250EAVER HPG0> at ata0-slave UDMA100 SATA
ad4: 1907729MB <ST2000DL003 9VT166 CC32> at ata2-master UDMA100 SATA 3Gb/s
Trying to mount root from ufs:/dev/ad1s1a
The 2T disk is waiting for a ZFS partition but that's another history.
What I would like to obtain is to grow up the space assigned to each file system according with needing. But first of all I don't know which one really need more space. For example I think that /dev/ad1s1f assigned to /usr need more space but I don't think so for /dev/ad1s1e (/tmp). What about /var?
Another thing I'm thinking about is a new separate partition (or slice? or, better, file system?) of about 50/70G that I'll use as a kind of temp for swapping big files in and out.
The final goal is to use about 100/120G for FreeBSD.
My questions are: which is the best way to do it? Which are the right file system (BSD4.2 or UFS or.. don't know) for installing ports and for swapping files?
And.. how to do that?
I read the growfs(8) man page but, as a newbie, I'm a bit scared. I don't want to lose my homework.
Can you please help me?
Thanks in advance,
Lo.