DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th October 2009
Calderon's Avatar
Calderon Calderon is offline
Real Name: Patrick Ääripää
Fdisk Soldier
 
Join Date: May 2008
Location: Finland
Posts: 57
Thanked 0 Times in 0 Posts
Default Upgrade 7.2 to 8.0RC1 (2nd HDD lost etc..)

Hi! Upgraded using freebsd-update

After booting to 8.0 i got stopped to Single-user mode because could not mount my another HDD which was working under 7.2. Modifying fstab helped to get past but how can i mount it again because there´s no slices listed anymore in /dev just ad0 and ad0a.

Code:
crw-r-----  1 root      operator    0,  75 Oct 25 00:38 acd0
crw-r--r--  1 root      wheel       0,  34 Oct 25 00:38 acpi
crw-r-----  1 root      operator    0,  73 Oct 25 01:39 ad0
crw-r-----  1 root      operator    0,  76 Oct 25 01:39 ad0a
crw-r-----  1 root      operator    0,  74 Oct 25 00:38 ad2
crw-r-----  1 root      operator    0,  77 Oct 25 00:38 ad2s1
crw-r-----  1 root      operator    0,  78 Oct 25 03:38 ad2s1a
crw-r-----  1 root      operator    0,  79 Oct 25 00:38 ad2s1b
crw-r-----  1 root      operator    0,  80 Oct 25 03:38 ad2s1d
crw-r-----  1 root      operator    0,  81 Oct 25 03:38 ad2s1e
crw-r-----  1 root      operator    0,  82 Oct 25 03:38 ad2s1f
crw-------  1 root      operator    0,  33 Oct 25 00:38 ata
crw-------  1 root      wheel       0,  35 Oct 25 00:38 atkbd0
Fdisk on both drives

