unused disk space

i Have alloted 20G in my vmware for solaris 10, upon installation, and some distribution of disk space to /,/opt,swap i just use 19G.

Can i still use the 1G? How? how to see the 1G? that i did not use? how can i use it?

appreciate your responce

Hi,

By using format command, create a slice of 1 GB. Mount it somewhere and start using. You will only be able to create the slice of 1 GB if you are having that much free space.

Please let us know if it doesn't resolve.

Thanks,
Deepak

after i use format,partition,label,quit,quit

then i run fsck -y to / and to the newly created partition.
then i reboot

then this is the result

GRUB

my box doesnt boot up anymore

I doubt there is 1 GB unallocated. It's likely either rounding errors or GB vs GiB.

How did you determine that your usable space in only 19G?.. Which cylinders spans "unused" 1G?.. The space, you've just formatted maybe had stored some system information...

ok, since i was stuck in GRUB, after i reboot the system. I reinstall again.
then i intent to use 25G, then i just use 20G of it.

so there is still 5G right??
then format,partition, etc..
then i mounted the 5G to new mount point..

then when you df -k,its all their..you can also write to the new file system..
but the problem is,, when i reboot the server, i was stuck in GRUB?

GRUB

doesnt boot up anymore...why is that

It would help if you provide precise information about what exactly you did and how.

# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 3260 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
Specify disk (enter its number): 0
selecting c0d0
Controller working list found
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c0d0s3 is currently mounted on /u01. Please see umount(1M).
/dev/dsk/c0d0s7 is currently mounted on /export/home. Please see umount(1M).

partition> p
Current partition table (original):
Total disk cylinders available: 3260 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 733 - 1346 4.70GB (614/0/0) 9863910
1 swap wu 3 - 130 1004.06MB (128/0/0) 2056320
2 backup wm 0 - 3259 24.97GB (3260/0/0) 52371900
3 unassigned wm 1985 - 3259 9.77GB (1275/0/0) 20482875
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 1347 - 1984 4.89GB (638/0/0) 10249470
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 alternates wu 1 - 2 15.69MB (2/0/0) 32130

so i guess i use
2 backup wm 0 - 3259 24.97GB (3260/0/0) 52371900
thats the first one why i was ended in GRUb,

and when I reisntall i did this
newfs /dev/rdsk/c0t0d0s2,

i was totally wrong, anyway base from that i alloted 25G, i only use 21G,,
may i use my 4G???? where is it?? how to know i still have it?? how to USE it??? please help..

Using slice 2 to create a filesystem on it is a destructive action that will corrupt all existing filesystems and swap file and will likely lead to a kernel panic or similar.

slice 2 is overlapping every other slices so should only be read from, never written to.

You should have used a free slice and allocated the free disk cylinders to it instead.

yeah, i get it... ishould never use it or newfs there or partition there..

but how about my 4g? that i did not use??

Set cylinder 4 to use these 496806912 bytes (or 604 cylinder) that are currently free.

How?/

Anyway i want to see it in my eyes the available 4G???

wahts is the command can you show it to me pls..

and how to use it??

By using the format or prtvtoc/fmthard commands.

I calculated these values from this output. Everything is there:

  • the number of cylinders available
  • the number of cylinders used by each partition, eg. 614 for slice 0.
  • the corresponding size in 512 bytes blocks, eg. 9863910 = 4931955 kB.

Cylinders 131 to 732 are free.

partition> p
Current partition table (original):
Total disk cylinders available: 3260 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm     733 - 1346        4.70GB    (614/0/0)   9863910
  1       swap    wu       3 -  130     1004.06MB    (128/0/0)   2056320
  2     backup    wm       0 - 3259       24.97GB    (3260/0/0) 52371900
  3 unassigned    wm    1985 - 3259        9.77GB    (1275/0/0) 20482875
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7       home    wm    1347 - 1984        4.89GB    (638/0/0)  10249470
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 alternates    wu       1 -    2       15.69MB    (2/0/0)       32130

forgive my ignorance, i want to see all the commands i mean all the syntax..

anyway i still dont get it ,, my $g that i did not use in my installation.

i intend to set my partiton to 20g for i,can use the 4g soon..

---------- Post updated at 10:09 PM ---------- Previous update was at 10:09 PM ----------

# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0d0s0 4856793 3413513 1394713 71% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 2518984 736 2518248 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
sharefs 0 0 0 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
4856793 3413513 1394713 71% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 2518288 40 2518248 1% /tmp
swap 2518272 24 2518248 1% /var/run
/dev/dsk/c0d0s3 10085921 10025 9975037 1% /u01
/dev/dsk/c0d0s7 5046597 5030 4991102 1% /export/home
#

---------- Post updated at 10:14 PM ---------- Previous update was at 10:09 PM ----------

i just wanted to add another filesystem lets say /TEST

then i want to use my free 4g

You could have create the extra slice with these 4 GB at installation time.
Anyway, if you want a step by step detailed procedure, please post the output from the following command:

prtvtoc /dev/rdsk/c0d0s2

# prtvtoc /dev/rdsk/c0d0s2

  • /dev/rdsk/c0d0s2 partition map
    *
  • Dimensions:
  • 512 bytes/sector
    
  •  63 sectors/track
    
  • 255 tracks/cylinder
    
  • 16065 sectors/cylinder
  • 3262 cylinders
  • 3260 accessible cylinders
    *
  • Flags:
  • 1: unmountable
  • 10: read-only
    *
  • Unallocated space:
  •   First     Sector    Last
    
  •   Sector     Count    Sector
    
  • 2104515   9671130  11775644
    

*

  •                      First     Sector    Last
    
  • Partition Tag Flags Sector Count Sector Mount Directory
    0 2 00 11775645 9863910 21639554 /
    1 3 01 48195 2056320 2104514
    2 5 00 0 52371900 52371899
    3 0 00 31889025 20482875 52371899 /u01
    7 8 00 21639555 10249470 31889024 /export/home
    8 1 01 0 16065 16064
    9 9 01 16065 32130 48194
    #

You might want to try this:

fmthard -s - /dev/rdsk/c0d0s2 <<%
0 2 00 11775645 9863910 21639554 /
1 3 01 48195 2056320 2104514
2 5 00 0 52371900 52371899
3 0 00 31889025 20482875 52371899 /u01
6 0 00 2104515 9671130 11775644
7 8 00 21639555 10249470 31889024 /export/home
8 1 01 0 16065 16064
9 9 01 16065 32130 48194
%
zpool create TEST c0d0s6

Beware that any mistake (including one that I might have made answering) can destroy part or all of your data so backup anything you want to preserve before running these commands.

sorry, bt i think since i left the 4G upon the installation, i did not maximize the whole 25G since i just 21G to my /,/export/home,swap etc..

i can not use it anymore :slight_smile: anyway thanks for the great help//