Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tool / program to check harddisk space
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rieger
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2002
Posts: 136
Location: The Netherlands

PostPosted: Tue Jul 09, 2002 11:14 am    Post subject: tool / program to check harddisk space Reply with quote

maybe a very simple question, but how can I see (via command or a gui tool; that doesn't matter) what my free space is?
_________________
haree
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Jul 09, 2002 11:30 am    Post subject: Re: tool / program to check harddisk space Reply with quote

From the console: df
From kde: kdf
From gnome: gnome-system-monitor

rieger wrote:
maybe a very simple question, but how can I see (via command or a gui tool; that doesn't matter) what my free space is?
Back to top
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Tue Jul 09, 2002 12:19 pm    Post subject: Reply with quote

as the other poster mentioned, df will tell you how much space you have. (use the '-h' flag to get the output in human-readable format). man df for more information.

also look at 'du', which will tell you on a per-directory basis what is using space on your hard drive. man du for more information.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
rieger
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2002
Posts: 136
Location: The Netherlands

PostPosted: Tue Jul 09, 2002 12:35 pm    Post subject: Reply with quote

thanks.

I've created / on a 2.4 gig partition but it was already taking up 81%.
so I've deleted the distfiles directory and now I have 33% over.

btw: is it possible to permanently mount /usr to another (I have a spare one) partition.

f.e. mount /dev/hda7 /usr ?
and things won't break?
_________________
haree
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Tue Jul 09, 2002 12:37 pm    Post subject: Reply with quote

rieger wrote:
btw: is it possible to permanently mount /usr to another (I have a spare one) partition.


Sure -- just change your /etc/fstab to point to the new location. You'll have to juggle things a bit to get files transferred over, but it shouldn't be a big deal.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
rieger
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2002
Posts: 136
Location: The Netherlands

PostPosted: Tue Jul 09, 2002 12:48 pm    Post subject: Reply with quote

klieber wrote:
rieger wrote:
btw: is it possible to permanently mount /usr to another (I have a spare one) partition.


Sure -- just change your /etc/fstab to point to the new location. You'll have to juggle things a bit to get files transferred over, but it shouldn't be a big deal.


mmm, what do you mean by that?

I have the following setup:

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 2.4G 1.7G 823M 67% /
tmpfs 1.0M 120K 904K 12% /mnt/.init.d
/dev/hda6 11G 733M 10G 7% /home
/dev/hda7 1.9G 33M 1.7G 2% /backup
/dev/hda1 50M 6.6M 40M 14% /boot

and would like to move /usr to hda7.
should I unmount /backup first, then change fstab to let /usr point to hda7? then I don't have to move all the data manually, do I?

hda2 = xfs and hda7 is ext3, does that have any consequences?

(sorry for so manny questions..)
_________________
haree
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16090
Location: Colorado

PostPosted: Tue Jul 09, 2002 4:38 pm    Post subject: Reply with quote

rieger wrote:
mmm, what do you mean by that?

I have the following setup:

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 2.4G 1.7G 823M 67% /
tmpfs 1.0M 120K 904K 12% /mnt/.init.d
/dev/hda6 11G 733M 10G 7% /home
/dev/hda7 1.9G 33M 1.7G 2% /backup
/dev/hda1 50M 6.6M 40M 14% /boot
Currently your usr directory is mounted under root, or /.
You would need an entry in /etc/fstab that looked something like this:
Code:
/dev/hda7               /usr           ext3            noatime     1 2

Quote:
and would like to move /usr to hda7.
should I unmount /backup first, then change fstab to let /usr point to hda7?
Just unmounting backup won't work. I'm assuming you have data on the /dev/hda7,
persumably backup data. You really ought to do a mkfs (or some other trick to get
rid of data on that partition). This of course assumes that you don't want to keep any
data that you have in /backup.

Quote:
then I don't have to move all the data manually, do I?
Yes you would. Also, you will need to ensure permissions are transferred in the copying process.

Quote:
hda2 = xfs and hda7 is ext3, does that have any consequences?
Shouldn't.

Quote:
(sorry for so manny questions..)
;)
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Jul 09, 2002 4:49 pm    Post subject: Reply with quote

I would suggest you:

- use the gentoo boot cd
- mount the old partition to a convenient mount point
- clean up the target partition (rm -rf or mke2fs -j)
- mount the target partition if necessay
- cp -ax from /usr on the old partition to the target
- modify fstab to point to the new partition
- reboot

If you are convinced that the new partition works fine you can remove data from the old /usr hierarchy -- best would be do the gentoo boot cd jig again.

Obviously, above is not straightforward, but may be a good exercise is moving partitions in Linux (or Unix) :)
rieger wrote:
klieber wrote:
rieger wrote:
btw: is it possible to permanently mount /usr to another (I have a spare one) partition.


Sure -- just change your /etc/fstab to point to the new location. You'll have to juggle things a bit to get files transferred over, but it shouldn't be a big deal.


mmm, what do you mean by that?

I have the following setup:

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 2.4G 1.7G 823M 67% /
tmpfs 1.0M 120K 904K 12% /mnt/.init.d
/dev/hda6 11G 733M 10G 7% /home
/dev/hda7 1.9G 33M 1.7G 2% /backup
/dev/hda1 50M 6.6M 40M 14% /boot

and would like to move /usr to hda7.
should I unmount /backup first, then change fstab to let /usr point to hda7? then I don't have to move all the data manually, do I?

hda2 = xfs and hda7 is ext3, does that have any consequences?

(sorry for so manny questions..)
Back to top
rieger
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2002
Posts: 136
Location: The Netherlands

PostPosted: Thu Jul 11, 2002 9:38 pm    Post subject: Reply with quote

I created XFS partition on hda7
mount /usr2 on that partition; moved all under /usr to /usr2

things where broke....

booted with cd, deleted 'old' /usr end renamed /usr2

worked.

thanks for the help
_________________
haree
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum