Sponsored Content
Full Discussion: resize harddisk partions
Special Forums Hardware Filesystems, Disks and Memory resize harddisk partions Post 302291705 by lowbyte on Thursday 26th of February 2009 07:31:32 AM
Old 02-26-2009
Hey,

which file system did you use? Perhaps you can use growfs?

regards
lowbyte
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

clone harddisk

Hi, i have to make an excect physical copie of a sun unix station harddisk. I have to make all partitions the same on about 60 harddisks, and also they should contain the same data/info. I have hade a look at commands 'DD' and 'UFSDUMP' but both of them are not sufficient enough. Can... (5 Replies)
Discussion started by: dirk2
5 Replies

2. UNIX for Dummies Questions & Answers

server harddisk upgrade

hi friends, one of my clnts wants his Hard drive to be ugrded . He is currently using SCO unix 5.04 on a 4.3 Gig SCSI drive. He wants me to upgrd it to 18 Gigs . All he wants is that the data / programs / userfiles shall be intact. he has 3 user slices /user1, /user2 , /user3 presently... (3 Replies)
Discussion started by: /etc/passwd
3 Replies

3. HP-UX

partions

How to create a new partion in new disk (1 Reply)
Discussion started by: arunachalam
1 Replies

4. UNIX for Dummies Questions & Answers

SCSI Harddisk

hey guys this is my problem I have SCO unix installed on a IDE h/drive. I want to add a SCSI hard drive, how do i do that within UNIX (1 Reply)
Discussion started by: kwame.neilsen
1 Replies

5. Solaris

SunOS 5.6 vs 5.8 HardDisk

Hi all, I am not sure I am in the correct forum or not, but I would appreciate if somebody from here can help me out. My processing equipment currently is using Unltra5 SunOs 5.6 with 8.6 GB hard disk, newer UltraSPARC SunOS 5.8 is with higher hard disk capacity. I am wondering how much hard... (2 Replies)
Discussion started by: uvex
2 Replies

6. UNIX for Advanced & Expert Users

Harddisk partation problem

Hello! My harddisk is RZ1CB-CS SCSIWC.It runs radar application software on unix operating system.Now dev\rz0a partation not found.So it can't run application recorded at rz0a .How can i solve this problem.? (1 Reply)
Discussion started by: akzin
1 Replies

7. UNIX for Advanced & Expert Users

Harddisk partation problem

Hello! My harddisk is RZ1CB-CS SCSIWC.It runs radar application software on unix operating system.Now dev\rz0a partation not found.So it can't run application recorded at rz0a .How can i solve this problem.? (1 Reply)
Discussion started by: akzin
1 Replies

8. Solaris

Image from harddisk

Can i take image from all data in SCSI hard-disk which work in foxboro workstation and extract it again on another hard disk ?:b: thanks (4 Replies)
Discussion started by: hatemeid
4 Replies

9. Ubuntu

Problem mounting harddisk

Hi all I am having a great deal of trouble mounting a harddisk on my Ubuntu 9.10 desktop. Output from "fdisk -l": Disk /dev/sda: 640.1 GB, 640135028736 bytes 86 heads, 15 sectors/track, 969196 cylinders Units = cylinders of 1290 * 512 = 660480 bytes Disk identifier: 0x00000001 ... (5 Replies)
Discussion started by: jnymarkp
5 Replies

10. AIX

Can AIX be installed on a USB Harddisk

Hi, I have a USB harddisk (USB-SATA to SATA Harddisk). Is it possible to install AIX on this either from fresh install or using mksysb facility, get it to boot from USB? Was thinking along the line like LInux where you can install and boot a working OS from USB with tools like unetbootin or... (1 Reply)
Discussion started by: meng
1 Replies
growfs(1M)						  System Administration Commands						growfs(1M)

