Can't *write* to a hard disk, not even a slice using fdisk(8).

Joan Picanyol i Puig lists-gmane at biaix.org
Sun Apr 11 08:18:49 PDT 2004


On Sun, 11 Apr 2004 15:15:18 +0200, Julien Gabel wrote:

>>>> GEOM doesn't let you write to an active device, except if you set
>>>> kern.geom.debugflags=16
> 
>>> Ok no problem, I changed it this way:
>>>  # sysctl kern.geom.debugflags=16
>>>  kern.geom.debugflags: 1 -> 16
>>> But it seems to change *absolutly nothing*... :(
> 
>> Mmmhh... We're doing something wrong here I guess :o Are you 100% sure
>> that ad10 is not used by any open geom modules? What does dmesg say
>> about ar*?
 
>  # dmesg | tail -50
>  [...]
>  GEOM: create disk ad4 dp=0xc6cb6360
>  ad4: 78167MB <Maxtor 6Y080P0> [158816/16/63] at ata2-master UDMA133
>  GEOM: create disk ad6 dp=0xc6ab2960
>  ad6: 78167MB <Maxtor 6Y080P0> [158816/16/63] at ata3-master UDMA133
>  GEOM: create disk ad8 dp=0xc6ab2560
>  ad8: 117246MB <Maxtor 6Y120P0> [238216/16/63] at ata4-master UDMA133
>  GEOM: create disk ad10 dp=0xc6ab2660
>  ad10: 117246MB <Maxtor 6Y120P0> [238216/16/63] at ata5-master UDMA133
>  GEOM: create disk ar0 dp=0xc6aae5e0
>  ar0: 78167MB <ATA RAID1 array> [9964/255/63] status: READY subdisks:
>   disk0 READY on ad4 at ata2-master
>   disk1 READY on ad6 at ata3-master
>  Mounting root from ufs:/dev/ar0s1a
>  g_slice_config(ad10, 0, 0)
[...]
>  g_slice_config(ad10, 3, 1)
> 
> This is what we can expected to see: the only 'ar' array which exist now
> is the first mirror for system part. There is no second array, since I
> made /home only available on /dev/ad8 and not /dev/ar1s1d. I don't see
> anything wrong here(?). Am I missing something?

Well, I see that geom tastes ad10 and creates a slice class for it...
However, if kern.geom.debugflags=16, you should still be able to touch the
slice.

If debugflags=16 I know of no reason why you shouldn't be able to
partition de disk; sorry, I'm stumped :(

qvb
-- 
pica




More information about the freebsd-questions mailing list