Shrink Volume or Partition Size

Hi,
This is my first questions in Sun Forums, I would like to shrink partition size because I created a volume and added /export/home to this volume and then used growfs command to get the new size. Now, I removed the volume, whenever I try to mount it says something about unexpected size. How can I shrink it ?
Regards,

AFAIK there is no way to shrink a volume in UFS - I have always made the new smaller volume, then used tar|rsync|cpio to move the data.

Similar Messages

  • Best practice of expanding partition size

    Hi,
    I am just wondering what's the best practice of expanding a partition. Currently the server I am working in has the partitions configure as below:
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/mapper/VolGroup01-LogVol00
    5046848 4630796 155548 97% /
    /dev/sda1 101086 50293 45574 53% /boot
    tmpfs 4087296 2388360 1698936 59% /dev/shm
    /dev/sda3 5162828 141544 4759024 3% /tmp
    /dev/sdb1 1923068 734956 1090424 41% /fs0
    /dev/sdb2 1923084 70908 1754488 4% /fs1
    /dev/sdc1 89406276 68095788 16768916 81% /fs2
    /dev/sdc2 13804204 7061912 6041056 54% /fs3
    /dev/sdb3 6474880 4509556 1636416 74% /fs4
    Let's say I want to increase /fs2 which is /dev/sdc1 by another 15GB. I can go into the VMware and increase the disk size by 20GB but how will I go about increasing the partition size without affecting other partitions?
    Most of the instructions I see online basically creates a new partition but I want to avoid creating a new partition. So is it possible to do it?
    Thanks.

    You cannot increase a partition on a disk without affecting other partitions on the same disk unless it is the last partition. You will have to completely re-organize your partitions and restore from backup. You can however extend partitions that are under LVM control by adding a free LVM controlled partition or disk and assign it to any existing LVM volume in order to increase it's capacity. There is plenty of documentation and info available on the web. If you plan to increase your LVM root volume you need to boot form external media.
    Since you are using VMware there is actually no need to create multiple partitions on any disk. You can simply put each partition on it's own virtual disk. Then after you increase the underlying virtual disk, you can use "lvextend" for devices under LVM, or "gparted" to modify the partition, and use the "resize2fs" command to adjust the file system, even while the mounted volume is online.

  • Solaris 10 Max Partition size

    Hi,
    I would like to know the maximum partition size that Solaris 10 can support/create.
    We have a Sun StorEdge 6920 system with a 8 TBytes, based on 146 GBytes Hard Disks.
    Is it possible to create a 4 TBytes partition?
    if not, any suggestions are appreciated.

    Look to EFI, allows filesystems built to large TB sizes if you needed.
    Per SUN:
    Multi-terabyte file systems, up to 16 Tbyte, are now supported under UFS, Solaris Volume Manager, and VERITAS's VxVM on machines running a 64-bit kernel. Solaris cannot boot from a file system greater than 1 Tbyte, and the fssnap command is not currently able to create a snapshot of a multi-terabyte file system. Individual files are limited to 1 Tbyte, and the maximum number of files per terabyte on a UFS file system is 1 million.
    The Extensible Firmware Interface (EFI) disk label, compatible with the UFS file system, allows for physical disks exceeding 1 Tbyte in size. For more information on the EFI disk label, see System Administration Guide: Basic Administration on docs.sun.com. "
    Found this at:
    http://www.sun.com/bigadmin/features/articles/solaris_express.html
    So you may want to look into EFI, which is different way of partitioning the disk.

  • Expanding windows 7 partition size ...

    Hello,
    I did some searching around and found several opinions / answers to the subject. I'm not sure which direction to take - one option being Paragon's CapTune software, and the other being the Disk Management Utility in Windows 7, which should allow you to expand the disk.
    The reason for me posting is two-fold. I attempted the Disk Management option, and found that the 'Extend Volume' option is not available for my Bootcamped drive. I was wondering if anyone had any thoughts on this and why it wouldn't work.
    Also, any opinions on CampTune would be great.
    What about VMWare Fusion? Could this alone expand a partition size?
    I know this is a topic that has been spoken about (probably quite a bit), but I was hoping to get some more personal feedback. What is the best way to do this? If the answer is start over with Bootcamp, that is also acceptable.
    Thank you,
    n
    Message was edited by: daidalos62

    Paragon. I'd buy the full Paragon Hard Disk Manager™ 2011 Suite
    That includes cloning Windows to SSD, to another drive, CampTune (resizing) and HFS access. I used it over the weekend to move Windows to an SSD (but that was using dedicated drives, not hybrid Windows on Mac setup. Took all of 20 minutes and able to boot.
    So you can always try backup both OS systems, and then restore each.
    I'd say post on their forum, but threads and questions seem to go unanswered or very little activity and input, and of course quiet for 2 weeks holidays.
    VMs are a totally different animal and nothing to help or do with partitioning.
    http://www.paragon-software.com/home/hdm-personal/

  • Specified a smaller partition size than the filesystem, using parted

    I felt so sorry to make such a stupid mistake:
    I shrinked the filesystem size with resize2fs, in the next step, I used parted to resize the corresponding partition. But unfortunately, because parted treated 1GB as 1000MB, which is quite different from the Linux system, that made me specified a smaller partition size than filesystem size. As you can predict, this ruined the filesystem. How can I restore my files?
    Last edited by victl (2014-12-07 17:06:55)

    victl wrote:
    ackt1c wrote:Boot Live CD and mount the partition, copy necessities.
    Thank you, I'll try. But is there any method to avoid data lose?
    Backups.
    Not a Sysadmin issue, moving to NC...

  • Increase Mac partition after shrink Windows bootcamp partition

    I have a Mid 2010 Macbook Pro running Mac OS X 10.9.4 with a 500GB HD.
    The HD is partitioned with 370 GB to Mac and 128 GB to Windows and I decided to shrink the Windows partition to 65 GB because I needed more space on Mac, and I barely use Windows.
    I resized the Windows Partition using Mini Tool Partition Wizard and moved it to the end of the disk, leaving the empty right after Mac partition.
    I'm able to boot Windows partition and use it normally. The Windows C: disk now has 65 GB.
    When I boot on Mac OS X and try to use disk utility to increase the Mac partition, it says that the Windows partition still has 128 GB.
    It is possible to use the empty space I created?
    Here's some information about my partitions:
    $ sudo gpt -r -vv show disk0
    gpt show: disk0: mediasize=500107862016; sectorsize=512; blocks=976773168
    gpt show: disk0: Suspicious MBR at sector 0
    gpt show: disk0: Pri GPT at sector 1
    gpt show: disk0: Sec GPT at sector 976773167
          start       size  index  contents
              0          1         MBR
              1          1         Pri GPT header
              2         32         Pri GPT table
             34          6        
             40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
         409640  723603632      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
      724013272    1269544      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      725282816  251490304      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
      976773120         15        
      976773135         32         Sec GPT table
      976773167          1         Sec GPT header
    $ sudo gdisk /dev/disk0
    GPT fdisk (gdisk) version 0.8.10
    Warning: Devices opened with shared lock will not have their
    partition table automatically reloaded!
    Partition table scan:
      MBR: hybrid
      BSD: not present
      APM: not present
      GPT: present
    Found valid GPT with hybrid MBR; using GPT.
    Command (? for help): p
    Disk /dev/disk0: 976773168 sectors, 465.8 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): E34EA0BB-B94A-4854-AF05-02E0D06A48E5
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 976773134
    Partitions will be aligned on 8-sector boundaries
    Total free space is 21 sectors (10.5 KiB)
    Number  Start (sector)    End (sector)  Size       Code  Name
       1              40          409639   200.0 MiB   EF00  EFI System Partition
       2          409640       724013271   345.0 GiB   AF00  Macbook HD
       3       724013272       725282815   619.9 MiB   AB00  Recovery HD
       4       725282816       976773119   119.9 GiB   0700  BOOTCAMP
    $ sudo fdisk /dev/disk0
    Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]
    Signature: 0xAA55
             Starting       Ending
    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
    1: EE 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID>
    2: AF 1023 254  63 - 1023 254  63 [    409640 -  723603632] HFS+       
    3: AB 1023 254  63 - 1023 254  63 [ 724013272 -    1269544] Darwin Boot
    4: 0C 1023 254  63 - 1023 254  63 [ 725282816 -  251490304] Win95 FAT32L

    Power off your computer. Power up your computer while pressing and holding pressed the option/alt key. When the boot manager appears, select OSX to boot.

  • Partition size in bootcamp

    Very basic question but I can't seem to find an answer to this. I want to decrease the size of the partition for Bootcamp. How can I do that? As well, If I want to delete Windows as well as Bootcamp, how can I do that also? Thanks for any help I can get.

    Hi and welcome to Discussions,
    For changing the partition size of a BootCamp Windows partition CamTune from Paragon http://www.paragon-software.com/home/camptune/ would be my choice.
    The completely remove the WIndows partition use the BootCamp Assistant again and choose "revert back to single OSX Volume".
    Read the BootCamp Install Guide from inside the BootCamp Assistant or to be found here http://www.apple.com/support/bootcamp/
    Regards
    Stefan

  • Partition sizes and mount points

    Are there any guidelines or recommendations for partition sizes, either absolute (MB, GB) or relative (%) for a fresh NOWS SBE 2.5 server for general office use - file, print, G'wise email, ifolder.
    Which partitions should be separate?
    I have about 450 GB to play with: 140 GB mirrored, 420 GB RAID 5
    Thanks, James.

    Originally Posted by jmclean
    Are there any guidelines or recommendations for partition sizes, either absolute (MB, GB) or relative (%) for a fresh NOWS SBE 2.5 server for general office use - file, print, G'wise email, ifolder.
    Which partitions should be separate?
    I have about 450 GB to play with: 140 GB mirrored, 420 GB RAID 5
    Thanks, James.
    Hello James,
    Refer to the Novell Open Workgroup Suite Small Business Edition 2.5 Issues Readme
    2.3 Partitioning NOWS SBE 2.5
    The pre-configured partitions selected by the install are currently the only supported partitions available. Although you can change file system types to increase swap partition size, new partitions are not supported.
    The default partitions are:
    /boot
    swap
    / (root)
    All data is in the "/" partition unless you intend to use NSS. NSS Pools must be created on an uninitialized disk or uninitialized logical volume so a LUN on your RAID5 array would be a logical candidate. For more information about installing NSS see the Issues Readme section 2.8 Installing Novell Storage Services.
    Should you decide to deviate from the standard partitioning, the partition sizes you choose would depend on the number of applications you intend to install and the amount of user data you need to store and not so much on the number of users on the system. Every deployment is different!

  • After Leopard install I have 2 volumes of equal size

    After Leopard install I have 2 volumes of equal size. One has Leopard and the other has Tiger. How can I delete, remove, or get rid of the volume with Tiger on it? As I have upgraded to Leopard how can tell which one I have, i.e., 10.5 or 10.5.X?
    Thanks for your help.

    For some reason the Leopard installer kept your old Tiger partition instead of deleting it. It's probably your fault, but that doesn't matter...
    Before you do this, back up any data you still want from the Tiger partition. Also rename it to something that will differentiate it from your other volume(s?). Also back up your Leopard partition before any of this.
    Take your Leopard install disk, pop it in, reboot while holding C (or just click Install Leopard), choose a language, then from the menubar click Utilities, then Disk Utility. Once there, click your hard drive (not your Leopard or Tiger volumes) in the sidebar, go to the Partition tab on the right, click your Tiger volume's square (NOT YOUR LEOPARD VOLUME!!!), click the minus sign under that little graph, and click Partition. Then once that's done, drag the little resize line thingy on the bottom-left of your Leopard volume's square so that it fills up the entire area there.
    If you can't make the Leopard volume take up the entire drive, you'll have to wipe the entire hard drive and restore from a backup. Yes, you will have to unless you're okay with having less space then you can. (Why can't GParted resize HFS+?!?! WHY?!!?!?!!??!)

  • Shrink system NTFS partition

    Hi,
    Is it possible to shrink system NTFS partition more than 50% without data loose
    with standard tools installed on preinstalled Widows 7 on Toshiba Notebook Satellite Pro.
    Problem is $MftMirr file which is located in the middle of NTFS partition.
    What tools are recommended ? Who can do that ?
    Thanks

    I suppose that you might think of:
    http://windows.microsoft.com/en-us/windows7/Formatting-disks-and-drives-frequently-asked-questions
    But it isn't exacly answer to my question.
    The question is it any toshiba or microsoft supported tools to relocate MFT Mirror file on NTFS partition.
    Without such tool you can only shrink to 50% orginal size of partition.
    Does the reinstall of OS is the best solution ?

  • HT5639 I am attempting to install windows 7 ultimate on a mid2012 production macbook pro using Bootcamp 5 in Mountain Lion. Whenever I set the partition size and tell it to continue, the program quits unexpectedly. I have done this about 5 times now. Sugg

    The lead-in above pretty much states the problem. I am attempting to install Windows 7 from a disk, but that is not the issue. Boot Camp 5 just quits and reopens. I then repeat. Help.

    I am about to run specialized GIS software that may or may not need the full machine resources. I am an attorney who uses QuickBooks for my accounting. The Mac version does not do as much as the Windows version. This is from both Apple and Quick Books professionals. I am using Parallels Desktop version 8 at this time. It does not support QuickBooks Windows version per Parallels. Any other questions? I am a highly competent PC user who is new to Macs. I am entitled to my own configuration choices. That said, I know when I need help which is now.
    As to the free space issue I have 665.18 GB free space out of 749.3 GB on the drive. I am not trying to run the 32 bit version. I know that it requires the 64 bit version. Besides, it does not get that far in the process. As I said Boot Camp asssitant terminates unexpectedly as soon as you hit the continue button after setting the partition size. Therefore I conclude that it does not have a chance to see which version of Windows that I am using. I am using Windows 7 Ultimate 64 bit version in the virtual engine (to use Parallels speak), but again Boot Camp would not see that since it is not running. It can't run at the momenet because Apple just installed a new hard drive and I have just restored the data from TIme Machine and Parallels needs reactivated, which I have not done yet deliberatley. With all of this addtiional information do you have any further suggestions? Thanks for your time and interest my issue.

  • 1.8TB Hitachi HDS722020:  "Partition size is not a multiple of 4K"

    I picked up a 1.8TB Hitachi HDS722020 external USB drive, for an enlarged Time-Machine disk. The box says that it's usable on a Mac, but Disk Utility doesn't seem to like it.
    When I attempt to erase it, it sits there, indefinitely as far as I can tell, trying to format it saying, "Partition size is not a multiple of 4K." I am able to format it as MS-DOS FAT32, but not in any MacOS (Extended) format.
    Since it seems to be complaining about partition sizes, I was able to it into one partition containing almost all of the disk content, and another, "junk" partition that I presumably won't use very often. Unfortunately, the smallest "junk" partition it would let me create was about 190GB.
    So, waddaya folks think? Should I return it to the store as a bad disk, or is there any reason to think that it's behaving in some sense correctly?

    Hello mr88cet
    In Disk Utility highlight the external hard drives first icon on the left side list and select the Partition tab. Then decide on the # of partitions you want, then click the Option box and set the Partition map Scheme to GUID Partition Table. Now then you should be able continue to on with any multiple partition sizing (if more than 1 was selected) and format the drive Mac OS Extended (Journaled)...
    Just follow the Disk Utility prompts, it's really easy after you've done it a time or two.
    Also see > http://www.kenstone.net/fcphomepage/partitioningtiger.html
    Dennis

  • Hello Everyone,      I have a MacBook older model with me.I am running 10.7.6 on that, I was trying to use BootCamp to install windows on my mac. Since BootCamp can only work on a single Volume, I partitioned my Hard Disk to one volume.   Using BootCamp I

    Hello Everyone,
              I have a MacBook older model with me.I am running 10.7.6 on that, I was trying to use BootCamp to install windows on my mac. Since BootCamp can only work on a single Volume, I partitioned my Hard Disk to one volume.
    Using BootCamp I installed windows and everything worked fine. After installing windows and testing everything, I switched back to OS X and this time I tried to make another partition on my single portioned Mac volume and named it Backup. That too worked. Now I have three Volumes
    1)Development2)Backup3)BootCamp.
    Next when I switched to Windows, It should the classic error, No Bootable device found, please insert a Bootable CD and press any key. When I tried to enter my Mac OS X install DVD and by pressing option key, it does not show me the proper Mac OS X development volume. It keeps going back to the No bootable device found message.
    Any help will be much appreciated
    Regards
    Mithun

    you can't add a partition in between - you put Windows to a new partition number.
    GPT (GUID)
    EFI
    Mac HFS
    Lion Recovery
    Windows
    And now you have two HFS
    One partition and one Windows (plus Lion Recovery).
    If you were to have more, it can't be before Windows for one thing.

  • Boot Camp Partition Size/External HDD recommendation

    After updating software, hardware, downloading Boot Camp Asst, and installing Windows XP Pro (have not yet downloaded Mac drivers or software, nor have I submitted registration of my WinXP Pro software, still have 29 days), I realized that I set the partition size too small and need to resize it. I read in other postings that I can copy the Windows partition to an external HDD from the Mac OSX side, then run Boot Camp again, delete the "too small" Windows partition, then run Boot Camp again and reset the partition size larger. Does anyone have detailed instructions to do this?
    Also, can anyone suggest an external HDD for this purpose? I need to be able to share files between a PC and my 17" MBP running OS X 10.4.6. Specifically, I need to share (for editing purposes) audio files created with PC-based software with the Windows side of my MBP. The PC has XP Pro and MacDrive6 for Windows installed. I read the "Sharing a FireWire drive between Mac and PC" document on "The X Lab" website and, based on this, am leaning toward getting a FW (not USB) HDD and formatting it in Mac OS Extended format (not sure how to do this but cross that bridge when I get there). Does this sound reasonable? When I run Boot Camp again and have to choose between NTSF and FAT32 should I choose NTSF? Will I also need "SharePoints" or other software to share the Mac's FW drive with the PC?
    I may have the option to share and backup files over the workplace network (if I take the time to set it up). Does anyone know if there advantages/disadvantages to this option?
    Thanks for answers to these questions. Any help would be very much appreciated. Best!

    Frank,
    You might want to check the Boot Camp discussions:
    http://discussions.apple.com/forum.jspa?forumID=1165
    In case no one in this part of the board knows.

  • Maximum Partition Size for External Drive using DU

    Hello,
    I just purchased a 750g Maxtor USB drive for use with Time Machine. When I went into DU to partition and format the drive I was surprised to find that every time I went to create a single partition using all available space, the operation would error out. I was however able to create two partitions with the largest one sized around 650g or so. I was using the Mac file system.
    This just seems odd to me. Does OS X have a maximum allowable partition size that prevents me from creating one large partition?
    Thanks,
    Robert

    Hi Robert
    You should be able to delete the partition, try again using the instruction in the following article:
    http://macs.about.com/od/applications/ss/diskutilitysize_5.htm
    Dennis

Maybe you are looking for