Code:
bsdkone# fdisk ad0
******* Working on device ad0 *******
parameters extracted from in-core disklabel are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 312581745 (152627 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 852/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

bsdkone# fdisk ad2
******* Working on device ad2 *******
parameters extracted from in-core disklabel are:
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 78156162 (38162 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
bsdkone#
__________________
SpreadBsd

Last edited by Calderon; 27th October 2009 at 11:05 AM. Reason: Title
Reply With Quote
  #2   (View Single Post)  
Old 26th October 2009
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

*update Nov 2009* post below...

If there is any consolation, I failed to install a _8 snapshot
(aug 13 I think) to a sata-on-pci, sysinstall failed to
find the fs-or-partition to install to, and one of the sysinstall
disk pages had nothing at the top to choose from. Despite I
had put "165/A5h: BSD" on it with Bootit. Not persuing it
further since I upgraded the principal
(non-sata ) disk to 8-stable already.
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...

Last edited by jb_daefo; 5th November 2009 at 02:47 AM. Reason: spelling; update;
Reply With Quote
  #3   (View Single Post)  
Old 27th October 2009
Calderon's Avatar
Calderon Calderon is offline
Real Name: Patrick Ääripää
Fdisk Soldier
 
Join Date: May 2008
Location: Finland
Posts: 57
Thanked 0 Times in 0 Posts
Default

moved.
__________________
SpreadBsd

Last edited by Calderon; 27th October 2009 at 12:15 PM. Reason: moved
Reply With Quote
  #4   (View Single Post)  
Old 28th October 2009
Calderon's Avatar
Calderon Calderon is offline
Real Name: Patrick Ääripää
Fdisk Soldier
 
Join Date: May 2008
Location: Finland
Posts: 57
Thanked 0 Times in 0 Posts
Default

I tried to recompile the kernel with removing

"options GEOM_PART_GPT" and
added "options GEOM_BSD" and "options GEOM_MBR"

Now my dev looks like

Code:
bsdkone# ls -l
total 2
crw-r-----  1 root  operator    0,  75 Oct 28 11:22 acd0
crw-r--r--  1 root  wheel       0,  34 Oct 28 11:22 acpi
crw-r-----  1 root  operator    0,  73 Oct 28 11:22 ad0
crw-r-----  1 root  operator    0,  76 Oct 28 11:25 ad0a
crw-r-----  1 root  operator    0,  76 Oct 28 11:25 ad0a
crw-r-----  1 root  operator    0,  97 Oct 28 11:25 ad0as1
crw-r-----  1 root  operator    0,  97 Oct 28 11:25 ad0as1
crw-r-----  1 root  operator    0,  97 Oct 28 11:25 ad0as1
crw-r-----  1 root  operator    0,  79 Oct 28 11:25 ad0c
crw-r-----  1 root  operator    0, 103 Oct 28 11:25 ad0ca
crw-r-----  1 root  operator    0, 105 Oct 28 11:25 ad0cas1
crw-r-----  1 root  operator    0, 102 Oct 28 11:25 ad0cs1
crw-r-----  1 root  operator    0,  84 Oct 28 11:25 ad0s1
crw-r-----  1 root  operator    0,  74 Oct 28 11:22 ad2
crw-r-----  1 root  operator    0,  80 Oct 28 11:22 ad2s1
crw-r-----  1 root  operator    0,  87 Oct 28 13:22 ad2s1a
crw-r-----  1 root  operator    0,  88 Oct 28 11:22 ad2s1b
crw-r-----  1 root  operator    0,  89 Oct 28 11:22 ad2s1c
crw-r-----  1 root  operator    0, 116 Oct 28 11:22 ad2s1ca
crw-r-----  1 root  operator    0, 117 Oct 28 11:22 ad2s1cb
crw-r-----  1 root  operator    0, 118 Oct 28 11:22 ad2s1cd
crw-r-----  1 root  operator    0, 119 Oct 28 11:22 ad2s1ce
crw-r-----  1 root  operator    0, 120 Oct 28 11:22 ad2s1cf
crw-r-----  1 root  operator    0,  90 Oct 28 13:22 ad2s1d
crw-r-----  1 root  operator    0,  91 Oct 28 13:22 ad2s1e
crw-r-----  1 root  operator    0,  92 Oct 28 13:22 ad2s1f
crw-------  1 root  operator    0,  33 Oct 28 11:22 ata
crw-------  1 root  wheel       0,  35 Oct 28 11:22 atkbd0
I have tried to mount every ad0 but it only says:

Code:
bsdkone# mount -t ufs /dev/ad0cs1 /kakkonen
mount: /dev/ad0cs1 : Invalid argument
bsdkone#
__________________
SpreadBsd
Reply With Quote
  #5   (View Single Post)  
Old 30th October 2009
Calderon's Avatar
Calderon Calderon is offline
Real Name: Patrick Ääripää
Fdisk Soldier
 
Join Date: May 2008
Location: Finland
Posts: 57
Thanked 0 Times in 0 Posts
Default

I don´t know what, but something seemed to go wrong after update.

Maybe it´s because the disc was not formatted in dedicated mode or something.
Anyway i decided to Zero fill the disc and make the one slice on entire disc. weighting between the data on disc and the work to get that data back (personal only) it´s not impossible to start from scratch. Also i recommend myself to explore some of the disktools some more and learn even more about drives in BSD.
__________________
SpreadBsd
Reply With Quote
  #6   (View Single Post)  
Old 5th November 2009
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 196
Thanked 5 Times in 5 Posts
Default

/edit, today, of this post/
bsd v8 STABLE

Some> Much progress on this end of the problem. I have a SATA
which had 2 partitions, empty space, but
neither partition (was) seen in
/dev. One or more of the following resulted in *many*
(some short, some long, some inbetween...)
(roughly three times that number quoted below, for one drive...)
/dev entries for the drive, but I can mount the existing
fat32 one, none of the other 20 or so match the
2nd, bsd, partition. (maybe no bsdlabel ?)
YES. NO BSDLABEL YET.
Code:
kldload geom_label.ko
kldload geom_bsd.ko
kldload geom_mbr.ko  # all _8
Then, I figured out how to make 2 more "slices" (primary
partitions) with Fdisk, and nothing mounts (maybe no
disklabel yet, but I intended to skip that to gmirror them
maybe first...) If I have time to fix the "mount ufs"
problem with bsdlabel, maybe I will re-edit this *beta*
post.
/edit/. Reading, I learned the 'a' are labels. Deduced
the ad10s2 ad10s3 and ad10s4 were the 3 bsd fdisk'd
partitions. bsdlabelled them...
Code:
bsdlabel -w /dev/ad10s[2,3,4]
and one at least is newfs'd so far, after gmirror'ing.
Still learning...
BTW SORRY for the no complete-writeup. Never
any time, not enough knowledge,
....
Something for a future version of bsd to "fix" with
more-verbose /dev entries maybe... then one would
only have to operate on half of them in trial-and-error...
/edit: ending in "a" means is a label/




Quote:
Originally Posted by Calderon View Post
I tried to recompile the kernel with removing

"options GEOM_PART_GPT" and
added "options GEOM_BSD" and "options GEOM_MBR"

Now my dev looks like

Code:
bsdkone# ls -l
total 2
crw-r-----  1 root  operator    0,  75 Oct 28 11:22 acd0
crw-r--r--  1 root  wheel       0,  34 Oct 28 11:22 acpi
crw-r-----  1 root  operator    0,  73 Oct 28 11:22 ad0
crw-r-----  1 root  operator    0,  76 Oct 28 11:25 ad0a
crw-r-----  1 root  operator    0,  76 Oct 28 11:25 ad0a
crw-r-----  1 root  operator    0,  97 Oct 28 11:25 ad0as1
crw-r-----  1 root  operator    0,  97 Oct 28 11:25 ad0as1
crw-r-----  1 root  operator    0,  97 Oct 28 11:25 ad0as1
crw-r-----  1 root  operator    0,  79 Oct 28 11:25 ad0c
crw-r-----  1 root  operator    0, 103 Oct 28 11:25 ad0ca
crw-r-----  1 root  operator    0, 105 Oct 28 11:25 ad0cas1
crw-r-----  1 root  operator    0, 102 Oct 28 11:25 ad0cs1
crw-r-----  1 root  operator    0,  84 Oct 28 11:25 ad0s1
crw-r-----  1 root  operator    0,  74 Oct 28 11:22 ad2
crw-r-----  1 root  operator    0,  80 Oct 28 11:22 ad2s1
crw-r-----  1 root  operator    0,  87 Oct 28 13:22 ad2s1a
crw-r-----  1 root  operator    0,  88 Oct 28 11:22 ad2s1b
crw-r-----  1 root  operator    0,  89 Oct 28 11:22 ad2s1c
crw-r-----  1 root  operator    0, 116 Oct 28 11:22 ad2s1ca
crw-r-----  1 root  operator    0, 117 Oct 28 11:22 ad2s1cb
crw-r-----  1 root  operator    0, 118 Oct 28 11:22 ad2s1cd
crw-r-----  1 root  operator    0, 119 Oct 28 11:22 ad2s1ce
crw-r-----  1 root  operator    0, 120 Oct 28 11:22 ad2s1cf
crw-r-----  1 root  operator    0,  90 Oct 28 13:22 ad2s1d
crw-r-----  1 root  operator    0,  91 Oct 28 13:22 ad2s1e
crw-r-----  1 root  operator    0,  92 Oct 28 13:22 ad2s1f
crw-------  1 root  operator    0,  33 Oct 28 11:22 ata
crw-------  1 root  wheel       0,  35 Oct 28 11:22 atkbd0
I have tried to mount every ad0 but it only says:

Code:
bsdkone# mount -t ufs /dev/ad0cs1 /kakkonen
mount: /dev/ad0cs1 : Invalid argument
bsdkone#
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...

Last edited by jb_daefo; 5th November 2009 at 02:54 AM. Reason: learned something, fixed something.
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
hal and lost interupt shep NetBSD General 1 23rd October 2009 07:12 AM
ext2 lost+found gosha General Hardware 0 21st June 2009 01:32 PM
vr0: rx packet lost tutosun FreeBSD General 4 13th September 2008 10:13 AM
Lost posts graudeejs Feedback and Suggestions 5 3rd August 2008 02:59 PM
pfsense wireless AP - lost packets AndreyS FreeBSD General 0 7th June 2008 05:38 PM


All times are GMT. The time now is 12:59 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