-
September 19th, 2007, 04:04 PM
#1
FreeBSD disklabel problem
Can someone please help me figure out how to change disklabel in freebsd 4.8. I am using the old version as it is required by the software i want to run. I am installing Olive emulator so that i can create a virtual juniper router. I have googled this for 2 days now and no joy i tried repartitiong drive but it did not work. This is what i am trying to achive:
ad0a /
ad0b swap
ad0e /config
ad0f /var
currently:
/dev/ad4s1a /
/dev/ad4s1h /config
/dev/ad4s1f /tmp
/dev/ad4s1g /usr
/dev/ad4s1e /var
What ever i tried to do with disklabel -e command ends in device busy i tried to umount partitions then change the disk label and it did not work i also tried booting into single user .... it did not work. Any ideas i am getting desperate
----------------------------------------------------------------------------------------------------------
"If I'd asked my customers what they wanted, they'd have said a faster horse." ~ Henry Ford
-
September 19th, 2007, 04:25 PM
#2
ad0a; looks like that's a whole disk.. Normally it would be ad0s1a. The s1 denotes the first slice (aka dos partition).
Do I read it correctly and your current setup is using ad4s1 as the slice for fbsd? And you want to change it to ad0?
ad0 is the master drive on the first IDE port
ad1 is the slave on the first IDE port
ad2 is the master on the secondary IDE port
ad3 is the slave on the secondary IDE port
ad4 is either USB or perhaps S-ATA drive?
Doesn't matter though.. The software should install anyway and doesn't need to look at the devices itself, it'll only 'see' the directory structure and that looks alright..
Doesn't the installation work? Does it complain? Or are you following some tutorial that gave the partitioning schema?
Last edited by SirDice; September 19th, 2007 at 04:28 PM.
Oliver's Law:
Experience is something you don't get until just after you need it.
-
September 19th, 2007, 04:45 PM
#3
Ok this is correct ad4s1a. Here is the link for Junos setup on Freebsd:
http://juniper.cluepon.net/index.php/Olive
Now when i run a package itself it complains as i think it does not know where to install it. The error i get:
sysctl: unknown oid 'hw.re.model'
usage: disklabel [-r] disk
(to read label)
disklabel -w [-r] [-n] disk type [ packid ]
(to write label with existing boot program)
disklabel -e [-r] [-n] disk
(to edit label)
disklabel -R [-r] [-n] disk protofile
(to restore label with existing boot program)
disklabel -B [-n] [ -b boot1 [ -s boot2 ] ] disk [ type ]
(to install boot program with existing label)
disklabel -w -B [-n] [ -b boot1 [ -s boot2 ] ] disk type [ packid ]
(to write label and boot program)
disklabel -R -B [-n] [ -b boot1 [ -s boot2 ] ] disk protofile [ type ]
(to restore label and boot program)
disklabel [-NW] disk
(to write disable/enable label)
ELF binary type "0" not known.
Abort trap
WARNING: This installation attempt will be aborted.
WARNING: If you wish to force the installation despite these warnings
WARNING: you may use the 'force' option on the command line.
pkg_add: package /var/tmp/instmp.eAZ4Yv/jinstall-8.3R2.8-export.tgz fails requirements - not installed
pkg_add: install script returned error status
----------------------------------------------------------------------------------------------------------
"If I'd asked my customers what they wanted, they'd have said a faster horse." ~ Henry Ford
-
September 19th, 2007, 04:47 PM
#4
Crap you are right i forgot it is a SATA drive. Is there a way to manually change this name?
----------------------------------------------------------------------------------------------------------
"If I'd asked my customers what they wanted, they'd have said a faster horse." ~ Henry Ford
-
September 20th, 2007, 07:21 AM
#5
You could try removing the options ATA_STATIC_ID from the kernel config and recompile.
Then it would count the first drive as 0, second 1 etc. regardless of where it's connected.
Mind you, if you add/remove a cd/dvd rom or another HD the numbers may shift..
Another option would be to manually edit the install script and replace all ad0 with ad4 (search&replace)..
Last edited by SirDice; September 20th, 2007 at 07:24 AM.
Oliver's Law:
Experience is something you don't get until just after you need it.
-
September 20th, 2007, 08:26 AM
#6
I am going to manually edit this today and elt you know if it made any difference ... hopefully it will work.
----------------------------------------------------------------------------------------------------------
"If I'd asked my customers what they wanted, they'd have said a faster horse." ~ Henry Ford
Similar Threads
-
By The Texan in forum Operating Systems
Replies: 16
Last Post: June 22nd, 2006, 08:04 PM
-
By gore in forum *nix Security Discussions
Replies: 22
Last Post: December 8th, 2005, 06:53 PM
-
By pctwister in forum Hardware
Replies: 4
Last Post: July 24th, 2003, 08:27 AM
-
By sweet_angel in forum *nix Security Discussions
Replies: 4
Last Post: October 17th, 2002, 12:48 PM
-
By Rna in forum General Programming Questions
Replies: 4
Last Post: May 22nd, 2002, 07:03 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|