General :: Make ZIP Or RAR Package Of Directory With Increased Size?
Nov 30, 2010
I have this directory with multiple images 'pics' and the size is 20mb and I want to make a .zip or .rar package of this directory but with an increased size so the .zip/.rar file will be 100mb, and then when you extract it the file size is the original 20mb. I want to make the result file bigger, no compress it. I need to put all the directory in one single file .zip or .rar but it has to weight more (100mb), maybe it can be done with another application. By the way, I have a centos 5 from command line.
I am doing an analysis with postfix, qmail and sendmail analyzing its performance.I need to send mail of size 10 MB, 50MB and 75 MB and analyze the time taken to send each mail to different users.I first used telnet, but file attachment is very hard there.Then i went for thunderbird but the file attachment size is just 5 MB. So is there a possibility to send such huge file size?
I am using Fedora 11 and when the system booted, the screen resolution and font size were increased all of a sudden. Then I configured the screen resolution using
Quote:
system-config-display
to the actual that I had.
But the fonts in gedit are still big. Although the settings shows the default settings that I search on several blogs i.e.
Quote:
Edit -> Preferences -> Fonts & Colors -> Use the system fixed width font (Monospace 10)
Is there anyway to show package size that comes up in the search so you don't have to apt-get install package individually and wait for the installation initiation and then reject to install after it gives u the [y/N] confirmation thing?
Well, I am facing problem when doing lab questions.
I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).
I am required to use the /usr/local directory.
In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".
I need to set size limit for shared directory. Actually i am unable to set directory size for my NFS shared foldermy Dir locate in /root/ESSR_logex : This ESSR_log Directory size should be 20GB. that mean NFS client only can store up to 20 GB files. NOT MORE
I have a 4gb USB thumb drive with Ubantu 9 on it and it looks like I have over 3gb free but I only have 4mb free in the documents Directory. w do I increase the size of the directory so I can add my Doc files?
As example, I have directory in /root called as "shared". i already shared this directory using NFS. i want to limit this directory size into 20 GB(20*1024*1024).That means "shared" directory reserved 20 GB disk space from the HDD.how can i solve this problem
I just installed Lubuntu 10.04 on old PC (CPU: 700 Mhz, RAM: 640 MB). My swap partition is only 474 MB. I was told it should be twice my RAM, if that's true then I'm really low on swap space. Can I expand my swap space? I also have Fedora 13 installed, it has a 1.3 GB swap partition, can I have Lubuntu use this partition?
I have increased my RAM from 2 MB to 4MB, Vista can see most of it(it can't see more because it is 32 bits)but when I run Virtual box I can only see up to 2MB of memory.Is there anything I can do to fix this?
This may seem to be a silly question, but I googled along and found that most of relevant complaints was about a bug in video card driver.
My problem is - For some unknown reason, I can't resize the Konsole window horizontally while I can still resize vertically. This is bad as the corrent width of Konsole window fills the entire screen!
I notice that when you try to Make link to any file or folder form context menu, It just copy the same file size? even when i tried to copy the link to external storage disk..
Is there a way to force rsync to not make directories in its destination directory; ie, to simply dump all of the files from the source directory directly into the destination without copying any of the folders that the files were originally in? I tried --no-dirs, but that seems to only be for empty directories.
I have learned Linux for a while now, but Linux is continuously surprising me with new stuffs nearly every day... Today I met a really strange problem, that the command "ls" indicates the size of some directories is ZERO, as for /home.
However, there is a directory inside /home, which contains many files/directories.
Even worst, when I tried to create a file under /home, I got the "permission denied" error,
By the way, /home is within the local file system, not NFS share.
I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to update.
So I setup the permission and owner group like this
drwxrwxr-x 2 me robot-grp 4096 Jun 11 20:50 data
where both me and robot belongs to the 'robot-grp'. I change the permission and the owner group recursively like the parent directory.
I regularly upload new files into the data directory using rsync. Unfortunately, new files uploaded does not inherit the parent directory's permission as I hope. Instead it looks like this
-rw-r--r-- 1 me users 6 Jun 11 20:50 new-file.txt
When robot tries to update new-file.txt, it fails due to lack of file permission.
I'm not sure if setting umask helps. In anycase the new files does not really follow it.
$ umask -S u=rwx,g=rx,o=rx
I'm often confounded by Unix file permission. Do I even have a right plan? I'm using Debian lenny.
I would like to make a cronjob who makes a tag.gz of everything inside a directory in a recursive way. BUT there is a HUGE directory full of jpg's. I don't want this one in the backup.Additional points if it can backup symbolic links.
I have successfully migrated my linux install to a new /, /home, /boot partition on my ssd. Everything works fine, except that it won't make the root directory on the right disk. When I change the root=uuid=<drive id> to my new drive everything is fine, but I can't automate that... in other words I have manually typed the uuid of my root-partition for about 100 times now and I am fed up with that how I can save the uuid of my new drive in the startup parameters?
When trying to install my WiFi card's driver on Ubuntu 9.1, I run the make command and get the following error:make: *** /lib/modules/2.6.31-20-generic/build: No such file or directory
when I try to add a user it fails to make the corresponding home directory. I can still su to the user, set the password, and everything else. the output is as follows:
$ useradd username useradd: cannot create home directory /home/username
I read that this could be a result of there not being enough space but if I do df -h, i see that only 88% of the memory is being used.
I have 2 directories in my home folder that I would like to set a size limit on. The directories are ~/backup and ~/temp. Is there an easy way to limit the size of a directory without having to make partitions?
Is there a way to know the size of a package in YaST2?I only have 50MB left in my root partition / (Btw, my /home is in a separate partition.) and I'm looking for a way to selectively delete package depending on it's size. Also, when we "remove" a package in YaST2, is it "completely" removed? or is there some residual rpm left? (of course /home/configs would be kept as it is an expected behavior).
I have a partition for all my data (mounted on /mnt/data) and I want to point my /home/<username>/Pictures folder to /mnt/data/Pictures. I.e. I want to point a folder to another folder.This isn't possible with fstab as I've understood, since that's about mounting volumes. I guess the mount command can be used, but I'd like to mount the directory permanently and I'm not aware of if that's possible with the mount command. Maybe a soft link can be a solution, but that doesn't feel like a "clean" solution. Then I have to enter the /home/<username>/Pictures directory and then click the soft link?
A slacky.eu user Spina, I did notice a bug in calculating the size of the package when the directory contains a space in the name. Example:
Code: /tmp/prova dir# LANG=en installpkg abook-0.6.0pre2-i686-4cf.txz /bin/du: cannot access `/tmp/prova': No such file or directory /bin/du: cannot access `dir/abook-0.6.0pre2-i686-4cf.txz': No such file or directory Verifying package abook-0.6.0pre2-i686-4cf.txz. Installing package abook-0.6.0pre2-i686-4cf.txz:
PACKAGE DESCRIPTION: # abook # Abook is a text-based addressbook program designed to use with mutt # mail client. Abook runs on Linux, FreeBSD and some other UNIXes. # Home: [URL] # Package abook-0.6.0pre2-i686-4cf.txz installed.
This error is caused by 'readlink -f' COMPRESSED="$(/bin/du -sh $(readlink -f $package) | cut -f 1)" instead with Code: COMPRESSED="$(/bin/du -sh "$(readlink -f $package)" | cut -f 1)" it's ok
Is there any way we could display dicrectory's size in terminal? Because I need to copy directories to external devices like USB, so I need to know there is enough space left on my USB for those directories or not. I tried ls command but still couldn't find out.
We have a problem where there is not enough space in our /tmp partition. We are trying for fix our mysql database, and keep running in to the space issue... the error we are getting says:
myisamchk: Disk is full writing '/tmp/STGL3SGd' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
Our /tmp partition is current set at 485M, but it is not large enough to handle the database fix...
Does anyone know of a work around - perhaps to assign different directory for the temp files?