Re: CDRW UDF file system scripts
On Fri, 31 Jan 2003 15:02:57 +0300 Andrei Smirnov [EMAIL PROTECTED] wrote: On Wed, Jan 29, 2003 at 07:38:14PM -0800, Roy Pluschke wrote: Greetings, I recently patched my kernel so that I could use a CDRW as a regular file system for backup purposes. Right know I manually Where did you found it? Thanx in advance Please send through the list rather than me personally so that all may benefit. look at http://hints.linuxfromscratch.org/hints/cdrw-hint.txt; for a howto -- I used the already packaged udftools deb rather than building then myself. The only problem is shutting down without unmounting -- the packet-CD driver process is terminated before the attempt to umount the drive and so the shutdown just hangs. I don't know how to change the shutdown scripts in a debian friendly way so that the driver persists until umount is called. Solutions that I have come up with will be over-written when the boot/shutdown scripts deb (whatever it is) is updated. R. Pluschke -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: CDRW UDF file system scripts
-- Roy Pluschke [EMAIL PROTECTED] wrote (on Friday, 31 January 2003, 05:31 AM -0800): On Fri, 31 Jan 2003 15:02:57 +0300 Andrei Smirnov [EMAIL PROTECTED] wrote: On Wed, Jan 29, 2003 at 07:38:14PM -0800, Roy Pluschke wrote: Greetings, I recently patched my kernel so that I could use a CDRW as a regular file system for backup purposes. Right know I manually Where did you found it? Thanx in advance Please send through the list rather than me personally so that all may benefit. look at http://hints.linuxfromscratch.org/hints/cdrw-hint.txt; for a howto -- I used the already packaged udftools deb rather than building then myself. The only problem is shutting down without unmounting -- the packet-CD driver process is terminated before the attempt to umount the drive and so the shutdown just hangs. I don't know how to change the shutdown scripts in a debian friendly way so that the driver persists until umount is called. Solutions that I have come up with will be over-written when the boot/shutdown scripts deb (whatever it is) is updated. Have you tried the update-rc.d executable? My understanding is that when the various init scripts are added/deleted/moved with this, debconf won't change them. I could be wrong -- but from my experience so far, when I've used this they stay the way I want them. Sounds like what you need to do is change the order in which the processes are stopped -- umount the drive before stopping the packet-CD driver process. Whichever initlevel they occur in, you may even want to simply rename the K... links for these scripts. (I had to do a similar thing to start gpm support *after* I was positive that my USB support had started -- otherwise I'd have a mouse, but no gpm support for it. I simply renamed the Sxxgpm script in my default initlevel to S92gpm -- which started it pretty much after anything else.) -- Matthew Weier O'Phinney [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: CDRW UDF file system scripts
On Fri, Jan 31, 2003 at 10:32:36AM -0500, Matthew Weier O'Phinney wrote: Have you tried the update-rc.d executable? My understanding is that when the various init scripts are added/deleted/moved with this, debconf won't change them. Firstly, it's not debconf (that's *exclusively* the interface that pops up to ask you questions and the limited number of things that interact with it over its standardized protocol, not the Debian package configuration process in general - they are often confused). Secondly, see http://lists.debian.org/debian-user-0301/msg04972.html; I posted some comments on the non-magicalness of update-rc.d there. Cheers, -- Colin Watson [[EMAIL PROTECTED]] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: CDRW UDF file system scripts
-- Colin Watson [EMAIL PROTECTED] wrote (on Friday, 31 January 2003, 06:01 PM +): On Fri, Jan 31, 2003 at 10:32:36AM -0500, Matthew Weier O'Phinney wrote: Have you tried the update-rc.d executable? My understanding is that when the various init scripts are added/deleted/moved with this, debconf won't change them. Firstly, it's not debconf (that's *exclusively* the interface that pops up to ask you questions and the limited number of things that interact with it over its standardized protocol, not the Debian package configuration process in general - they are often confused). Oops. My bad. But from your wording, I'm not sure if you're saying it's the package configuration process that causes changes to the SysV script order/placement, or something else...? Secondly, see http://lists.debian.org/debian-user-0301/msg04972.html; I posted some comments on the non-magicalness of update-rc.d there. I'll take a look. But if you notice my original post, I also note that in *my experience* changing the order in which scripts load/unload in the individual runlevel directories has not caused problems -- whether or not this is true everytime was up for someone else to point out -- thank you for doing so! -- Matthew Weier O'Phinney [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: CDRW UDF file system scripts
On Fri, Jan 31, 2003 at 04:29:42PM -0500, Matthew Weier O'Phinney wrote: -- Colin Watson [EMAIL PROTECTED] wrote (on Friday, 31 January 2003, 06:01 PM +): On Fri, Jan 31, 2003 at 10:32:36AM -0500, Matthew Weier O'Phinney wrote: Have you tried the update-rc.d executable? My understanding is that when the various init scripts are added/deleted/moved with this, debconf won't change them. Firstly, it's not debconf (that's *exclusively* the interface that pops up to ask you questions and the limited number of things that interact with it over its standardized protocol, not the Debian package configuration process in general - they are often confused). Oops. My bad. But from your wording, I'm not sure if you're saying it's the package configuration process that causes changes to the SysV script order/placement, or something else...? It's the code in the maintainer scripts (preinst, postinst, prerm, postrm), yes. The postinst, for instance, is typically responsible for adding links to init.d scripts, and runs update-rc.d. Secondly, see http://lists.debian.org/debian-user-0301/msg04972.html; I posted some comments on the non-magicalness of update-rc.d there. I'll take a look. But if you notice my original post, I also note that in *my experience* changing the order in which scripts load/unload in the individual runlevel directories has not caused problems -- whether or not this is true everytime was up for someone else to point out -- thank you for doing so! *grin* The only case that will cause a problem is if you use update-rc.d to remove the links entirely, which won't be preserved on upgrade. Changing the order of the links with update-rc.d is fine. Cheers, -- Colin Watson [[EMAIL PROTECTED]] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: CDRW UDF file system scripts
On Fri, Jan 31, 2003 at 05:31:05AM -0800, Roy Pluschke wrote: The only problem is shutting down without unmounting -- the packet-CD driver process is terminated before the attempt to umount the drive and so the shutdown just hangs. I don't know how to change the shutdown scripts in a debian friendly way so that the driver persists until umount is called. Solutions that I have come up with will be over-written when the boot/shutdown scripts deb (whatever it is) is updated. Well, unless something really horrible is happening, as I understand it, when you update said deb it won't touch any rc?.d links it doesn't know about. For example, if I had an entry /etc/rc2.d/S20eggturnerd to start the egg-turning daemon on bootup, then I would *expect* dpkg to realise that deleting something it doesn't know about will probably break something, and jolly well leave it alone (unlike Windoze installers). So you could create a script, say in /etc/init.d/umountUDF, to umount the CD drive, and create a link to it /etc/rc6.d/Kxxumountudf, choosing xx so that this script is run immediately before the one to kill the packet-CD driver. Course, if this DOESN'T work, no doubt someone will say so... don't see why it shouldn't though. Pigeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
CDRW UDF file system scripts
Greetings, I recently patched my kernel so that I could use a CDRW as a regular file system for backup purposes. Right know I manually run: pktsetup /dev/pktcdvd0 /dev/scd1 and then mount the drive with the following options in fstab: rw,user,noatime,noauto everything works well but if I shutdown and forget to manually unmount the cdrw the system hangs when trying to unmount the local filesystems. Which script(s) do I have to modify to run pktsetup on bootup automatically and also be able to shutdown properly. Thanks in advance Roy P. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]