DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default Tried to create new partition using sysinstall but change is not permanent

Hi everyone
I have a 500 Gb HDD that has 40 Gb dedicated to FreeBSD.

This means that I have the rest 460 Gb that I am going to use for Data storage.

I read the menu and tried to use sysinstall to create a new partition and followed all the procedures. However, when I exit sysinstall to go to the disk labellor, my newly created partition is gone!

This frustrates me greatly. How can I go about creating a new partition then?
Reply With Quote
  #2   (View Single Post)  
Old 6th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,070
Thanked 198 Times in 156 Posts
Default

Did you press the W key to write your changes?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 6th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default

Yes I have. I tried even after restarting but the changes are not permanent.

does applying
# sysctl kern.geom.debugflags=16
affect this outcome?

Do you have any partition software to recommend.
Reply With Quote
  #4   (View Single Post)  
Old 6th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default

What is the equivalent of Gparted under FreeBSD???
Reply With Quote
  #5   (View Single Post)  
Old 6th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Gparted.

Unfortunately, gparted does not do its magic on BSD filesystems (Apart from moving them). Most of the same things can be done with growfs, disklabel, dd and fdisk. Adding ffs/disklabel support to gparted would not be a big task, but it is just one that has not been done yet.
e
Note that, as run by sysinstall, fdisk makes records for the install procedure to act on latter - You can write changes immediatley, but it is not obvious how to do it.

You probably have not pressed 'W' before 'Esc' when you left the fdisk-style display in sysinstall. Yes, i know you said you did, but this is still the most likely answer!
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #6   (View Single Post)  
Old 6th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default

OK Let me post some stats then:
I will type out exactly what I have typed. ->indicates that I have chosen an option

#su
#sysinstall
->Configure
->Fdisk

"WARNING: A geometry of 969021/16/63 for ad4 is incorrect. Using a more likely geometry. If this geometry is incorrect or you are unsure as to whether or not it's correct, please consult the Hardware Guide in the Documentation submenu or use the (G)eometry command to change it now.
Remember: you need to enter whatever your BIOS thinks the geometry is! For IDE, it's what you were told in the BIOS setup. For SCSI, it's the translation mode your controller is using. Do NOT use a ``physical geometry''.
"

->OK

"
Disk name: ad4 FDISK Partition Editor
DISK Geometry: 60801 cyls/255 heads/63 sectors = 976768065 sectors (476937MB)

Offset Size(ST) End Name PType Desc Subtype Flags

0 63 62 - 12 unused 0
63 80262 80324 ad4s1 4 ext2fs 131
80325 8193150 8273474 ad4s2 4 linux_swap 130
8273475 81915435 90188909 ad4s3 4 ext2fs 131
90188910 122865120 213054029 ad4s4 8 freebsd 165
213054030 763719138 976773167 - 12 unused 0



The following commands are supported (in upper or lower case):

A = Use Entire Disk G = set Drive Geometry C = Create Slice F = `DD' mode
D = Delete Slice Z = Toggle Size Units S = Set Bootable | = Wizard m.
T = Change Type U = Undo All Changes W = Write Changes


Use F1 or ? to get more help, arrow keys to select.
"

Typed C
Typed Enter (Use all the space)
Typed 131 (for ext2)

now
" 0 63 62 - 12 unused 0
63 80262 80324 ad4s1 4 ext2fs 131
80325 8193150 8273474 ad4s2 4 linux_swap 130
8273475 81915435 90188909 ad4s3 4 ext2fs 131
90188910 122865120 213054029 ad4s4 8 freebsd 165
213054030 763714035 976768064 X 4 ext2fs 131
976768065 5103 976773167 - 12 unused 0
"
where X is newly created

Pressed W
-> Confirmed OK
-> None for boot manager prompt

"Wrote FDISK partition information out successfully. "

Pressed Q
->Exit
-> Exit Install

now when I go to Fdisk again,
"Disk name: ad4 FDISK Partition Editor
DISK Geometry: 60801 cyls/255 heads/63 sectors = 976768065 sectors (476937MB)

Offset Size(ST) End Name PType Desc Subtype Flags

0 63 62 - 12 unused 0
63 80262 80324 ad4s1 4 ext2fs 131
80325 8193150 8273474 ad4s2 4 linux_swap 130
8273475 81915435 90188909 ad4s3 4 ext2fs 131
90188910 122865120 213054029 ad4s4 8 freebsd 165
213054030 763719138 976773167 - 12 unused 0

"

No X.
WHY?
Reply With Quote
  #7   (View Single Post)  
Old 6th July 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Don't use sysinstall once the OS is installed.

Instead install sysutils/sfdisk. Then run it like % sfdisk /dev/ad4

Or, use fdisk directly % fdisk /dev/ad4

Trying to do it via sysinstall will only cause problems, aggravations, and insanity.

Oh, and you'll need to set the kern.geom.debugflags sysctl to 16 first.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #8   (View Single Post)  
Old 6th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default

How do you use fdisk?

Where do I find sfdisk? Is it located under ports?

What are the commands that I should do for fdisk?

I don't quite understand the procedure here.

So do I delete my Linux swap partition first, then create an extended partition for the remaining 400 gb of space and then recreate a linux swap partition? Will the labelling of my partitions be the same? Will this cause my gentoo to be unable to mount to the new swap partition?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD Install Without Sysinstall corey_james Guides 6 19th December 2009 12:03 PM
Can gmirror be configured during sysinstall? PeterSteele FreeBSD Installation and Upgrading 3 13th November 2008 12:46 AM
Create a script to rmove oldest files disco Programming 5 14th July 2008 09:25 PM
Source code of coreutils to create Incident Response Disk audio FreeBSD General 6 5th July 2008 11:00 AM
Are certain kernel modules permanent? davidgurvich FreeBSD General 3 6th June 2008 06:14 PM


All times are GMT. The time now is 07:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick