Date: Thu, 17 Jun 2010 18:17:41 +0400 From: Andrey Groshev <greenx@yartv.ru> To: freebsd-geom@freebsd.org Subject: Re: trouble creating UFS slise with gpart Message-ID: <4C1A2E85.4010906@yartv.ru> In-Reply-To: <4C1A13BF.4030603@yandex.ru> References: <4C1A043A.3000906@yartv.ru> <4C1A13BF.4030603@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@greenxhome/greenx/ispman]#gpart add -t freebsd ada0 ada0s4 added [root@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C1A2E85.4010906>