Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2001 09:05:03 +0200
From:      Jon Molin <jon.molin@resfeber.se>
To:        Crist Clark <cjclark@alum.mit.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Adding a new drive
Message-ID:  <3AC4301F.3AD7B9D0@resfeber.se>
References:  <200103290938.f2T9c1l00499@bluebox.naken.cc> <3AC347D6.1ED5F0A2@resfeber.se> <20010329165129.A60101@pcwin002.win.tue.nl> <3AC34FC7.F53209CC@resfeber.se> <3AC386CA.157C141B@alum.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

> 
> Here is what you need to do:
> 
>   1) Write a valid slice (PC partition) table. Make sure it is a valid
>      table, i.e. you don't get that error above.

I guess that writing a valid slice is my problem, have you got any tips on how
to create a valid table?
Here's what i've tried (all taken from
http://www.freebsd.org/handbook/disks-adding.html):

# dd if=/dev/zero of=/dev/ad3 bs=1k count=1
1+0 records in
1+0 records out
1024 bytes transferred in 0.001281 secs (799436 bytes/sec)
jmo# fdisk -BI ad3
******* Working on device /dev/ad3 *******
fdisk: invalid fdisk partition table found
#
and
# dd if=/dev/zero of=/dev/ad3 bs=1k count=1
1+0 records in
1+0 records out
1024 bytes transferred in 0.001331 secs (769363 bytes/sec)
# disklabel -Brw ad3 auto
# disklabel -e ad3
disklabel: ioctl DIOCGDINFO: Invalid argument
#
and
# dd if=/dev/zero of=/dev/ad3 count=2
2+0 records in
2+0 records out
1024 bytes transferred in 0.001283 secs (798099 bytes/sec)
# disklabel /dev/rad3 | disklabel -BrR ad3 /dev/stdin
# newfs /dev/rad3e
newfs: /dev/rad3e: Invalid argument
# 

> 
>   2) YOU MUST REBOOT. The PC partition table in kernel memory is not
>      updated once started (last time I rewrote a fdisk label anyway).
>      Annoying, but hey, adding hardware is one of the few occasions you
>      may have to reboot.
> 
>   3) Use disklabel(8) to partition the slice.
> 
>   4) Use newfs(8) to put filesystems in the partitions.
> 
>   5) Use mount(8) to access the filesystems.
> 
>   6) Have beer.
>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AC4301F.3AD7B9D0>