General :: Reduce The Size Of A File?
Oct 31, 2010How to reduce the size of a file. Is truncate related to this?
View 12 RepliesHow to reduce the size of a file. Is truncate related to this?
View 12 RepliesI have copied some vides from my camcorder and the size seems a bit excessive - 140mb for 3 mins! Is there a program I can use to save the .mp2 file as .mpg and reduce the size?
View 2 Replies View RelatedI have a rack of four 1TB drives all partitioned identically with three primary partitions. On each drive
- the first partition is only 64MB;
- the second is a large 900GB partition and
- the last holds all the remaining space
mdadm has been used to set up
/dev/md0 - RAID1, comprised of /dev/sda1 and /dev/sdb1
/dev/md1 - RAID5, comprised of /dev/sda2, /dev/sdb2, /dev/sdc2, /dev/sdd2
/dev/md2 - RAID5, comprised of /dev/sda3, /dev/sdb3, /dev/sdc3, /dev/sdd3
OK, so it was a silly mistake to make - but I am now need to increase the size of /dev/md0. My thinking is to reduce the size of md1 so that I can grow md0.
On md1 I have two logical volumes. I've successfully reduced the size of the volume so that I can reduce the size of md1. Now I'm at the nervous stage; I can find little written on the topic of shrinking RAID5 arrays - and even if I do this I'm unsure if I can move partitions around to regain the space I so desire.
I made 272 Photos from one book. Total size was 920MB. I used than gscan2pdf to create pdf document, and reduced there quality size. Result 116 MB. Than i converted it to grayscale [URL] with:
Code:
gs -sOutputFile=grayscale.pdf -sDEVICE=pdfwrite
-sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH color.pdf
Result: 108MB
Is it anyway possible to reduce size more? Something like Google does with their books?
I was cloned an entire disk (with one NTFS partition of 70GB, only 15GB used) using ddrescue with the following command...
Code:
ddrescue --no-split /dev/sda /media/usb250/ntfs.img /media/usb250/ntfs.log
The img file it's around 70GB. Now I want to restore it to another computer with 30GB of space. How can I reduce the size of img file?
I'm all new to linux. I've got Fedora core 12 - I'm ex windows user. I have these 3 websites to maintain: These are in finnish language. So called pikalaina sites:
pikalainat
pikavipit
vipit
And I have to add pictures to these pages. I don't know how to do even that I don't know web programming or HTML. But my images are about 1 mb in file size - I use to have windows and photoshop and there is this save for web feature where file size is reduced.I have this GIMP -program now - it's terrible compared to photoshop, but it's free. In GIMP there is no feature how to reduce file size for ex. 1mb to 20 Kb. How do I do this? Do you know any good program to do it?
I have rendered out less than two minutes of High Definition animation to Avi-Jpeg Format in Blender. Now, I have this 2 GB file. Going at this rate, it's going to take a whole DVD set to play a 15 min movie.
Surely, this file doesn't need 2 GB just for 1:45 min/sec, right? Even at high def? How do I reduce this file size down to like a manageable number, say, 20 miB?
I have a HDD that has 2 partitions. the 2nd partition is the VG and I want to reduce its size. I have reduced the Largest LV in the VG and now have free space in the VG. But, I am clueless on how to proceed to reduce the partiton size so that I can use it for another need.
When done, I expect to have 3 parttions total on the HDD. But first, I could some help in understanding the steps necessary for me to take, to move the free space out of the partition that has the Volume Group. Then, i can use fdisk on that 3rd partition for my needs.
I already know how to expand a Volume group by adding PVs, but, I do NOT know and cannot find how to reduce it to recover the free space in the VG to be used in a new partiton. (Better explained..."I want to reduce the physical partition size that the VG represents.)
I need to create a temporary Filesystem and the only way to do it is to reduce /var and create a new filesystem 3GB size
Code:
df -h
/dev/mapper/VolGroup00-var
9.7G 1.5G 7.8G 16% /var
my question is according to google search I need to umount the filesystem point in order to reduce its size.... so it means I will require that nobody uses the system? since /var logs a lot information?
I also have the option to reduce /root but I think is more complicated.
so what are the precautions in order to reduce /var/?
I have the following HDDs in an LVM2 configuration on an F10 box running Mythtv :-
# pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [297.88 GB / 0 free]
PV /dev/sdd1 VG VolGroup00 lvm2 [931.50 GB / 0 free]
PV /dev/sdb1 VG VolGroup00 lvm2 [298.06 GB / 0 free]
PV /dev/sdc1 VG VolGroup00 lvm2 [931.50 GB / 0 free]
Total: 4 [2.40 TB] / in use: 4 [2.40 TB] / in no VG: 0 [0 ]
The system never uses more than about 250GB of HDD at any one time, so I would like to remove /dev/sdd1 and /dev/sdc1 from the LV and then from the machine and leave /dev/sda and /dev/sdb alone.
Does anyone know that if I use the command "system-config-lvm" to reduce the total LVM size to say 580GB, whether all data is preserved (I don't have any way at this stage to backup up 250GB of data, unless I buy more HDDs and that is the whole point of this exercise anyway - remove the two terrabyte drives to be used as backup disks).
Once I am happy that the data is safe, I will use "pvmove" and "vgreduce" to remove both terrabyte drives.
I'm new to Fedora 14, vmware player. After getting Fedora up and running in VMware player. The disk size was 2.7 GB. After three hours of working with it, the disk size has bloated to 4.3 GB. I havent added software to account for the near doubling in size. How do I reduce the size back to 2.7GB range or lower. Im new to Fedora and superuser controls. Im removing more software than adding software. Is this a VMWARE problem or Fedora problem?
View 1 Replies View Relatedreducing the size of LVM. I did it by using the commands, lvreduce,fsck,resize2fs.After reducing the lvm size, my system is not booting...it is saying file system corrupted error.
View 1 Replies View Relatedi m using ubuntu 10.4 version and i want to knw that is their any software or something else so that i can resize my images from 2 mb to in kb as my image folder is of 614 mb and i want to put that folder images in my mobile so how can i reduce the size of that folder
View 8 Replies View RelatedI have a server with 2 harddisks, configured a one logical LVM block. I would like to reduce the total footprint and remove the 2nd harddisk.
What is the best way to do this? I understand that Gparted has yet to support LVM.
My details as follows:
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
282G 11G 257G 4% /
/dev/sda3 99M 12M 82M 13% /boot
[Code]....
Is there a way to clean (reduce size of) the abrt cache (/var/cache/abrt)? Perhaps something similar to "yum clean all"?
View 1 Replies View RelatedI saw Gnome version 3 in gnome website. It is looking nice. Can i get that in F14? What is the version of Gnome in F14? How to reduce the desktop icon size in F14?
View 4 Replies View Relatedthe default icons on the gnome desktop are quite big in size.. how to reduce default icon size ?also I want to know if there's a similar tool like msconfig to manage start-up programs in Ubuntu?
View 4 Replies View RelatedI'm new to Ubuntu Netbook Remix. I love it. I'm using it for web dev with a LAMP and Rails installed. Everything is peachy.I would much prefer the icons in the launcher to be a lot smaller though, anyone have any idea how to scale them down? I reckon about 75% the size they are now would be about perfect.
View 2 Replies View Relatedi have /var mounted on /dev/sda4 which consists of 38 GB i want to get 8 GB from /dev/sda4 as this partion will remain of 30 GB.how can i get 8GB in such a way that my OS will not hurt.
View 2 Replies View RelatedI installed Debian 8 Jessie with full disk encryption and chose to have everything on the same partition. After install, I notice that my 8GB laptop has a 16GB swap. Is there a way to reduce the swap to 8GB (or maybe 4) whilst not affecting the encryption?
I have a 1TB HDD so space is not an issue but I dislike such waste. The setup used LVM.
My laptop has 2Gb of ram, 4Gb of swap, 40Gb hdd and an intel pentium 1.40GHz cpu, even when compiling stuff or maxing out everything the 4Gb of swap is never touched, with such a small hdd I'd like to reduce the swap to about 2Gb (just in case) to free up some space, does anyone know what commands/tools are available to accomplish this?
View 3 Replies View Relatedi am looking for an image manipulator that will run on KDE and lets me convert hundreds of jpgs (> 1 MB each) at once into an emailable size like 50-200 kb each, so i do not have to do that for every picture, one by one.
View 3 Replies View RelatedCan the size of the Ubuntu desktop window be reduced so that it displays on a monitor or via a data projector with a surrounding black border? If so, how? The tragicomic chain of events which leads to the question is as follows. Community group, short of cash, want to equip lecture room. Pull-down screen is set up permanently on one wall. Contractor sets up old data projector via ceiling mount. Data projector is just too far away from wall, such that image cannot be reduced sufficiently by the data projector to fit on the screen.
Annoyingly the image, as displayed, is only slightly too large - just enough to lose the top and bottom panels, Applications menu, File Menu on full-size windows, Indicator applet, Trash, and restore desktop button. The data projector is hooked up via VGA cable to a recycled PC running Ubuntu 10.04 with proprietary NVidia driver (version 173) for GeForce 8400 GS. I'll give anything to be able to do this on the PC, rather than having to move the projector!
The icons in the applications pane are very big, I need to scroll multiple times inorder to reach the last program. How to reduce the icon size, so that all the installed programs can be visualized without to much scrolling?
View 14 Replies View RelatedI would like to reduce the font size of all menu entries in all common applications (e.g. Terminal, Firefox, File Browser,...).
View 1 Replies View RelatedI have been asked to investigate some of our servers that run tripwire 2.3.0 on Red Hat Linux Advanced Server release 2.1AS (Pensacola)
We have the reports emailed to us using cron and twprint -m r -r report -t 4, it has been growing steadily and today it was 9mb It seems the database records go back to before 2004 and are being compared against today's files.
I really need to be informed what needs to be done to tripwire to keep it serviced through cron. I have tried to google this but could not find any information that seemed to answer my questions.
Looking at the following guide url step 6 talks about "Updating the Database after an Integrity Check" using
Code:
# tripwire --update --twrfile /var/lib/tripwire/report/<name>.twr Should I be using this command or should I be re-creating the db every month or so and using the #tripwire -init?
Extract from report -
Quote:
-------------------------------------------------------------------------------
Section: Unix File System
-------------------------------------------------------------------------------
Rule Name Severity Level Added Removed
Modified
--------- -------------- ----- ------- --------
Invariant Directories 66 0 0 0
code....
I need to understand how to change the expected to the observed so the db will be up to date.
I would also like some of the rules explained:What does removed and added mean? Is it removed as it has not changed and added if it finds a new one that has?
Code:
-------------------------------------------------------------------------------
Rule Name: System boot changes (/lib/modules)
Severity Level: 100
-------------------------------------------------------------------------------
----------------------------------------
Added Objects: 3075
----------------------------------------
code....
I have a home directory which is mounted on the LVM partition,How can i reduce the size of LVM partiotion without loosing the data on home directory...whenever i use lvreduce command it show me a warning mesg that the whole data will be lost...reducing the size of LVM partition without loosing my home directory data.
View 1 Replies View RelatedAre there software that can split big file size into small file size in Linux?
View 1 Replies View RelatedI was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.
But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??
is lvresize with --resizefs options re-size the Logical Volume and then re-size the file system? i mean we don't need to use resize2fs?I looked at man pages but it doesn't explain this option.
View 3 Replies View Related