partition deletion and creation
m.seaman at infracaninophile.co.uk
Thu Apr 8 09:30:20 PDT 2004
On Thu, Apr 08, 2004 at 04:23:47PM +0100, Tadimeti Keshav wrote:
> Hi list,
> I have freeBSD installed on my 40 GB HDD with the
> foll. layout:
> / = 512MB
> (It should roughly total to the max available ~37GB)
> I want to have /home resized to 20GB and then create 4
> mount points /u01=3GB,/u02=2GB,/u03=512MB,/u04=512MB.
That's feasible, except you can only have 8 partitions per slice.
Actually 7, since the 'c' partition is special and you shouldn't use
it to put filesystems on.
> I have 2 options:
> 1. using /stand/sysinstall-->fdisk to delete /home,
> create the new partitions, and then mount the
> mount-points. Q=will this format all older partitions
> (/usr,/...), forcing me to reinstall FreeBSD again?
> Clearly I don't want this. I have spent quite a while
> to get the setup running.
Don't use /stand/sysinstall to do this: use disklabel(8) [if you're
running 4.x] or bsdlabel(8) [if you're running 5.x]. Run whichever of
those commands with the '-e' flag, and it will put you in an editor
window with the partition table data that you can modify to your
hearts content. Remember to unmount any partitions you're going to
modify before starting. Any partition you create, or change the size
of will need a new filesystem created on it (newfs(8)) and will end up
empty. The partitions you don't modify will be left alone.
However, this question is academic given that you need more partitions
than you can have in a single slice.
> 2. create links to /home/u01 from /u01, /home/u02 from
> ln -s /home/u01 /u01
> Can I install Oracle this way?
Sounds like a plan. It's certainly worth trying.
If Oracle insists on having real filesystems then there's several
other possibilities you might want to consider:
* mount_null(8) -- you can create a loopback mount of some other
directory on your filesystem. Despite the
awful warnings in the man page, this actually
works fairly well although it would be safer to
use it for data that is mostly read-only.
* vnconfig(8) [4.x] or mdconfig(8) [5.x]
-- Create a filesystem image on a vnode device
backed by a file, and mount that wherever you
need to. Works pretty smoothly
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040408/78217ae6/attachment.bin
More information about the freebsd-questions