how to add new slice

Installing and upgrading FreeBSD.

how to add new slice

Postby pippo » 29 Apr 2010, 15:52

I have 8.0 installed on a 500gb sata; am using only about half - ca. 250gb.
Is there a way I can add 1 or more slices or how to use the remaining space?
TIA
pippo
Junior Member
 
Posts: 27
Joined: 27 Apr 2010, 15:49

Postby paean » 29 Apr 2010, 16:19

You'll be happy to know the Handbook lists ways to add slices. sysinstall(8) is the easiest way if you're new to FreeBSD.

Also see newfs(8) and growfs(8).
Clear messages, focused subject matter and purposeful objectives lead to posts useful for all.
User avatar
paean
Member
 
Posts: 112
Joined: 28 Dec 2008, 00:04
Location: .on.ca

Postby pippo » 29 Apr 2010, 17:02

Perhaps I was not clear.
I do not wish to add another disk.
I want to add another slice on a active installation (which could be done with the disk unmounted) as I do have FreeBSD installed on other disks on same computer. Or, would it be possible (how?) to add a partition on the same disk that could be used to store files or another OS?
Sysinstall, growfs and newfs do not appear to have the capacities that I am looking for... I am not interested in reinstalling ...
I'm not sure if it's possible to reset the geometry and/or the labels as one does when installing... I have seen some weird stuff when trying to use these tools... the instructions are not always "spot-on-clear"...
pippo
Junior Member
 
Posts: 27
Joined: 27 Apr 2010, 15:49

Postby phoenix » 29 Apr 2010, 17:37

paean wrote:sysinstall(8) is the easiest way if you're new to FreeBSD.


[man=8]sade[/man] is more appropriate than sysinstall. It's the same tools as sysinstall, but without all the extra sysinstall crud.
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby phoenix » 29 Apr 2010, 17:38

pippo wrote:Perhaps I was not clear.
I do not wish to add another disk.
I want to add another slice on a active installation (which could be done with the disk unmounted) as I do have FreeBSD installed on other disks on same computer. Or, would it be possible (how?) to add a partition on the same disk that could be used to store files or another OS?
Sysinstall, growfs and newfs do not appear to have the capacities that I am looking for... I am not interested in reinstalling ...
I'm not sure if it's possible to reset the geometry and/or the labels as one does when installing... I have seen some weird stuff when trying to use these tools... the instructions are not always "spot-on-clear"...


You can't (AFAIK) shrink a UFS filessytem. Thus, you can't free up space to create a new partition or slice.

Unless you have free, unallocated, unpartitioned space on the disk, you're only solution is to backup, reformat, re-install.
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby aragon » 29 Apr 2010, 18:23

[man=8]gpart[/man]
aragon
Giant Locked
 
Posts: 2031
Joined: 16 Nov 2008, 17:04
Location: Cape Town, South Africa

Postby jb_fvwm2 » 30 Apr 2010, 01:20

If by "using only half" you mean half contains
no OS nor DATA, your can easily make it
into a gjournal filesystem, and mount it
somewhere like "/new" (just one of many things).
If you mean you have 50 percent free using "df",
you have other options...
jb_fvwm2
Senior Member
 
Posts: 1503
Joined: 16 Nov 2008, 19:19

Postby pippo » 01 May 2010, 17:34

Actually, in this case it means nothing, nada, like not formatted (I think), no OS, no slice, no partition - just plain empty. So, I'm wondering how I could set up
1. new slice
or
2. add partition
or
3. extend present slice (ad4s1h) from some 50gb to use the rest of the empty space.
There's always option
4. Suggest a use - like, I'm thinking of using that space as a repository for anything and everything including files from both XP (or any windoz or FreeBSD os's.
pippo
Junior Member
 
Posts: 27
Joined: 27 Apr 2010, 15:49

Postby jb_fvwm2 » 01 May 2010, 21:14

Use fat32 if you want windows/bsd access. But limit
its size to the limitations of your bios/OS (only have
it like 12 gig...) (that may or may not foul up
the drive letter assignments you have already). The remainder, half you can
jgournal for a WRKDIRPREFIX for port buids which
fill up /usr; and half of the remainder as
UFS2, (/spare), and you'd have a few G. left
for future uses.
...
As for "howto's," find a guide at the list below
or on the web... or in the HOWTO section...
...
For suggested sizes, check the freebsd-questions list where
many threads exist "initial setup size" type questions.
jb_fvwm2
Senior Member
 
Posts: 1503
Joined: 16 Nov 2008, 19:19

Postby pippo » 02 May 2010, 20:04

Why fat32?
I only use XP (ntfs) and FBSD ufs...
I guess the determining factor depends on the os being used.
If I'm running FBSD, I can access any other disks or lan with samba.
If I boot XP, then I'm floating alone and can's access the new partition unless it's ntfs (or fat32 ?) from XP. And a new Windoz partition would muck up the bios... I think I'll go with aragon's gpart and just do another slice for the rest of the disk. Then I can use another FreeBSD box to act as a server for any XP and FreeBSD machines to use that extra slice. :) heh! heh!
Thanks guys.
pippo
Junior Member
 
Posts: 27
Joined: 27 Apr 2010, 15:49

Postby jb_fvwm2 » 03 May 2010, 01:46

backup critical files from bsd >> /fat32
backup critical files from xp >> /fat32 (d: or...)
I don't think the BIOS sees partitions, the
boot loader/ os do...
Say I had 30 g windows, 30 g bsd, 30 g fat32
on a 100g hard drive.
and bootit installed in windows
I could image (after defrag ) windows and
bsd to fat32 in batch mode, having the
boot-loader shareware Bootit beep when done
...
Just one scenario. (A few gotcha's to any
such ... I always try to follow someone
else's more-than-forum-verbose guides when
setting up hardware partitions etc)

(I try to reserve fat32 on new disks if I have
enough time to do so (pre-gpart...) )
jb_fvwm2
Senior Member
 
Posts: 1503
Joined: 16 Nov 2008, 19:19

Postby saifikhan » 11 Sep 2010, 03:21

pippo wrote:I have 8.0 installed on a 500gb sata; am using only about half - ca. 250gb.
Is there a way I can add 1 or more slices or how to use the remaining space?
TIA


'gpart' should be used and not sysinstall/fdisk.

eg. lets say your disk is ad4

[CMD=" "]gpart show ad4[/CMD]

to add a slice to the existing active disk.

[CMD=" "]gpart add -t freebsd ad4[/CMD]

Please note that i did not specify the starting block or the size, since gpart can figure that out. Additionally, the slice type is 'freebsd' and *not* 'freebsd-ufs' since the original slice entry was created with fdisk (cf. sysinstall).

Hope this helps.
thanks
Saifi.
User avatar
saifikhan
Junior Member
 
Posts: 1
Joined: 10 Aug 2009, 05:08


Return to Installing & Upgrading

Who is online

Users browsing this forum: No registered users and 0 guests