Sponsored Content
Full Discussion: Resizing file
Top Forums UNIX for Dummies Questions & Answers Resizing file Post 46585 by jsilva on Tuesday 20th of January 2004 08:38:30 AM
Old 01-20-2004
Hi,

I'm going to try to explain with an example...
If you have a file of 2049 bytes and if each block has a size of 2048 bytes, that file will occupy 2 blocks, wasting 4096-2049 bytes... got it ? With this in mind, if you have thousands of small files with a little more of 2048 bytes, you can try to reduce them and get some free disk space...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

filesystems resizing

I want to resize my filesystem partitions. Reason is that I have 11GB of disk space unused by Unix which divvy reveals. Is there a way I could resize my filesystems without doing a reinstallation. The secondary problem is that the boot image is too large for a diskette (5MB). I'm running SCO... (10 Replies)
Discussion started by: sshokunbi
10 Replies

2. UNIX for Dummies Questions & Answers

resizing slices

I downloaded the Solaris recommended patched for x86 and tried to install it, but I got the message that I dont have enough disk space. I don't want to install the patches without the option to back out. Anyway I did a df -k and found that my root mount point is in 948MB whereas my /export/home is... (5 Replies)
Discussion started by: dangral
5 Replies

3. UNIX for Dummies Questions & Answers

Resizing File-Systems

can someone tell me the basic steps needed to resize and existing filesystem that already has data on it? thanks I dont need to be pointed to a website so any real time real life advice or help will be wholly appreciated (4 Replies)
Discussion started by: TRUEST
4 Replies

4. AIX

Resizing VG with mirror

Dear Friends, I would like to know if there is any chance to expand a Volume Group, If this VG have a mirror. If there is any chance to do this what would be the safer way to avoid lost any data. Sorry about my English.:D Thanks a lot. (1 Reply)
Discussion started by: chrispaz
1 Replies

5. Filesystems, Disks and Memory

Help with resizing partitions

Hi First post :o I have recently used Acronis (Backup software for data backup and disaster recovery in Windows and Linux - Acronis) to create identical systems that I need to build. Everything works OK, but one of the machine has a bigger harddisk (250G) than the one I used to create the... (2 Replies)
Discussion started by: forte712
2 Replies

6. SuSE

lvextend on ext3 resizing

Hi all IM very curious about one thing Im currently playing with a test server SLES x64 SP2, and I got to a serious issue which is really sorry for the word pissing me off. :mad: I created an pv, then vg and finaly some lv's which is fine. I mounted then and everything worked fine... (0 Replies)
Discussion started by: kl1ngac1k
0 Replies

7. Solaris

Parition Resizing

Is there a way to take space from the /opt slice (/dev/dsk/c1t0d0s5) and then put it in the /var (/dev/dsk/c1t0d0s1)? In theory, I should be able to ufsdump /opt and /var to another drive. Use disk label to resize those two slices (ex. take 10G from opt and add to /var) and then newfs and dump back... (1 Reply)
Discussion started by: adelsin
1 Replies

8. Solaris

vxfs online resizing

Hi, I have two filesystems called /u009 and /u008. I need to release 60gb from /u009 and add it to /u008 fs through fsadm command.. these are vxfs filesystem..its urgent.. thanx in advance (5 Replies)
Discussion started by: bpsunadm
5 Replies

9. Solaris

Resizing a disk

I'm used to using AIX but a new box running Solaris I need a little help with. The disk are presented from a SAN, the disk needing to change is presented as 148GBs drive which was allocated to a file system as the same. I need to change that without losing any data. I know I can change the disk... (7 Replies)
Discussion started by: ltlawnman
7 Replies

10. HP-UX

Some doubts about resizing fs's in HP-UX

Hello, I'm new to HP-UX and I'm not sure about some concepts related to resizing fs's under this OS. First of all I'm only asking about resizing ONLINE, it means, without having to umount the fs nor rebooting, etc. Q1. I've read that in order to resize a fs online there are 2 requirements:... (3 Replies)
Discussion started by: asanchez
3 Replies
newfs(8)						      System Manager's Manual							  newfs(8)

Name
       newfs - construct a new file system

Syntax
       /etc/newfs [ -N ] [ -n ] [ -v ] [ mkfs-options ] special disk-type

Description
       The command is a front-end to the program.  The program looks up the type of disk a file system is being created on in the disk description
       file calculates the appropriate parameters to use in calling then builds the file system by forking If the file system is a root partition,
       installs the necessary bootstrap program in the initial 16 sectors of the device.

       If there is no disk description for the specified disk type in the file, the program will use the subroutine to derive disk geometry infor-
       mation from the controlling device driver.  This functionality is provided for MSCP and SCSI disks.

Options
       -N	 Runs in no update mode.  In this mode, will not write to

       -n	 Prevents the bootstrap program from being installed.

       -v	 Instructs to print out its actions, including the parameters passed to

       Options which may be used to override default parameters passed to are:

       -s size	 The size of the file system in sectors.

       -b block-size
		 The block size of the file system in bytes.

       -f frag-size
		 The fragment size of the file system in bytes.

       -t #tracks/cylinder
       -c #cylinders/group
		 The number of cylinders per cylinder group in a file system.  The default value used is 16.

       -m free space %
		 The percentage of space reserved from normal users; the minimum free space threshold.	The default value used is 10%.

       -o optimization
		 Specifies whether the file system will optimize for space or for time.

       -r revolutions/minute
		 The speed of the disk in revolutions per minute (normally 3600).

       -S sector-size
		 The size of a sector in bytes (almost never anything but 512).

       -i number of bytes per inode
		 This specifies the density of inodes in the file system.  The default is to create an inode for each 2048 bytes  of  data  space.
		 If fewer inodes are desired, a larger number should be used; to create more inodes a smaller number should be given.

Files
       For disk geometry and file system partition information

       To actually build the file system

       For boot strapping program

See Also
       disktab(5), fs(5), chpt(8), fsck(8), format(8v), creatediskbyname(3x), mkfs(8), tunefs(8)
       "A Fast File System for UNIX", Supplementary Documents, Volume 3: System Manager

																	  newfs(8)
All times are GMT -4. The time now is 07:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy