From owner-freebsd-questions@FreeBSD.ORG Wed Oct 29 23:51:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AEE2106564A for ; Wed, 29 Oct 2008 23:51:35 +0000 (UTC) (envelope-from royer.franck@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 1F6BE8FC14 for ; Wed, 29 Oct 2008 23:51:31 +0000 (UTC) (envelope-from royer.franck@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so160676nfh.33 for ; Wed, 29 Oct 2008 16:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:date:user-agent :references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id:from; bh=lbaXsYHxy9ix3yHZApBbvww6RMo/v2N9LG3l+bn2E2U=; b=OpZo5x2Fxg0cJdeDAYaFLSM02Ey0We/3HCIg1vkWsAcRQjMNHMsbmZm335gPZNpu7e QzafgQR/vsy1eKGFWHAzqMFAkTDEkR/NlnnTN0GFcTzLlkToLcOjZIOGHiMHfN9x5S2w bEmnwUJSvHjvkyW8Exs69mCAsWPo5Bi/WArEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id:from; b=uNis6vciKU1YXAJMWm5JaANRqg00xvtWUKP6nsQc5F+RcxK+UfGR4q9PTtJ66lhwo5 yg2dG+NQeblKfaAnyvWu3KBR8cOGnSOVGzp4tcOP7qF+JFKHPealSW6DXhkVCGj/dGcT uG/PIJkqdF640SYqissAoaZTZS0eMoFUC4TMk= Received: by 10.210.30.1 with SMTP id d1mr10788405ebd.31.1225322744322; Wed, 29 Oct 2008 16:25:44 -0700 (PDT) Received: from iris-bsd.localnet (host217-43-152-224.range217-43.btcentralplus.com [217.43.152.224]) by mx.google.com with ESMTPS id g9sm1154726gvc.0.2008.10.29.16.25.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 29 Oct 2008 16:25:43 -0700 (PDT) To: freebsd-questions@freebsd.org Date: Wed, 29 Oct 2008 23:25:41 +0000 User-Agent: KMail/1.10.1 (FreeBSD/7.1-PRERELEASE; KDE/4.1.2; i386; ; ) References: <49059437.4000700@free.fr> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810292325.41743.francklarchange@free.fr> From: Franck Royer Subject: Re: GPT Support on Freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 23:51:35 -0000 More news : 1) Boot from the livecd pcbsd - Like I remember, pcbsd shows me only the first four partitions in the=20 installation wizard. That's correspond to the partitions which are=20 synchronised from the gpt by refit. - When I boot to emergency mode, I am able to access to all my partitions = !=20 and a "gpt show ad0" works fine. But, still from the emergency mode, I chro= ot=20 in my pcbsd root partition, I can't see the gpt anymore. Pretty weird... 2) New kernel Like I said, I recompile a kernel from the generic with two more lines : "options GEOM_PART_MBR" "options EXT2FS" When I booted on it, I had a problem : ad0 became ad5. So the mountroot ask= ed=20 me to enter the name of my root partition and Miracle ! it show me ALL my g= pt=20 partitions, include my Home in ext2. Then I enter "ad5s4a" which is my pcbsd root partition. After the boot, I thought all was fixed but no, I still can only see the 4= =20 first partitions in the /dev and "gpt show ad5" still returns an error. It's pretty weird because before the mount of the root partition, i was abl= e=20 to see all my gpt partitions, then after, the problem remains. I don't enough know the freebsd boot process to understand by myself. Any=20 Ideas ? =46ranck > Hi, > > Thank you for help. I provide you the maximum information about my > partitions. > > Before, I watch the kernel configuration. When I fetch the kernel > sources, I can see 2 differents configuration files : DEFAULTS and > GENERIC. and the line : "options GEOM_PART_GPT" is present > only in GENERIC. If I use my knowledge in linux systems, I would say > that my actual kernel was compiled with the DEFAULTS conf, which > doesn't enable the support of GPT for GEOM. Maybe I'm wrong, my knew > kernel is compiling... > > On Freebsd : > > [Dante@iris-bsd /usr/home/Dante]$ ls /dev/|grep ^ad > ad0 > ad0s2 > ad0s3 > ad0s4 > ad0s4a > ad0s4b > ad0s4c > > my dmesg : > http://pastebin.com/m7b5f130e > > On Gentoo : > > dante@iris:~ % LANG=3DC sudo parted /dev/sda > GNU Parted 1.8.8 > Using /dev/sda > Welcome to GNU Parted! Type 'help' to view a list of commands. > (parted) p > Model: ATA ST9200420ASG (scsi) > Disk /dev/sda: 200GB > Sector size (logical/physical): 512B/512B > Partition Table: gpt > > Number Start End Size File system Name Flags > 1 20.5kB 210MB 210MB fat32 EFI System Partition boot > 2 210MB 19.4GB 19.2GB hfs+ MacOSX > 3 19.4GB 19.6GB 206MB ext2 > 4 19.6GB 39.5GB 19.9GB > 6 39.5GB 42.7GB 3142MB linux-swap > 5 42.7GB 58.4GB 15.7GB ext3 Gentoo > 7 58.4GB 74.1GB 15.7GB ext3 > 9 89.9GB 200GB 110GB ext3 > > The 4 is my ufs partition. UFS is not recognize on my gentoo system. > The partition 7 is my home, the one that I want to mount under > freebsd. > > Again, thank you for your help > > Franck > > 2008/10/29 John Baldwin : > > On Wednesday 29 October 2008 11:52:19 am Franck Royer wrote: > >> John Baldwin a =E9crit : > >> > On Wednesday 29 October 2008 07:42:18 am Lowell Gilbert wrote: > >> >> Franck Royer writes: > >> >>> Can I oblige pcbsd to look the gpt table instead of the msdos one ? > >> >>> How can I access to my fifth partition ? > >> >> > >> >> John Baldwin (jhb) has been working on GPT support, but it's still > >> >> reported to be a work in progress. It works as far as recognizing > >> >> disks over 16TB. It also gets picked up by the geom framework. I'm > >> >> not sure about booting, although there are tantalizing hints in the > >> >> manual pages. > >> > > >> > GPT booting works just fine on 6.x and later. Using the gpt(8) > >> > utility > > > > you > > > >> > basically do: > >> > > >> > # gpt create foo0 > >> > # gpt boot foo0 > >> > > >> > The second command creates a special boot partition in /dev/foo0p1.= =20 > >> > You > > > > can > > > >> > then add partitions: > >> > > >> > # gpt add -t ufs foo0 > >> > # newfs /dev/foo0p2 > >> > > >> > gpart(8) in HEAD works similarly. The one thing lacking is that > >> > sysinstall/libdisk doesn't handle GPT, so there isn't a nice way to = do > >> > it during installation. > >> > >> Ok thank you. But actually, it's not what I'm looking for. > >> > >> I use freebsd on a macbook. On this macbook, I already have a gpt, > >> refit, mac os x and some linux partitions. The problem is freebsd, whi= ch > >> doesn't recognize partitions after the fourth one (but my gentoo linux > >> see them). > >> > >> Then, I suppose freebsd use the mbr partition table (synchronized from > >> the gpt one using refit) to populate the /dev, but partitions after the > >> fourth, which are those I want to use, are only indexed in the gpt. > >> > >> Finally, I want to force freebsd to use the gpt on my hard drive to > >> allow it to see others partitions. > >> > >> I don't want to destroy my actual gpt, maybe one day, but no right now. > >> > >> Tell me if my english is too bad to be understood. > >> > >> I just want to precise that I use pcvbsd 7.0, so the kernel > >> configuration might be different than the freebsd generic one. > > > > What device entries do you see in /dev? > > > > -- > > John Baldwin > > -- > Franck Royer > > Student of Manchester University > Etudiant Ing=E9nieur de l'ENSIIE (Ecole Nationale Sup=E9rieure > d'Informatique pour l'Industrie et l'Entreprise) > > e-mail/jabber: royer.franck@gmail.com