Transfering size between partitions


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Transfering size between partitions
# 8  
Old 09-17-2003
du -ks /var/* | sort -n | more

Should show you each file and directory in /var sorted on size.
It's not defenit what can be thrown away.

find / -name core -type f

Shows you core files that can be thrown away.

find / -type f -size +10000000c -exec ls -l {} \;

should show you files larger than 10Mb. It might be nice to take a close look at these.

fuser -fu <file>

Would be nice to examine before removing a file. In case of a doubt only null a file like :

>/my/path/to/file


Please try to get a course, you seem to miss quiet some basics.


Regs David
# 9  
Old 09-17-2003
.........

based on your df output you could link directories to /space like /usr /opt. i would recommend to do this in single user mode or even better with a live-cd-os. be carefull: you have to keep the permissions otherwise your system will never come up. i would work with find and cpio.....

eg.:
root@/opt # find . -print -depth | cpio -pdmu /space/opt/

greetings Preßy
# 10  
Old 09-26-2003
I finally got a chance to use your suggestion Pressy. It worked great. I used it on another machine that had no room left in /var so I used your solution to transfer /var/sadm to /. I do have a question though. what if i want to do that with /var. when you try and delete /var it will not allow it so then you cannot create the symbolic link.

Thanks
# 11  
Old 09-26-2003
...........

hmm......
never tried it with /var, could be difficult, because /var/run ....
but you could clean up your /var
e.g.
/var/crash
/var/adm
/var/sadm

but if you have a free partition or a new disk you could copy it while using a live-cd-OS.

greetings Preßy
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

transfering kernel image to another system

my server system is low on disk. To install a new kernel I think i shall do the following: 1. compile the kernel on another system. 2. copy bzImage along with config, System.map and of course the laodable module in /lib/modules and transfer them to the server. 3. Now, I can remove the... (0 Replies)
Discussion started by: dr_mabuse
0 Replies

2. Shell Programming and Scripting

ftp script for transfering files

Hi, I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder. All configuration should be done through a properties files.I was planning that All configuration should be done through a properties files. and finally the output should be... (0 Replies)
Discussion started by: rahul125
0 Replies

3. UNIX for Dummies Questions & Answers

Ext3 to NTFS - transfering data

Alright so here is my problem: I have an ext3 external hard drive with about 270gb of data that needs to be copied/transferred to a NTFS drive. The NTFS drive has data currently on it...which obviously needs to stay intact. My supervisor mentioned that this problem could be a little tricky so I... (9 Replies)
Discussion started by: huntreilly25
9 Replies

4. SCO

check partitions size in MB

hi Howto check partitions size in MB on SCO 5.0.6? Using df command I can see just in blocks. (4 Replies)
Discussion started by: ccc
4 Replies

5. UNIX for Dummies Questions & Answers

transfering a directory to the toolman

I have a question about transferring a directory to the toolman. I have a directory called assn3 that contains two txt files and one empty directory and I want to transfer the assn3 to my my tooman account. Every time I try to transfer the file it says that the assn3 is not a regular file! what... (3 Replies)
Discussion started by: aama100
3 Replies

6. Shell Programming and Scripting

automatic transfering of files using scp

I'm in the process of writing a shell script with copies files from one linux box to another using scp. I wish to run this through a cronjob so it cannot be interactive. This is what I have so far. #!/bin/sh PASSWD='passswd' dateset=$( date | awk '{print $2 $3 $6}') for dates in $dateset;... (1 Reply)
Discussion started by: tcruicksh
1 Replies

7. UNIX for Dummies Questions & Answers

transfering files unix to pc

Hi, I'm an intern at a business that just acquired a company that ran off the unix system. They have files on this workstation that they would like to move to a windows XP pro system, but no one (myself included) has enough unix knowledge to know how to do this. It's my understanding that this can... (8 Replies)
Discussion started by: intern
8 Replies

8. UNIX for Dummies Questions & Answers

Transfering files from one server to another.

My oracle database is generating archive logs. I want to copy those archive logs over to backup server on a regular basis. I know how to create an ftp job and I can put it in my crontab. My problem is that I don't know how to send the files just once instead of sends all the files in the... (4 Replies)
Discussion started by: Alan Bird
4 Replies

9. UNIX for Dummies Questions & Answers

Transfering files

Hi all. 1. How can i copy files from one unix system to another. should i use ftp? so How? 2. How can i create an archive whose extention is tar.gz? and how can i decompress them later? 3. WHat is RPM ? what does it stands for? Thanks (5 Replies)
Discussion started by: vbs
5 Replies

10. UNIX for Dummies Questions & Answers

Transfering a window to another screen

Dear Experts I am using a workstatin with two screens and its OS is solaris 8. I wish to trnsfer some application windows from one screen to another one without need to closing the window and open it from other screen. Please advise Bests Reza (3 Replies)
Discussion started by: Reza Nazarian
3 Replies
Login or Register to Ask a Question