From owner-freebsd-newbies@FreeBSD.ORG Mon May 16 04:44:07 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C6C616A4CE for ; Mon, 16 May 2005 04:44:07 +0000 (GMT) Received: from harmony.digitalbluesky.net (dsl093-010-046.cle1.dsl.speakeasy.net [66.93.10.46]) by mx1.FreeBSD.org (Postfix) with SMTP id 8739A43DC2 for ; Mon, 16 May 2005 04:44:06 +0000 (GMT) (envelope-from steve@digitalbluesky.net) Received: (qmail 42223 invoked by uid 0); 16 May 2005 04:44:23 -0000 Received: from unknown (HELO willow.digitalbluesky.net) (steve@digitalbluesky.net@192.168.1.1) by harmony.digitalbluesky.net with SMTP; 16 May 2005 04:44:23 -0000 Message-Id: <6.2.1.2.0.20050516003421.02048b58@mail.digitalbluesky.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Mon, 16 May 2005 00:44:05 -0400 To: freebsd-newbies@freebsd.org From: Steve Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: how to format a usb drive with a freebsd partition X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 04:44:07 -0000 I've done a google search, read the freebsd handbook and searched the mailing list archives...maybe I'm not using the right search terms but I'm not finding the information I need...or I'm misunderstanding something on a fundamental level. I have a 120 gig western digital usb drive with a FAT32 file system connected to a freebsd 5.3 box that I can mount and read/write to okay . But (and I think this is correct) when I backup files from my freebsd 5.3 box to this drive, the file permissions aren't being maintained. That is because it's a FAT32 files system correct? I've always in the past backed up linux/freebsd files to other linux/freebsd boxes so this is the first time I'm dealing with this. What is the correct way to format this FAT32 usb drive so I can put freebsd files on it and maintain the proper owner and file permissions. Steve Bopple www.digitalbluesky.net From owner-freebsd-newbies@FreeBSD.ORG Mon May 16 04:51:58 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D58C16A4CE for ; Mon, 16 May 2005 04:51:58 +0000 (GMT) Received: from asclepius.uwa.edu.au (asclepius3.uwa.edu.au [130.95.128.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4885E43D98 for ; Mon, 16 May 2005 04:51:57 +0000 (GMT) (envelope-from zanchey@ucc.gu.uwa.edu.au) Received: from asclepius.kas (localhost.localdomain [127.0.0.1]) by asclepius.uwa.edu.au (Postfix) with SMTP id 1366B1837D0 for ; Mon, 16 May 2005 12:51:56 +0800 (WST) Received: from asclepius (localhost.localdomain [127.0.0.1]) by asclepius.prekas (Postfix) with SMTP id 018A4183902 for ; Mon, 16 May 2005 12:51:56 +0800 (WST) X-UWA-Client-IP: 130.95.13.9 (UWA) Received: from mooneye.ucc.gu.uwa.edu.au (mooneye.ucc.gu.uwa.edu.au [130.95.13.9]) by asclepius.input (Postfix) with ESMTP id DB89918384C for ; Mon, 16 May 2005 12:51:55 +0800 (WST) Received: by mooneye.ucc.gu.uwa.edu.au (Postfix, from userid 801) id 5249317F28; Mon, 16 May 2005 12:51:55 +0800 (WST) Received: from mussel.ucc.gu.uwa.edu.au (mussel.ucc.gu.uwa.edu.au [130.95.13.18]) by mooneye.ucc.gu.uwa.edu.au (Postfix) with ESMTP id DBDB717E0D; Mon, 16 May 2005 12:51:54 +0800 (WST) Received: from zanchey (helo=localhost) by mussel.ucc.gu.uwa.edu.au with local-esmtp (Exim 3.36 #1 (Debian)) id 1DXXa6-0003VG-00; Mon, 16 May 2005 12:51:54 +0800 Date: Mon, 16 May 2005 12:51:54 +0800 (WST) From: David Adam To: Steve In-Reply-To: <6.2.1.2.0.20050516003421.02048b58@mail.digitalbluesky.net> Message-ID: References: <6.2.1.2.0.20050516003421.02048b58@mail.digitalbluesky.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Info: Profile: Formal (236/050427) X-SpamTest-Info: Profile: Detect Hard [UCS 290904] X-SpamTest-Info: Profile: SysLog X-SpamTest-Info: Profile: Marking Spam - Subject (UCS) [02-08-04] X-SpamTest-Status: Not detected X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release cc: freebsd-newbies@freebsd.org Subject: Re: how to format a usb drive with a freebsd partition X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 04:51:58 -0000 Steve, On Mon, 16 May 2005, Steve wrote: > I have a 120 gig western digital usb drive with a FAT32 file system > connected to a freebsd 5.3 box that I can mount and read/write to okay > . But (and I think this is correct) when I backup files from my freebsd > 5.3 box to this drive, the file permissions aren't being maintained. That > is because it's a FAT32 files system correct? I've always in the past > backed up linux/freebsd files to other linux/freebsd boxes so this is the > first time I'm dealing with this. > > What is the correct way to format this FAT32 usb drive so I can put freebsd > files on it and maintain the proper owner and file permissions. The FAT32 file system on your removable drive does not support permissions or owner/group security. (You may not have noticed, but it doesn't support symlinks either.) In order to transfer files maintaining the metadata, you have two options: - Reformat the drive to use UFS(FFS) or Ext2/3. This will involve less work in the long term, but will make copying files to a Windows machine impossible. - Archive the files you want to transfer in a .tar.gz file (tar cvzf *) and copy the resulting file to the drive. This will allow you to maintain permissions and symlinks, but will require more work every time you want to transfer files. Hope that helps! (This sort of thread really belongs on -questions@.) David Adam zanchey@ucc.gu.uwa.edu.au