trouble creating UFS slise with gpart

Andrey Groshev greenx at yartv.ru
Thu Jun 17 14:17:44 UTC 2010


17.06.2010 16:23, Andrey V. Elsukov пишет:
> On 17.06.2010 15:17, Andrey Groshev wrote:
>    
>> Now since MBR already have, I just create another one with freebsd.
>> #gpart add -t freebsd ada0
>> ada0s4 added
>> =>         0  110307393  ada0s4  EBR  (53G)
>>            0  110307393          - free -  (53G)
>>
>> Why did the resulting slice has a type of EBR and not BSD (as I asked)?
>> It's me doing something wrong or gpart considers himself very clever?
>>      
> Which FreeBSD version do you use?
>    
Version 8.1-PRERELEASE i386 at  Thu Jun 17 14:04:37 MSD 2010
> Probably there are some EBR's metadata saved at this place.
>    
Yes exactly, this part of the drive I use for experiments.
> Did you try to create BSD scheme?
>
> # gpart create -s BSD ada0s4
>
>    

Purity of the experiment is not achieved, because I have the old method 
to partition a disk.
But now I see how it was supposed to be:)

[root at greenxhome/greenx/ispman]#gpart show
=>       63  976773105  ada0  MBR  (466G)
          63   69561387     1  !7  (33G)
    69561450  125821080     2  freebsd  [active]  (60G)
   195382530  671083245     3  freebsd  (320G)
   866465775  110307393        - free -  (53G)

=>        0  125821080  ada0s2  BSD  (60G)
           0         16          - free -  (8.0K)
          16    2097152       1  freebsd-ufs  (1.0G)
     2097168    4194304       2  freebsd-swap  (2.0G)
     6291472    8388608       4  freebsd-ufs  (4.0G)
    14680080    8388608       5  freebsd-ufs  (4.0G)
    23068688  102752392       6  freebsd-ufs  (49G)

=>        0  671083245  ada0s3  BSD  (320G)
           0         16          - free -  (8.0K)
          16  671083229       1  freebsd-ufs  (320G)

[root at greenxhome/greenx/ispman]#gpart add -t freebsd ada0
ada0s4 added
[root at greenxhome/greenx/ispman]#gpart show
=>       63  976773105  ada0  MBR  (466G)
          63   69561387     1  !7  (33G)
    69561450  125821080     2  freebsd  [active]  (60G)
   195382530  671083245     3  freebsd  (320G)
   866465775  110307393     4  freebsd  (53G)

=>        0  125821080  ada0s2  BSD  (60G)
           0         16          - free -  (8.0K)
          16    2097152       1  freebsd-ufs  (1.0G)
     2097168    4194304       2  freebsd-swap  (2.0G)
     6291472    8388608       4  freebsd-ufs  (4.0G)
    14680080    8388608       5  freebsd-ufs  (4.0G)
    23068688  102752392       6  freebsd-ufs  (49G)

=>        0  671083245  ada0s3  BSD  (320G)
           0         16          - free -  (8.0K)
          16  671083229       1  freebsd-ufs  (320G)

In the previous experiment, there was already ada0s4!!!!
I did not think, that the system shows me that a breakdown of the disk 
that once was there.
I thought, that gpart made a record in the MBR and suitable recording on 
slice.
And when I tried to enter the following command system would 'already 
exists' !
Modify the partition of the system did not give me too.
On the one hand it is very good that nothing is lost, and with another 
inexperienced person is misleading.
Maybe print a warning if the type of an existing entry in the slice is 
not the type to MBR?


In any case, thanks for the tip-off:)
Best regards, GreenX



More information about the freebsd-geom mailing list