NAME
growfs - non-destructively expand a UFS file system SYNOPSIS
/usr/sbin/growfs [-M mount-point] [newfs-options] [raw-device] DESCRIPTION
growfs non-destructively expands a mounted or unmounted UNIX file system (UFS) to the size of the file system's slice(s). Typically, disk space is expanded by first adding a slice to a metadevice, then running the growfs command. When adding space to a mirror, you expand each submirror before expanding the file system. growfs will ``write-lock'' (see lockfs(1M)) a mounted file system when expanding. The length of time the file system is write-locked can be shortened by expanding the file system in stages. For instance, to expand a 1 Gbyte file system to 2 Gbytes, the file system can be grown in 16 Mbyte stages using the -s option to specify the total size of the new file system at each stage. The argument for -s is the number of sectors, and must be a multiple of the cylinder size. Note: The file system cannot be grown if a cylinder size of less than 2 is specified. Refer to the newfs(1M) man page for information on the options available when growing a file system. growfs displays the same information as mkfs during the expansion of the file system. If growfs is aborted, recover any lost free space by unmounting the file system and running the fsck command, or run the growfs command again. OPTIONS
Root privileges are required for all of the following options. -M mount-point The file system to be expanded is mounted on mount-point. File system locking (lockfs) will be used. newfs-options The options are documented in the newfs man page. raw-device Specifies the name of a raw metadevice or raw special device, residing in /dev/md/rdsk, or /dev/rdsk, respectively, including the disk slice, where you want the file system to be grown. EXAMPLES
Example 1 Expanding nonmetadevice slice for /export file system The following example expands a nonmetadevice slice for the /export file system. In this example, the existing slice, /dev/dsk/c1t0d0s3, is converted to a metadevice so additional slices can be concatenated. # metainit -f d8 2 1 c1t0d0s3 1 c2t0d0s3 # umount /export Example 2 Associate /export with new metadevice Edit the /etc/vfstab file to change the entry for /export to the newly defined metadevice, d8. # mount /export # growfs -M /export /dev/md/rdsk/d8 The first example starts by running the metainit command with the -f option to force the creation of a new concatenated metadevice d8, which consists of the existing slice /dev/dsk/c1t0d0s3 and a new slice /dev/dsk/c2t0d0s3. Next, the file system on /export must be unmounted. The /etc/vfstab file is edited to change the entry for /export to the newly defined metadevice name, rather than the slice name. After the file system is remounted, the growfs command is run to expand the file system. The file system will span the entire metadevice when growfs completes. The -M option enables the growfs command to expand a mounted file system. During the expansion, write access for /export is suspended until growfs unlocks the file system. Read access is not affected, though access times are not kept when the lock is in effect. Example 3 Dynamic Expansion of /export file system The following example picks up from the previous one. Here, the /export file system mounted on metadevice d8 is dynamically expanded. # metattach d8 c0t1d0s2 # growfs -M /export /dev/md/rdsk/d8 This example begins by using the metattach command to dynamically concatenate a new slice, /dev/dsk/c0t1d0s2, to the end of an existing metadevice, d8. Next, the growfs command specifies that the mount-point is /export and that it is to be expanded onto the raw metadevice /dev/md/rdsk/d8. The file system will span the entire metadevice when growfs completes. During the expansion, write access for /export is suspended until growfs unlocks the file system. Read access is not affected, though access times are not kept when the lock is in effect. Example 4 Expanding mounted file system to existing mirror The following example expands a mounted file system /files, to an existing mirror, d80, which contains two submirrors, d9 and d10. # metattach d9 c0t2d0s5 # metattach d10 c0t3d0s5 # growfs -M /files /dev/md/rdsk/d80 In this example, the metattach command dynamically concatenates the new slices to each submirror. The metattach command must be run for each submirror. The mirror will automatically grow when the last submirror is dynamically concatenated. The mirror will grow to the size of the smallest submirror. The growfs command then expands the file system. The growfs command specifies that the mount-point is /files and that it is to be expanded onto the raw metadevice /dev/md/rdsk/d80. The file system will span the entire mirror when the growfs command completes. During the expansion, write access for the file system is suspended until growfs unlocks the file system. Read access is not affected, though access times are not kept when the lock is in effect. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWmdu | +-----------------------------+-----------------------------+ SEE ALSO
fsck(1M), lockfs(1M), mkfs(1M), metattach(1M), newfs(1M), attributes(5) Solaris Volume Manager Administration Guide LIMITATIONS
Only UFS file systems (either mounted or unmounted) can be expanded using the growfs command. Once a file system is expanded, it cannot be decreased in size. The following conditions prevent you from expanding file systems: When acct is activated and the accounting file is on the target device. When C2 security is activated and the logging file is on the target file system. When there is a local swap file in the target file system. When the file system is root (/), /usr, or swap. SunOS 5.11 9 Dec 2003 growfs(1M)
All times are GMT -4. The time now is 10:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy