Resizing a slice?

Resizing a slice?

Post by M. Maxwel » Thu, 23 Jul 1998 04:00:00



Ok, just to take the topic on a radically new approach for this group
and post something about this thing called FreeBSD, I'd like to ask:

Is it possible to resize a slice non-destructively?  What I need to do
is either down-size or up-size a slice, whichever is most likely to
cause the least damage.  I have been told this is possible, but there
seems to be no information on it.  Any ideas, please?

Note, if emailing replies, please note my signature...

--

"User Error: replace user and reboot."

 
 
 

Resizing a slice?

Post by Spide » Thu, 23 Jul 1998 04:00:00



> Ok, just to take the topic on a radically new approach for this group
> and post something about this thing called FreeBSD, I'd like to ask:

Hey good idea!

Quote:> Is it possible to resize a slice non-destructively?  What I need to do
> is either down-size or up-size a slice, whichever is most likely to
> cause the least damage.  I have been told this is possible, but there
> seems to be no information on it.  Any ideas, please?

Did it! You might want to check out the mailing lists archives, but from
what I remember, you got to edit the slice's tables with fdisk. You
should forward me the structure of your disk: fdisk output, disklabel
output etc... I've been able to resize my freebsd *slice*, but not
expand my /usr *partition* yet. (having to newfs it...)

Good luck!

> Note, if emailing replies, please note my signature...

> --

> "User Error: replace user and reboot."

--
How 'bout a little ride through your own world?
http://www.JSP.UMontreal.CA/~beaupran/

Spidey

 
 
 

Resizing a slice?

Post by Spide » Thu, 23 Jul 1998 04:00:00



> Ok, just to take the topic on a radically new approach for this group
> and post something about this thing called FreeBSD, I'd like to ask:

Hey good idea!

Quote:> Is it possible to resize a slice non-destructively?  What I need to do
> is either down-size or up-size a slice, whichever is most likely to
> cause the least damage.  I have been told this is possible, but there
> seems to be no information on it.  Any ideas, please?

Did it! You might want to check out the mailing lists archives, but from
what I remember, you got to edit the slice's tables with fdisk. You
should forward me the structure of your disk: fdisk output, disklabel
output etc... I've been able to resize my freebsd *slice*, but not
expand my /usr *partition* yet. (having to newfs it...)

Good luck!

> Note, if emailing replies, please note my signature...

> --

> "User Error: replace user and reboot."

--
How 'bout a little ride through your own world?
http://www.JSP.UMontreal.CA/~beaupran/

Spidey

 
 
 

Resizing a slice?

Post by Fewt » Thu, 23 Jul 1998 04:00:00




Quote:>Did it! You might want to check out the mailing lists archives, but from
>what I remember, you got to edit the slice's tables with fdisk. You
>should forward me the structure of your disk: fdisk output, disklabel
>output etc... I've been able to resize my freebsd *slice*, but not
>expand my /usr *partition* yet. (having to newfs it...)

You've got the terms "partition" and "slice" reversed.  What you did
was expanded the size of your FreeBSD partition, but was unable to
expand your /usr *SLICE*.  Think of a partition as being a big slab of
meat, and /usr, /var, etc as being slices of that big slab ;-)

 -----
|No spam protection here, I have a "trash" button on my mailreader (and
|I don't post to the "trash" newsgroups).  If you want to Email me, just
|reply normally.  My website is at http://www.serv.net/~fewtch/index.html -
|something for everyone there, take a look if you have the time. Ooga booga.

 
 
 

Resizing a slice?

Post by Spide » Thu, 23 Jul 1998 04:00:00





> >Did it! You might want to check out the mailing lists archives, but from
> >what I remember, you got to edit the slice's tables with fdisk. You
> >should forward me the structure of your disk: fdisk output, disklabel
> >output etc... I've been able to resize my freebsd *slice*, but not
> >expand my /usr *partition* yet. (having to newfs it...)

> You've got the terms "partition" and "slice" reversed.  What you did
> was expanded the size of your FreeBSD partition, but was unable to
> expand your /usr *SLICE*.  Think of a partition as being a big slab of
> meat, and /usr, /var, etc as being slices of that big slab ;-)

uh, no. You got it the dos way, where the partition is the ones on the
MBR. But in FreeBSD, these are slices. And /, /usr, /var, etc are
partitions. From the sysinstall utility:  
L Label            The disk Label editor
F Fdisk            The disk Slice (PC-style partition) Editor

From the handbook (sect101):
"This is where you will create the traditional BSD partitions. A disk
can have up to eight partitions, labeled a-h."
"The c partition addresses the entire disk in dedicated mode, or the
entire FreeBSD slice in slice mode. The other partitions are for general
use."

I guess that's clear enough ;)
--
How 'bout a little ride through your own world?
http://www.JSP.UMontreal.CA/~beaupran/

Spidey

 
 
 

Resizing a slice?

Post by Matthias Buelo » Sat, 25 Jul 1998 04:00:00



> You've got the terms "partition" and "slice" reversed.  What you did
> was expanded the size of your FreeBSD partition, but was unable to
> expand your /usr *SLICE*.  Think of a partition as being a big slab of
> meat, and /usr, /var, etc as being slices of that big slab ;-)

No, he's been using the correct terms.

slice == DOS partition (as stored in the MBR's DOS partition table)
partition == ufs partition, as stored in the disk pack label

DOS partitions (slices) are not required, so there may be cases
(usually when bsd is the only OS on the disks) where you don't
have slices at all (counts as slice 1 then, logically).

--
  ``Round about the terminal go; / In the poisoned upgrade throw.
  Code, which by a student done / In minutes numbering sixty-one.
  Run-time error, protection fault / Crash ye first, crash ye shalt.''
        (The Oracle, MacBeth95)

 
 
 

1. Resizing Slice 0 - DVD

I am working on a project to move our product media from CDs to DVD. We

currently use 3 CDs as part of our installation.

CD1 and CD2 - Solaris 9 OS CDs.
CD3 - Our product application CD.

Our installation process works this way...

1) We first install Solaris 9 (modified CD1 to be self-bootable) using
CD1 and CD2
2) Then we insert the CD3 (App CD) to install our applications.

I am trying to work on moving all the 3 CD contents to a DVD and here
is what I have gotten so far.

1) I took the Solaris 9 DVD and created slice 0 - slice 5 by using
mkisofs/dd etc. In essence I have created a modified ISO that can boot
Solaris 9.

2) I need to figure out a way of adding my application contents to the
DVD. The slice 0 that I extracted from the Solaris 9 DVD does not seem
to have enough room to hold my application data (after removing the
unwanted contents such as 1of2_CDDoc etc).

I need suggestions on how I can expand the size of slice 0 (I will have

to re-create the VTOC and the starting cylinder etc of slices 1 - 5)
and then put in my app contents as part of slice 0. After that I want
to recreate the ISO. The net result would be a DVD that will install
Solaris 9 and also my application. If slice 0 is not the place to put
this, could I resize slice 5 to add my app data ?

Any help is appreciated.

Thanks
Venkat

2. Help needed setting up Xwindows

3. How to resize existing file systems / slices ?

4. Installing Debian from diskette / network - can't read the menus

5. Resizing Slices?

6. Dos Emu Bug?

7. Q: slice & partition resizing (4.0-RELEASE)

8. Removing Environment Varibles

9. Overlap Slice / Parition Resize

10. resize /usr slice on Solaris7/Intel box

11. Reset Terminal and resizing the root slice

12. Possible to resize disk slices?

13. Resizing slices