From owner-freebsd-fs@FreeBSD.ORG Mon Jan 31 15:21:50 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEE4816A4CE for ; Mon, 31 Jan 2005 15:21:50 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 8BD1443D45 for ; Mon, 31 Jan 2005 15:21:49 +0000 (GMT) (envelope-from stan.de@gmx.net) Received: (qmail 20765 invoked by uid 0); 31 Jan 2005 15:21:48 -0000 Received: from 62.244.18.10 by www21.gmx.net with HTTP; Mon, 31 Jan 2005 16:21:48 +0100 (MET) Date: Mon, 31 Jan 2005 16:21:48 +0100 (MET) From: "Stan Sorochan" To: freebsd-fs@freebsd.org MIME-Version: 1.0 X-Priority: 3 (Normal) X-Authenticated: #20769176 Message-ID: <25212.1107184908@www21.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs and other removable media? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 15:21:50 -0000 Hi everyone! I am running FreeBSD 5.2 on a PIV machine What I need to do is let ordinary users mount removable media (CD's, floppies, flash cards, digicams, etc) So I went ahead and done the following steps: enabled vfs.usermount (i've checked it - after reboot I do this: # sysctl -a | grep vfs.usermount and get vfs.usermount=1 then I've added the following groups to my group file and added myself to them: usb, floppy, cdrom. their GID's are all above 1001 then I've added the following to my /etc/devfs.conf: own acd0 root:cdrom perm acd0 0660 own fd0 root:floppy perm fd0 0660 **************************************************************** ***After all of the above I can mount a CD without doing a su*** **************************************************************** Then I've created a /etc/devfs.rules and put the following lines into it: [fetbox_usb=10] add path 'da*s*' mode 0660 group usb and I've added the follwing line to my /etc/rc.conf: devfs_system_ruleset="fetbox_usb" so that my rule was loaded at boot time but I still cannot mount stuff on the USB port. If I check the permission rights for my da* device, everything seems OK, the device gets assigned the correct gid and rights. What am I missing? How can I make my USB devices accessible without SU??? -- Thanks in advance for your support! Stan Sorochan -- GMX im TV ... Die Gedanken sind frei ... Schon gesehen? Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot From owner-freebsd-fs@FreeBSD.ORG Mon Jan 31 15:52:15 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AE1516A4CE for ; Mon, 31 Jan 2005 15:52:15 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CA7543D39 for ; Mon, 31 Jan 2005 15:52:14 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id j0VFqCKM009772; Mon, 31 Jan 2005 18:52:12 +0300 (MSK) (envelope-from maxim@macomnet.ru) Date: Mon, 31 Jan 2005 18:52:12 +0300 (MSK) From: Maxim Konovalov To: Stan Sorochan In-Reply-To: <25212.1107184908@www21.gmx.net> Message-ID: <20050131185131.S8282@mp2.macomnet.net> References: <25212.1107184908@www21.gmx.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Info: Profile: Formal (206/050130) X-SpamTest-Info: Profile: Detect Hard (4/030526) X-SpamTest-Info: Profile: SysLog X-SpamTest-Info: Profile: Marking - Keywords (2/030321) X-SpamTest-Status: Not detected X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0124], SpamtestISP/Release cc: freebsd-fs@freebsd.org Subject: Re: FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs and other removable media? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 15:52:15 -0000 On Mon, 31 Jan 2005, 16:21+0100, Stan Sorochan wrote: > Hi everyone! > > I am running FreeBSD 5.2 on a PIV machine > > What I need to do is let ordinary users mount removable media (CD's, > floppies, flash cards, digicams, etc) > > So I went ahead and done the following steps: > > enabled vfs.usermount (i've checked it - after reboot I do this: > # sysctl -a | grep vfs.usermount > and get > vfs.usermount=1 > > then I've added the following groups to my group file and added myself to > them: > usb, floppy, cdrom. their GID's are all above 1001 > > then I've added the following to my /etc/devfs.conf: > > own acd0 root:cdrom > perm acd0 0660 > > own fd0 root:floppy > perm fd0 0660 > > **************************************************************** > ***After all of the above I can mount a CD without doing a su*** > **************************************************************** > > Then I've created a /etc/devfs.rules and put the following lines into it: > > [fetbox_usb=10] > add path 'da*s*' mode 0660 group usb > > and I've added the follwing line to my /etc/rc.conf: > > devfs_system_ruleset="fetbox_usb" > > so that my rule was loaded at boot time > > but I still cannot mount stuff on the USB port. > > If I check the permission rights for my da* device, everything seems OK, the > device gets assigned the correct gid and rights. > > What am I missing? How can I make my USB devices accessible without SU??? /dev/xpt0? -- Maxim Konovalov From owner-freebsd-fs@FreeBSD.ORG Mon Jan 31 17:19:09 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A73516A4CE for ; Mon, 31 Jan 2005 17:19:09 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43A8B43D1F for ; Mon, 31 Jan 2005 17:19:09 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id 7031B46B17; Mon, 31 Jan 2005 12:19:08 -0500 (EST) Date: Mon, 31 Jan 2005 17:18:28 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Stan Sorochan In-Reply-To: <25212.1107184908@www21.gmx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-fs@freebsd.org Subject: Re: FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs and other removable media? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 17:19:09 -0000 On Mon, 31 Jan 2005, Stan Sorochan wrote: > If I check the permission rights for my da* device, everything seems OK, > the device gets assigned the correct gid and rights. > > What am I missing? How can I make my USB devices accessible without > SU??? If you su to root, mount it, then unmount it, and then try to mount it as the regular user, does that work? Robert N M Watson From owner-freebsd-fs@FreeBSD.ORG Wed Feb 2 23:02:08 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6ACC16A4CE for ; Wed, 2 Feb 2005 23:02:08 +0000 (GMT) Received: from relay.kiev.sovam.com (relay.kiev.sovam.com [212.109.32.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E9A843D45 for ; Wed, 2 Feb 2005 23:02:08 +0000 (GMT) (envelope-from stan.de@gmx.net) Received: from [62.64.112.35] (helo=as3-L35.kiev.sovam.net.ua) by relay.kiev.sovam.com with esmtp (Exim 4.41) id 1CwTVb-0002l0-S0 for freebsd-fs@freebsd.org; Thu, 03 Feb 2005 01:02:04 +0200 From: Stan Sorochan Organization: www.unixoid.cjb.net To: freebsd-fs@freebsd.org Date: Thu, 3 Feb 2005 01:10:35 +0200 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable Message-Id: <200502030110.35144.stan.de@gmx.net> X-Scanner-Signature: f216f799903dddc2f9accd11d8a1fded X-DrWeb-checked: yes Subject: Re: FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs and other removablemedia?I' X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 23:02:08 -0000 Thanks to those who've responded! So I'm combining two of the emails that I've acted upon: =46irst:=20 >/dev/xpt0? >--=20 >Maxim Konovalov Second: > If you su to root, mount it, then unmount it, and then try to mount it as > the regular user, does that work? > > Robert N M Watson OK, I've added the follwing lines to my devfs.conf: own xpt0 root:usb #gid of those who need to mount a usb device perm xpt0 0660 so now I get this: # ll /dev/ | grep xpt0 crw-rw---- 1 root usb 104, 0 1 =EB=FE=F2 23:46 xpt0 this looks good, but I still can't mount the /dev/da0s1 without su rights. Then I do a su, mount the device, unmount it - and now I can mount the devi= ce=20 without su rights.... OK, that sort of works, but the su part really has to go.... How can I fix= =20 that? =2D-=20 Best regards, Stan Sorochan From owner-freebsd-fs@FreeBSD.ORG Wed Feb 2 23:19:30 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEBD816A4CE for ; Wed, 2 Feb 2005 23:19:30 +0000 (GMT) Received: from web41202.mail.yahoo.com (web41202.mail.yahoo.com [66.218.93.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 7749C43D41 for ; Wed, 2 Feb 2005 23:19:30 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 67884 invoked by uid 60001); 2 Feb 2005 23:19:27 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=oP7/mQsRumbWXvet2C0MuksAGZUzhsAO5VaZkBZOLZYeb7k74sEs8NRxSA1ej7RriCLgNCtABsRHTrVaL4DyhfFuRuJuT3C7VIflqcbLmCR3nMoxdLDd+SSSI2iBG8anz0BYd+M2LVcZ8m6nxvlPxBoKJOsZc7S6Wwm29EM9S6o= ; Message-ID: <20050202231927.67882.qmail@web41202.mail.yahoo.com> Received: from [83.129.194.146] by web41202.mail.yahoo.com via HTTP; Wed, 02 Feb 2005 15:19:27 PST Date: Wed, 2 Feb 2005 15:19:27 -0800 (PST) From: Arne "Wörner" To: Stan Sorochan , freebsd-fs@freebsd.org In-Reply-To: <200502030110.35144.stan.de@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs and other removablemedia?I' X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 23:19:30 -0000 > OK, that sort of works, but the su part really has to go.... > How can I fix that? > You could write a little shell script and put it in /usr/local/etc/rc.d . This shell script mounts and unmounts the device... quod erat faciendum. Or not? :-)) -Arne __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From owner-freebsd-fs@FreeBSD.ORG Thu Feb 3 21:54:27 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4644C16A4CE for ; Thu, 3 Feb 2005 21:54:27 +0000 (GMT) Received: from relay.kiev.sovam.com (relay.kiev.sovam.com [212.109.32.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id A47AB43D2D for ; Thu, 3 Feb 2005 21:54:26 +0000 (GMT) (envelope-from stan.de@gmx.net) Received: from [62.64.119.200] (helo=as0-L200.kiev.sovam.net.ua) by relay.kiev.sovam.com with esmtp (Exim 4.41) id 1Cwovf-000AP4-Ji for freebsd-fs@freebsd.org; Thu, 03 Feb 2005 23:54:25 +0200 From: Stan Sorochan Organization: www.unixoid.cjb.net To: freebsd-fs@freebsd.org Date: Fri, 4 Feb 2005 00:02:57 +0200 User-Agent: KMail/1.5.4 References: <20050202231927.67882.qmail@web41202.mail.yahoo.com> In-Reply-To: <20050202231927.67882.qmail@web41202.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200502040002.58114.stan.de@gmx.net> X-Scanner-Signature: e7d6a74e6a41bfc4865bf8c76b21c35c X-DrWeb-checked: yes Subject: Re: FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs and other removablemedia?' X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 21:54:27 -0000 Yes!!! It's been figured out! Thanks to great advice in this mailing list! Many many thanks to those who= =20 spent their time to write! So to recap! In order to be able to mount removable media without su on=20 =46reeBSD 5.X this has to be done: vfs.usermount=3D1 is to be put into /etc/sysctl.conf The following lines are to be added to /etc/devfs.conf: # Allow members of cdrom to mount the ide cdrom own acd0 root:cdrom perm acd0 0660 # Allow members of floppy group to mount fd own fd0 root:floppy perm fd0 0660 The follwing lines are to be added to /etc/devfs.rules: [userbox_usb=3D10] add path 'da*' mode 0660 group usb #more of the usb devices are to be added here (scanners, digicams, etc) The following line is to be added to /etc/rc.conf so that the rules are=20 loaded: #Load the ruleset that allows mounting of devices for users devfs_system_ruleset=3D"userbox_usb" The last thing to do is to make sure that the appropriate modules are loade= d=20 into the kernel. If some are not compiled into the kernel, like msdosfs.ko= =20 or cd9660.ko for example, see /boot/examples/loader.conf for guidance on ho= w=20 to load them at boot time. The appropriate lines are to be added to /boot/ loader.conf That's it! After that you can have users that don't know the superuser=20 password use cd's, floppies, usb flash drives etc (if you let them of=20 course).=20 The above is just the basics, it can be followed by entries in the /etc/fst= ab=20 file, automounting setups and even scripts that make flash drive icons appe= ar=20 on KDE desktop as they become available, and disapear as the flash drive is= =20 removed... Did I miss anything? On Thursday 03 February 2005 16:14, Lowell Gilbert wrote: > stan.de@gmx.net (Stan Sorochan) writes: > > Then I do a su, mount the device, unmount it - and now I can mount the > > device without su rights.... > > > > OK, that sort of works, but the su part really has to go.... How can I > > fix that? > > The su part is necessary because it loads a kernel module for you. > I'm guessing that it's the msdosfs module. Just compile that into > your kernel, or load it from /boot/loader.conf, and msdosfs support > will be automatically pre-loaded before your first mount attempt. On Thursday 03 February 2005 01:19, Arne "W=F6rner" wrote: > > OK, that sort of works, but the su part really has to go.... > > How can I fix that? > > You could write a little shell script and put it in > /usr/local/etc/rc.d . > > This shell script mounts and unmounts the device... > > quod erat faciendum. Or not? :-)) > > -Arne =2D-=20 Stan Sorochan www.unixoid.cjb.net From owner-freebsd-fs@FreeBSD.ORG Thu Feb 3 23:47:49 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B165B16A4CE for ; Thu, 3 Feb 2005 23:47:49 +0000 (GMT) Received: from mail.mynet.cz (74.mynet.cz [217.11.249.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AE8F43D53 for ; Thu, 3 Feb 2005 23:47:48 +0000 (GMT) (envelope-from jp@devnull.cz) Received: from axxem.hide.subzone.cz (subzone.osad.prg.mynet.cz [82.119.254.162]) by mail.mynet.cz (8.12.11/8.12.11) with ESMTP id j13Nm5KP008565 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Fri, 4 Feb 2005 00:48:05 +0100 (CET) (envelope-from jp@devnull.cz) Date: Fri, 4 Feb 2005 00:47:31 +0100 (CET) From: Jan Pechanec X-X-Sender: jp@axxem.hide.subzone.cz To: FreeBSD FS Mailing List Message-ID: <20050204002432.D12874@axxem.hide.subzone.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: fs oddity when moving from 4.4 to 5.3 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 23:47:49 -0000 hi, after RW mounting UFS1 filesystem created using sysinstall under 4.4 to 5.3 and extracting 1/2 of the only file there (tarball), the file got lost. Now I got that disk to salvage as much as I can. I don't want to give much details since I think it would be too much, but is there any chance that some changes in the code could do that? Fsck doesn't complain, the directory chunk for the file is now part of larger free chunk etc., but the file was not manually deleted, bash history was checked. just one thing: 'dumpfs -m' on 5.3 and then 'newfs -N...' shows: /dev/ad1s1e: 38158.3MB (78148160 sectors) block size 8192, fragment size 1024 using 846 cylinder groups of 45.15MB, 5779 blks, 11584 inodes. super-block backups (for fsck -b #) at: 32, 92496, 184960, 277424, 369888, 462352, 554816, 647280, 739744, 832208, the same 'newfs -N' (without '-O 1') on 4.11 shows this: /dev/ad1s1e: 78148160 sectors in 19080 cylinders of 1 tracks, 4096 sectors 38158.3MB in 868 cyl groups (22 c/g, 44.00MB/g, 10944 i/g) super-block backups (for fsck -b #) at: 32, 90144, 180256, 270368, 360480, 450592, 540704, 630816, 720928, 811040, you can see that number of cylinder groups is different (and superblocks too of course) and no wonder that all superblocks except of 32 don't work with 'fsck -b'. The real 2nd backup superblock (manually found using the magic) is 65568, which is quite far from what 5.3/4.11 thinks. Apparently the real number of cylinder group is very different. Can anyone explain that, please? I'm quite confused. Tomorrow I will install 4.4 to see the filesystem behaviour there. root@compaq.hide:~# fsck -b 65568 -n /dev/ad1s1e Alternate super block location: 65568 ** /dev/ad1s1e (NO WRITE) ** Last Mounted on ** Phase 1 - Check Blocks and Sizes thank you, Jan. -- Jan Pechanec From owner-freebsd-fs@FreeBSD.ORG Fri Feb 4 01:43:50 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1693516A4CE for ; Fri, 4 Feb 2005 01:43:50 +0000 (GMT) Received: from ccshst09.cs.uoguelph.ca (ccshst09.cs.uoguelph.ca [131.104.96.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 774F343D1F for ; Fri, 4 Feb 2005 01:43:49 +0000 (GMT) (envelope-from rick@snowhite.cis.uoguelph.ca) Received: from snowhite.cis.uoguelph.ca (snowhite.cis.uoguelph.ca [131.104.48.1])j141hmvu026496 for ; Thu, 3 Feb 2005 20:43:48 -0500 Received: (from rick@localhost) by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id UAA14115 for fs@freebsd.org; Thu, 3 Feb 2005 20:43:35 -0500 (EST) Date: Thu, 3 Feb 2005 20:43:35 -0500 (EST) From: rick@snowhite.cis.uoguelph.ca Message-Id: <200502040143.UAA14115@snowhite.cis.uoguelph.ca> To: fs@freebsd.org X-Scanned-By: MIMEDefang 2.44 Subject: fyi: NFS v4 server X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 01:43:50 -0000 I've put a version of the NFSv4 beta test server that works on FreeBSD5.3 up. Just anonymous ftp ftp.cis.uoguelph.ca and look in pub/nfsv4 rick From owner-freebsd-fs@FreeBSD.ORG Fri Feb 4 05:28:49 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1821D16A4CE for ; Fri, 4 Feb 2005 05:28:49 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0C4143D4C for ; Fri, 4 Feb 2005 05:28:48 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id C286972DD4; Thu, 3 Feb 2005 21:28:48 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id BD20872DCB; Thu, 3 Feb 2005 21:28:48 -0800 (PST) Date: Thu, 3 Feb 2005 21:28:48 -0800 (PST) From: Doug White To: Jan Pechanec In-Reply-To: <20050204002432.D12874@axxem.hide.subzone.cz> Message-ID: <20050203212431.K47315@carver.gumbysoft.com> References: <20050204002432.D12874@axxem.hide.subzone.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD FS Mailing List Subject: Re: fs oddity when moving from 4.4 to 5.3 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 05:28:49 -0000 On Fri, 4 Feb 2005, Jan Pechanec wrote: > > hi, after RW mounting UFS1 filesystem created using sysinstall under > 4.4 to 5.3 and extracting 1/2 of the only file there (tarball), the file got > lost. Now I got that disk to salvage as much as I can. I don't want to give > much details since I think it would be too much, but is there any chance > that some changes in the code could do that? Fsck doesn't complain, the > directory chunk for the file is now part of larger free chunk etc., but the > file was not manually deleted, bash history was checked. > > just one thing: 'dumpfs -m' on 5.3 and then 'newfs -N...' shows: > > /dev/ad1s1e: 38158.3MB (78148160 sectors) block size 8192, fragment size 1024 > using 846 cylinder groups of 45.15MB, 5779 blks, 11584 inodes. > super-block backups (for fsck -b #) at: > 32, 92496, 184960, 277424, 369888, 462352, 554816, 647280, 739744, 832208, > > the same 'newfs -N' (without '-O 1') on 4.11 shows this: > > /dev/ad1s1e: 78148160 sectors in 19080 cylinders of 1 tracks, 4096 sectors > 38158.3MB in 868 cyl groups (22 c/g, 44.00MB/g, 10944 i/g) > super-block backups (for fsck -b #) at: > 32, 90144, 180256, 270368, 360480, 450592, 540704, 630816, 720928, 811040, Its possible between 4.4 and 4.11 (I haven't checked the CVS history) the newfs default for the '-g' option, which sets the cylinder group size, changed from the old BSD default to "the max possible" which is generally better for performance. You would need the original FS parameters to feed to newfs on 4.11 in order to calculate the correct superblock positions. Or you could fish the fsck binary off a 4.4 cd 2 and run that to do the calculation. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-fs@FreeBSD.ORG Fri Feb 4 05:32:00 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A023916A4CE for ; Fri, 4 Feb 2005 05:32:00 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CCE543D39 for ; Fri, 4 Feb 2005 05:32:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 7497B52546; Thu, 3 Feb 2005 21:31:59 -0800 (PST) Date: Thu, 3 Feb 2005 21:31:59 -0800 From: Kris Kennaway To: Doug White Message-ID: <20050204053159.GA86314@xor.obsecurity.org> References: <20050204002432.D12874@axxem.hide.subzone.cz> <20050203212431.K47315@carver.gumbysoft.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <20050203212431.K47315@carver.gumbysoft.com> User-Agent: Mutt/1.4.2.1i cc: FreeBSD FS Mailing List Subject: Re: fs oddity when moving from 4.4 to 5.3 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 05:32:00 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 03, 2005 at 09:28:48PM -0800, Doug White wrote: > On Fri, 4 Feb 2005, Jan Pechanec wrote: >=20 > > > > hi, after RW mounting UFS1 filesystem created using sysinstall under > > 4.4 to 5.3 and extracting 1/2 of the only file there (tarball), the fil= e got > > lost. Now I got that disk to salvage as much as I can. I don't want to = give > > much details since I think it would be too much, but is there any chance > > that some changes in the code could do that? Fsck doesn't complain, the > > directory chunk for the file is now part of larger free chunk etc., but= the > > file was not manually deleted, bash history was checked. > > > > just one thing: 'dumpfs -m' on 5.3 and then 'newfs -N...' shows: > > > > /dev/ad1s1e: 38158.3MB (78148160 sectors) block size 8192, fragment siz= e 1024 > > using 846 cylinder groups of 45.15MB, 5779 blks, 11584 inodes. > > super-block backups (for fsck -b #) at: > > 32, 92496, 184960, 277424, 369888, 462352, 554816, 647280, 739744, 832= 208, > > > > the same 'newfs -N' (without '-O 1') on 4.11 shows this: > > > > /dev/ad1s1e: 78148160 sectors in 19080 cylinders of 1 tracks, 4096 s= ectors > > 38158.3MB in 868 cyl groups (22 c/g, 44.00MB/g, 10944 i/g) > > super-block backups (for fsck -b #) at: > > 32, 90144, 180256, 270368, 360480, 450592, 540704, 630816, 720928, 811= 040, >=20 > Its possible between 4.4 and 4.11 (I haven't checked the CVS history) the > newfs default for the '-g' option, which sets the cylinder group size, > changed from the old BSD default to "the max possible" which is generally > better for performance. I'm pretty sure it did. Kris --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCAwjPWry0BWjoQKURAn1+AKCgAV27Dz/xd+BRn5iY23xrsvC+3gCfcaps yKwYol+eK8gRAO3suafBFrk= =fDeF -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--