LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 08-26-2005, 06:17 PM   #1
morko
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
FreeBSD fdisk problem


Hello.

Here is what I did. I transfered FreeBSD 5.4 from 8 G to 40 G disk. Command was:

dd if=/dev/hd0 of=/dev/hd1 bs=16384

New disk can boot normal. Now I want to use free space on 40 G disk for growing /usr, because it is almost full. This is my 40 G disk !

FreeBSD# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 248M 198M 30M 87% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1e 248M 39M 189M 17% /tmp
/dev/ad0s1f 6.5G 5.4G 530M 91% /usr
/dev/ad0s1d 248M 104M 124M 46% /var
linprocfs 4.0K 4.0K 0B 100% /usr/compat/linux/proc

I found instructions on net how to grow /usr using growfs, but first I must create new partition. But fdisk wont let me ........

FreeBSD# fdisk -s
/dev/ad0: 77545 cyl 16 hd 63 sec
Part Start Size Type Flags
1: 63 16514001 0xa5 0x80

FreeBSD# fdisk -u
fdisk: cannot open disk /dev/ad0: No such file or directory

What is this? ad0 is there, of course. Any ideas, how can I grow my existing /usr?
 
Old 08-26-2005, 06:29 PM   #2
N|k0N
Member
 
Registered: Aug 2004
Location: New York
Posts: 63

Rep: Reputation: 15
have you tried using sysinstall to make the space larger? If i am correct, you cant use fdisk to change anything on a hd when it is in use. If i am wrong, im sure someone will correct me.
 
Old 08-26-2005, 06:51 PM   #3
morko
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Yes I tried sysinstall, but with no luck.

Says something like "ERROR: Unable to write data to disk ad0!" "Disk partition write returned an error status!"

Is it possible that I have problems because of wrong gemetry Warning:

WARNING: A geometry of 77545/16/63 for ad0 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.

I am lost, but the machine is up and running! :-)
 
Old 08-26-2005, 07:12 PM   #4
N|k0N
Member
 
Registered: Aug 2004
Location: New York
Posts: 63

Rep: Reputation: 15
It can only be the wrong geometery if you set it that way, you can always take a look by typing fdisk, then p and see if it is set up similarly, you could also use the "a" command to set up up your disk partitions automatically.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
freeBSD install - fdisk not showing partitions? a2ps *BSD 2 06-26-2005 12:02 PM
FreeBSD good but Fdisk su*s auss9 *BSD 2 04-23-2005 05:27 PM
Problem with fdisk junwen Linux - Newbie 7 02-20-2005 06:09 PM
fdisk problem bosewicht Linux - Newbie 2 06-11-2004 08:48 PM


All times are GMT -5. The time now is 04:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration