From owner-freebsd-gnome@FreeBSD.ORG Tue Aug 26 22:28:38 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4B801065675 for ; Tue, 26 Aug 2008 22:28:38 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao103.cox.net (eastrmmtao103.cox.net [68.230.240.9]) by mx1.freebsd.org (Postfix) with ESMTP id 21AC68FC19 for ; Tue, 26 Aug 2008 22:28:38 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao103.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080826222837.WMNN22820.eastrmmtao103.cox.net@eastrmimpo01.cox.net> for ; Tue, 26 Aug 2008 18:28:37 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo01.cox.net with bizsmtp id 7AUc1a00D4iy4EG02AUdkd; Tue, 26 Aug 2008 18:28:37 -0400 Date: Tue, 26 Aug 2008 17:28:40 -0500 To: freebsd-gnome@freebsd.org From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.51 (Linux) Subject: Get mtools's mlabel to bypass the "Big disks not supported on this architecture" X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 22:28:38 -0000 Hello folks, The HAL will crash if you have label contain with spaces. The mtools's mlabel can rename the label. But with the default mtools port does not allow me to do that with my USB HDD external with 160GB FAT32. I get complain like this: ------------------------------------------- # mlabel -s c: Big disks not supported on this architecture ------------------------------------------- So I have decided to hack in mtools's init.c to get mlabel works my HDD. With hack, it looks like this: ------------------------------------------- # mlabel -s c: Volume label is MY PASSPORT # mlabel c:mypassport # mlabel -s c: Volume label is MYPASSPORT ------------------------------------------- I also have updated it to 3.9.11. I only did that, because I thought that it might remove that complain in this version without check changelog but it didn't. So.. I am including 3.9.11 in patch too for no reason. You can get it here: http://people.freebsd.org/~mezz/diff/mtools.diff It only will use init.c patch if you run it with USE_AT_MY_OWN_RISK=yes. The reason I did that is: # It removes complain about 'Big disks not supported on this architecture', # but I only have tested it with mlabel. The complain must have added for # some reasons that I don't know. Use it with caution as it might damage # your data or something else if you use different tools other than # mlabel. I personal don't know if there is other tool than mlabel that can rename MS-DOS label in FreeBSD. If anyone know, I would like to know too. Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org