Sponsored Content
Full Discussion: reduce hard drive size
Operating Systems Solaris reduce hard drive size Post 302523988 by orange47 on Friday 20th of May 2011 02:16:43 PM
Old 05-20-2011
reduce hard drive size

I'm trying to reduce hard drive size (number of cylinders) in SPARC Solaris. Its easy to change last cylinder of last slice, but that cannot be done for slice2/backupslice because it insists on whole disk. If I try to change disk type/geometry, all slices get replaced with some 'default' configuration. What is the easiest way to do it?
 

10 More Discussions You Might Find Interesting

1. Solaris

How to reduce the size of a logical volume in solaris 9

Hi, I have the following problem. I just have a new machine with mirroring. The logical volume for /opt is dimensionned to 75 GB which is to much. I want a volume of 10 GB. How can I reduce the size ? I tried to reduce the size of the slice from 75 GB to 10 GB, but the size of the logical volume... (6 Replies)
Discussion started by: aribault
6 Replies

2. UNIX for Dummies Questions & Answers

Trying to copy old hard drive to new hard drive.

:confused: ........I have a new hard drive and I need to copy ALL info from the old to the new. I would like to use the dd command. I know the command is as follows...... dd if=/dev/rdsk/c1t1d0s0 of=/dev/rdsk/???????? Where I have the question marks is the problem. How do I find out what the... (4 Replies)
Discussion started by: shorty
4 Replies

3. SCO

Maximuim size hard drive in SCO 5.05

Does anyone remrmber what the maximum hard drive size is for SCO 5.0.5? Also, do I need to plug in the Cylinders/Heads/Sectors manually? I know in ver 5.0.7, you can go over 137GB. TiA (0 Replies)
Discussion started by: tbgeek
0 Replies

4. Filesystems, Disks and Memory

The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive

Hi I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies

5. HP-UX

How to reduce fil system size seen in bdf!

When i execute bdf, /home direcory seems 100% full. But when i check /home with 'du', total used memory is 30 MB in 1,4 Gb. how can I reduce this 100% to its real state? (11 Replies)
Discussion started by: akyuceisik
11 Replies

6. Shell Programming and Scripting

How to reduce font size in a file

HPUX 11iv2 #!/bin/sh Hi all. I have a script that results in the creation of an ascii file which is ultimately emailed out to several people. The email wraps each line so I would like to reduce the font size of the ascii file. I looked at nroff and also tr but it wasn't clear to me how to do... (2 Replies)
Discussion started by: lyoncc
2 Replies

7. Shell Programming and Scripting

command to reduce size of file/directory???

Hello, I want to compress any given file or directory. I used 1)gzip 2)zip But when I do "ls -l". I found that the zipped file is in fact greater in size than the original file. Can you please tell me the commands which will show me the difference in its size. (2 Replies)
Discussion started by: nsharath
2 Replies

8. SuSE

Reduce Size of serveur in LINUX-Suse

Hello, I do not know Linux. It is a black box. We have 2 virtuals servers (SAPVM01 and SAPVM06) in one physical server. The first virtual system (SAPVM01) has a total size of 420 Gb and a free space of 170 GB. A SAP system is running. The second virtual system (SAPVM06) has a total... (3 Replies)
Discussion started by: daniel04
3 Replies

9. UNIX for Dummies Questions & Answers

Unable to reduce the size of volume group?

My volume group of size 200 gb. out of which only 100 gb is used by 2 logical volumes /dev/vg00/lvol0 and /dev/vg00/lvol0 respectively (both are 50 gb each). Whenever i use vgreduce command to reduce the size of volume group i get below error. # vgreduce vg00 -a Physical volume... (16 Replies)
Discussion started by: pinga123
16 Replies

10. Red Hat

How to reduce inode size of /var?

Hi, inode size reached its 100% in /var Due to this i'am getting the error No space left on device my crond process is stopped and when i want to restart it it is showing the below error Starting crond: crond: can't open or create /var/run/crond.pid: No space left on device df -i o/p ... (3 Replies)
Discussion started by: Mohamed Thamim
3 Replies
fdisk(1M)						  System Administration Commands						 fdisk(1M)

