From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vd1Ih-0004zX-Gp for mharc-grub-devel@gnu.org; Sun, 03 Nov 2013 12:17:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd1IY-0004ot-J3 for grub-devel@gnu.org; Sun, 03 Nov 2013 12:17:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vd1IR-0006fR-8B for grub-devel@gnu.org; Sun, 03 Nov 2013 12:17:14 -0500 Received: from mout.gmx.net ([212.227.17.20]:49801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd1IQ-0006fG-Ta for grub-devel@gnu.org; Sun, 03 Nov 2013 12:17:07 -0500 Received: from scdbackup.webframe.org ([87.167.182.96]) by mail.gmx.com (mrgmx002) with ESMTP (Nemesis) id 0MhAAr-1VHNho2nlx-00MKzD for ; Sun, 03 Nov 2013 18:17:05 +0100 Date: Sun, 03 Nov 2013 18:16:09 +0100 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: How important is the MBR partition offset of grub-mkrescue ? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <52767048.9050902@gmail.com> In-Reply-To: <52767048.9050902@gmail.com> Message-Id: <1974651407333528403@scdbackup.webframe.org> X-Provags-ID: V03:K0:IflN7SqvPtgxE7HtbRZ7ZLgqcsBat9AOGaWIS3XKBNCEC175jlf 65cR69JZeB+Y3V3tSTkJ3e8FCpSnFO+SMyFEK94Gy7Nt4TWRnoVRqd2ROLJEj6MUc2lp1QG LgJJoTfNNDnMezGFg9mxk0ok2VhYFf9EcJmhpaSVUFbF5d+iBwvCoH5WRWhhwWqRPMitVVs CmrejgSymmKSZcI0/6zgA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2013 17:17:22 -0000 Hi, i believe to have found the udev rules in Debian 6 which govern the population of /dev/disk/by-label. File /lib/udev/rules.d/60-persistent-storage.rules has # probe filesystem metadata of disks KERNEL!="sr*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode" ... ENV{ID_FS_LABEL_ENC}=="?*", ENV{ID_FS_USAGE}=="filesystem|other", \ SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}" I understand that if blkid sets variable ID_FS_LABEL_ENC to a non-empty value, then this will become the link name in ./by-label. The link target is the device that is being examined by the rule. >From a USB stick with partition start LBA 1, i get: $ /sbin/blkid -o udev -p /dev/sdb ID_PART_TABLE_TYPE=dos ID_FS_LABEL=epidemic-4.1-b1-1-ts-amd64 ID_FS_LABEL_ENC=epidemic-4.1-b1-1-ts-amd64 ID_FS_TYPE=iso9660 ID_FS_USAGE=filesystem $ /sbin/blkid -o udev -p /dev/sdb1 $ So why the hell does /dev/sdb1 become link target ? Its ID_FS_LABEL_ENC must be empty. Any idea how to get a verbous log of these decisions ? Have a nice day :) Thomas