[ug-bosug] Split /space to swap in solaris partition..

Vivek Joshi vbjoshi08 at gmail.com
Tue Dec 12 07:51:42 PST 2006


I didn't notice that you want a more friendlier option than format :)

Check 'smc' tool and select 'disk' or 'storage' (I don't remember the exact
option) ... It rpovides a gui to play around with slices.

Regards,
Vivek


On 12/12/06, Vivek Joshi <vbjoshi08 at gmail.com> wrote:
>
>
> That's good that /space is currently empty :-) First unmount it (umount
> /space) and also, note down all these entries.
>
> I see slice 5 mounted as /space (based on its size 11.0 gb).  Let us
> assume you want slice 1 as /swap of size 1.0 gb. You need to specify
> starting cylinder and the size of the partition.
>
>
> On the same menu, type '1' to select slice 1 ... For starting cylinder,
> type 656 and size as 1.0g. Then again type 'p' to see the current
> partition table. You will see slice 1 starting from  656 of size 1.0 gb.
> Note down its ending cylinder (say 'x').
>
> At this point /space too starts from cylinder 656. Now, select slice 5 ...
> and provide the starting cylinder as 'x' + 1 and size as 10.0 g ... or the
> ending cylinder  (2096c)
>
> once it's done, you reprint the table (by typing 'p'). You should see,
>
> slice 1 656..x (1.0 gb)
> slice 5 x+1..2096 (10.0gb)
>
> Make sure that you don't see overlapped slices (by looking at the
> cylinders range).
>
> After verifying the table, you should relabel (by typing label) to store
> the new vtoc. Don't forget to run newfs for newly created /space.
>
> HTH,
> Vivek
>
>
>
> On 12/12/06, Anil verve <anil.verve at gmail.com> wrote:
>
> > Hi list,
> >
> > I forgot to add a swap partition to the solaris partition.
> > So now i have the following slices
> >
> > /    -  5gb
> > /export/home - 2.5 gb
> > /space  - 11 gb.
> >
> > The /space is currently empty.. How can I split it to 2 partitions (1gb
> > swap + 10 space) without touching the other 2 and screwing up the install.
> >
> > regards
> > Anil
> >
> > PS : I figuerd i'd have to go and play with 'format -e' > partition, but
> > wondering if theres a friendlier solution.
> >
> > partition> print
> > Current partition table (original):
> > Total disk cylinders available: 2359 + 2 (reserved cylinders)
> >
> > Part      Tag    Flag     Cylinders        Size            Blocks
> >   0       root    wm       3 -  655        5.00GB    (653/0/0)  10490445
> >   1 unassigned    wm       0               0         (0/0/0)           0
> >   2     backup    wm       0 - 2358       18.07GB    (2359/0/0) 37897335
> >   3 unassigned    wm       0               0         (0/0/0)           0
> >
> >   4 unassigned    wm       0               0         (0/0/0)           0
> >   5 unassigned    wm     656 - 2096       11.04GB    (1441/0/0) 23149665
> >   6       home    wm    2097 - 2358        2.01GB    (262/0/0)   4209030
> >   7 unassigned    wm       0               0         (0/0/0)           0
> >
> >   8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
> >   9 alternates    wu       1 -    2       15.69MB    (2/0/0)       32130
> >
> >
> > _______________________________________________
> > ug-bosug mailing list
> > List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
> > List-Owner: mailto:ug-bosug-owner at opensolaris.org
> > List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
> >
> >
>
>
> --
> http://vivekjoshi.livejournal.com




-- 
http://vivekjoshi.livejournal.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20061212/4aa4328e/attachment-0002.html 


More information about the ug-bosug mailing list