NAME
fdisk - create or modify fixed disk partition table SYNOPSIS
fdisk [-o offset] [-s size] [-P fill_patt] [-S geom_file] [-w | -r | -d | -n | -I | -B | -t | -T | -g | -G | -R | -E] [--F fdisk_file] [ [-v] -W { fdisk_file | -}] [-h] [-b masterboot] [ -A id : act : bhead : bsect : bcyl : ehead : esect : ecyl : rsect : numsect] [ -D id : act : bhead: bsect : bcyl : ehead: esect : ecyl : rsect : numsect] rdevice DESCRIPTION
This command is used to do the following: o Create and modify an fdisk partition table on x86 systems o Create and modify an fdisk partition table on removable media on SPARC or x86 systems o Install the master boot record that is put in the first sector of the fixed disk on x86 systems only This table is used by the first-stage bootstrap (or firmware) to identify parts of the disk reserved for different operating systems, and to identify the partition containing the second-stage bootstrap (the active Solaris partition). The rdevice argument must be used to spec- ify the raw device associated with the fixed disk, for example, /dev/rdsk/c0t0d0p0. The program can operate in three different modes. The first is interactive mode. In interactive mode, the program displays the partition table as it exists on the disk, and then presents a menu allowing the user to modify the table. The menu, questions, warnings, and error messages are intended to be self-explanatory. In interactive mode, if there is no partition table on the disk, the user is given the options of creating a default partitioning or speci- fying the initial table values. The default partitioning allocates the entire disk for the Solaris system and makes the Solaris system par- tition active. In either case, when the initial table is created, fdisk also writes out the first-stage bootstrap (x86 only) code along with the partition table. The second mode of operation is used for automated entry addition, entry deletion, or replacement of the entire fdisk table. This mode can add or delete an entry described on the command line. In this mode the entire fdisk table can be read in from a file replacing the original table. fdisk can also be used to create this file. There is a command line option that will cause fdisk to replace any fdisk table with the default of the whole disk for the Solaris system. The third mode of operation is used for disk diagnostics. In this mode, a section of the disk can be filled with a user specified pattern, and mode sections of the disk can also be read or written. Menu Options The menu options for interactive mode given by the fdisk program are: Create a partition This option allows the user to create a new partition. The maximum number of partitions is 4. The program will ask for the type of the partition (SOLARIS, MS-DOS, UNIX, or other). It will then ask for the size of the partition as a percentage of the disk. The user may also enter the letter c at this point, in which case the program will ask for the starting cylinder number and size of the partition in cylinders. If a c is not entered, the program will determine the starting cylinder number where the partition will fit. In either case, if the partition would overlap an existing partition or will not fit, a message is displayed and the program returns to the original menu. Change Active (Boot from) partition This option allows the user to specify the partition where the first-stage bootstrap will look for the second-stage bootstrap, other- wise known as the active partition. Delete a partition This option allows the user to delete a previously created partition. Note that this will destroy all data in that partition. Change between Solaris and Solaris2 Partition IDs This option allows the user to switch between the current fdisk operating system partition identifier and the previous one. This does not affect any data in the disk partition and is provided for compatibility with older software. Use the following options to include your modifications to the partition table at this time or to cancel the session without modifying the table: Exit This option writes the new version of the table created during this session with fdisk out to the fixed disk, and exits the program. Cancel This option exits without modifying the partition table. OPTIONS
The following options apply to fdisk: -A id:act:bhead:bsect:bcyl:ehead:esect:ecyl:rsect:numsect Add a partition as described by the argument (see the -F option below for the format). Use of this option will zero out the VTOC on the Solaris partition if the fdisk table changes. -b master_boot Specify the file master_boot as the master boot program. The default master boot program is /usr/lib/fs/ufs/mboot. -B Default to one Solaris partition that uses the whole disk. -d Turn on verbose debug mode. This will cause fdisk to print its state on stderr as it is used. The output from this option should not be used with -F. -D id:act:bhead:bsect:bcyl:ehead:esect:ecyl:rsect:numsect Delete a partition as described by the argument (see the -F option below for the format). Note that the argument must be an exact match or the entry will not be deleted! Use of this option will zero out the VTOC on the Solaris partition if the fdisk table changes. -E Create an EFI partition that uses the entire disk. -F fdisk_file Use fdisk file fdisk_file to initialize table. Use of this option will zero out the VTOC on the Solaris partition if the fdisk table changes. The fdisk_file contains up to four specification lines. Each line is delimited by a new-line character(0fR). If the first character of a line is an asterisk (*), the line is treated as a comment. Each line is composed of entries that are position-dependent, are sepa- rated by ``white space'' or colons, and have the following format: id act bhead bsect bcyl ehead esect ecyl rsect numsect where the entries have the following values: id This is the type of partition and the correct numeric values may be found in fdisk.h. act This is the active partition flag; 0 means not active and 128 means active. bhead This is the head where the partition starts. If this is set to 0, fdisk will correctly fill this in from other informa- tion. bsect This is the sector where the partition starts. If this is set to 0, fdisk will correctly fill this in from other infor- mation. bcyl This is the cylinder where the partition starts. If this is set to 0, fdisk will correctly fill this in from other information. ehead This is the head where the partition ends. If this is set to 0, fdisk will correctly fill this in from other informa- tion. esect This is the sector where the partition ends. If this is set to 0, fdisk will correctly fill this in from other informa- tion. ecyl This is the cylinder where the partition ends. If this is set to 0, fdisk will correctly fill this in from other infor- mation. rsect The relative sector from the beginning of the disk where the partition starts. This must be specified and can be used by fdisk to fill in other fields. numsect The size in sectors of this disk partition. This must be specified and can be used by fdisk to fill in other fields. -g Get the label geometry for disk and display on stdout (see the -S option for the format). -G Get the physical geometry for disk and display on stdout (see the -S option for the format). -h Issue verbose message; message will list all options and supply an explanation for each. -I Forgo device checks. This is used to generate a file image of what would go on a disk without using the device. Note that you must use -S with this option (see above). -n Don't update fdisk table unless explicitly specified by another option. If no other options are used, -n will only write the master boot record to the disk. In addition, note that fdisk will not come up in interactive mode if the -n option is specified. -o offset Block offset from start of disk. This option is used for -P, -r, and -w. Zero is assumed when this option is not used. -P fill_patt Fill disk with pattern fill_patt. fill_patt can be decimal or hex and is used as number for constant long word pattern. If fill_patt is #, then pattern is block # for each block. Pattern is put in each block as long words and fills each block (see -o and -s). -r Read from disk and write to stdout. See -o and -s, which specify the starting point and size of the operation. -R Treat disk as read-only. This is for testing purposes. -s size Number of blocks to perform operation on (see -o). -S geom_file Set the label geometry to the content of the geom_file. The geom_file contains one specification line. Each line is delimited by a new- line character(0fR). If the first character of a line is an asterisk (*), the line is treated as a comment. Each line is composed of entries that are position-dependent, are separated by white space, and have the following format: pcyl ncyl acyl bcyl nheads nsectors sectsiz where the entries have the following values: pcyl This is the number of physical cylinders for the drive. ncyl This is the number of usable cylinders for the drive. acyl This is the number of alt cylinders for the drive. bcyl This is the number of offset cylinders for the drive (should be zero). nheads The number of heads for this drive. nsectors The number of sectors per track. sectsiz The size in bytes of a sector. -t Adjust incorrect slice table entries so that they will not cross partition table boundaries. -T Remove incorrect slice table entries that span partition table boundaries. -v Output the HBA (virtual) geometry dimensions. This option must be used in conjunction with the -W flag. This option will work for plat- forms which support virtual geometry. (x86 only) -w Write to disk and read from stdin. See -o and -s, which specify the starting point and size of the operation. -W - Output the disk table to stdout. -W fdisk_file Create an fdisk file fdisk_file from disk table. This can be used with the -F option below. FILES
/dev/rdsk/c0t0d0p0 Raw device associated with the fixed disk. /usr/lib/fs/ufs/mboot Default master boot program. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |x86 and SPARC | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
uname(1), fmthard(1M), prtvtoc(1M), attributes(5) DIAGNOSTICS
Most messages will be self-explanatory. The following may appear immediately after starting the program: Fdisk: cannot open <device> This indicates that the device name argument is not valid. Fdisk: unable to get device parameters for device <device> This indicates a problem with the configuration of the fixed disk, or an error in the fixed disk driver. Fdisk: error reading partition table This indicates that some error occurred when trying initially to read the fixed disk. This could be a problem with the fixed disk con- troller or driver, or with the configuration of the fixed disk. Fdisk: error writing boot record This indicates that some error occurred when trying to write the new partition table out to the fixed disk. This could be a problem with the fixed disk controller, the disk itself, the driver, or the configuration of the fixed disk. SunOS 5.10 19 Nov 2004 fdisk(1M)
All times are GMT -4. The time now is 06:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy