Click HereClick Here
home features news forums classifieds faqs links search
5156 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Channel: #Amigaworld
Channel Policy and Guidelines

(Uses JAVA Applet and Port 1024)
Visit the Chatroom Website

Who's Online
 51 guest(s) on-line.
 5 member(s) on-line.


lylehaze, Rose, SlayeR__, more...

You are an anonymous user.
Register Now!
 vox:  8 secs ago
 SlayeR__:  59 secs ago
 Tom01:  1 min ago
 Rose:  3 mins ago
 lylehaze:  4 mins ago
 jaokim:  7 mins ago
 Hypex:  7 mins ago
 damocles:  9 mins ago
 jabirulo:  10 mins ago
 tommysammy:  11 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  Reboot Script with waiting for finished Disk activities
Register To Post

Goto page ( 1 | 2 Next Page )
PosterThread
fingus 
Reboot Script with waiting for finished Disk activities
Posted on 4-May-2012 19:49:26
#1 ]
Cult Member
Joined: 20-Oct-2006
Posts: 682
From: Münster / Germany

Is there a useable reboot-script (warm and cold) that waiing for finished disk writing activities?

_________________
SAM460ex Lite, Radeon HD6570 Ultimate/1GB, Juli@Xte PCI-e soundcard (top notch!), OS4.1 Update6, Author of Amiga-Flipclock

 Status: Offline
Profile     Report this post  
Metalheart 
Re: Reboot Script with waiting for finished Disk activities
Posted on 4-May-2012 20:34:51
#2 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2594
From: Somewhere in the Dutch mountains....

@fingus

Why ? Never had any disk troubles since I dropped FFS.....

_________________
Theres a time to live and a time to die
When its time to meet the maker
Theres a time to live but isnt it strange
That as soon as you're born you're dying

 Status: Offline
Profile     Report this post  
gtmooya 
Re: Reboot Script with waiting for finished Disk activities
Posted on 4-May-2012 20:48:37
#3 ]
Regular Member
Joined: 8-May-2011
Posts: 201
From: Unknown

@Metalheart

Still could be useful, I have been known to do a keyboard reset forgetting that I was copying some big files. Not a disaster these days with SFS/JXFS, just annoying to have to start over.

_________________
ASSIST: Get the most out of your Amiga (Download | Contribute)

 Status: Offline
Profile     Report this post  
Metalheart 
Re: Reboot Script with waiting for finished Disk activities
Posted on 4-May-2012 20:54:25
#4 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2594
From: Somewhere in the Dutch mountains....

@gtmooya

Oh yes, thats true.....
But what good will a reset/shutdown script do when hitting ctrl-A-A in frustration ?
It has to be intercepted by software then.
Perhaps extend it then with 'sleep' or something, just turning of the GFX and drives perhaps.

_________________
Theres a time to live and a time to die
When its time to meet the maker
Theres a time to live but isnt it strange
That as soon as you're born you're dying

 Status: Offline
Profile     Report this post  
Severin 
Re: Reboot Script with waiting for finished Disk activities
Posted on 4-May-2012 21:03:26
#5 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2084
From: Gloucestershire UK

@fingus

Try This:

set code `Requestchoice "OS4Reboot" "WARNING: Reboot system?*N*NThis will cause all unsaved data to be lost!" "Cancel|Soft Reboot|Hard Reboot" type warning`
if $code EQ 2
c:reboot fast sync
endif
if $code EQ 3
c:reboot sync
endif
unset code

_________________
OS4 Rocks
X1000 beta tester, Sam440 Flex (733)

Visit the Official OS4 Support Site for more help.

It may be that your sole purpose is to serve as a warning to others.

 Status: Offline
Profile     Report this post  
broadblues 
Re: Reboot Script with waiting for finished Disk activities
Posted on 4-May-2012 21:09:09
#6 ]
Elite Member
Joined: 20-Jul-2004
Posts: 2401
From: Portsmouth England

@fingus

I don't think you could do that from script.

You'd need to install a reset handler that Locked all the drives perhaps. Or otherwise disabled them for new writes.



_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
cha05e90 
Re: Reboot Script with waiting for finished Disk activities
Posted on 4-May-2012 21:11:09
#7 ]
Super Member
Joined: 18-Apr-2009
Posts: 1128
From: Germany

@broadblues
Quote:
reset handler that Locked all the drives perhaps.


The Reboot command *does* lock the drives! (via SYNC option)

_________________
X1000|II/G4|440ep|2000/060|2000/040|1000

 Status: Offline
Profile     Report this post  
broadblues 
Re: Reboot Script with waiting for finished Disk activities
Posted on 4-May-2012 21:14:20
#8 ]
Elite Member
Joined: 20-Jul-2004
Posts: 2401
From: Portsmouth England

@cha05e90

Yes, Severin got in just before me. I didn't realise the reboot command had the sync option.

So you can do it from a script.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
ggw 
Re: Reboot Script with waiting for finished Disk activities
Posted on 5-May-2012 18:04:03
#9 ]
Cult Member
Joined: 24-May-2003
Posts: 905
From: Austin, TX

@broadblues

Ever since the days of using up CR2032 batteries every 110 days, I shutdown my A1 via the power switch in the back of the unit.

The only thing that would save me is a window I could keep around that an idle period of, say, the last 5 seconds of all non-volatile storage device activity.

I have been repeatedly fooled by Timberwolf closing its window but not actually ceasing to read(/write?) to my hard disk(s?) for minutes! I had several "validating" on the system disk until I insisted on the reply from STATUS being devoid of Timberwolf-bin.

Since I am staring at an X1000 (lacking networking at the moment) here on my desk, I am NOT excited about changing out my system disk partition for one that is not FFS or doing anything to disturb a working system that I expect to abandon any minute (hour? day? week? several weeks?).

ggw

_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
Metalheart 
Re: Reboot Script with waiting for finished Disk activities
Posted on 5-May-2012 18:14:08
#10 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2594
From: Somewhere in the Dutch mountains....

@ggw

Why on earth are you using FFS ?

Seriously....

Is that the only FS that works on a X1000 ? I didnt think so.

_________________
Theres a time to live and a time to die
When its time to meet the maker
Theres a time to live but isnt it strange
That as soon as you're born you're dying

 Status: Offline
Profile     Report this post  
Tomas 
Re: Reboot Script with waiting for finished Disk activities
Posted on 5-May-2012 18:15:24
#11 ]
Elite Member
Joined: 25-Jul-2003
Posts: 4168
From: Unknown

@Metalheart

Quote:

Metalheart wrote:
@fingus

Why ? Never had any disk troubles since I dropped FFS.....

It can still cause issues if you are unlucky.. Even filesystem with journaling can get corrupted this way.

 Status: Offline
Profile     Report this post  
ggw 
Re: Reboot Script with waiting for finished Disk activities
Posted on 5-May-2012 19:45:31
#12 ]
Cult Member
Joined: 24-May-2003
Posts: 905
From: Austin, TX

@Metalheart

It has been that way since WAAAAAAAAY back when. *Most* of the software in SYS: is stable. But Timberwolf ended up in INTERNET.

As you may have read. I ain't changin' nothin' with this X1000 sitting here waiting to fly (back to UK?)

_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
Metalheart 
Re: Reboot Script with waiting for finished Disk activities
Posted on 5-May-2012 20:37:04
#13 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2594
From: Somewhere in the Dutch mountains....

@ggw

I dont understand you, sorry....

Are you saying the X1000 has FFS since waaaaaay back or what ?

And that 'internet' you are talking about, is that a partition in your X1000 or the drawer on the SYS partition ? And what has that to do with the filesystem ?

Martin

_________________
Theres a time to live and a time to die
When its time to meet the maker
Theres a time to live but isnt it strange
That as soon as you're born you're dying

 Status: Offline
Profile     Report this post  
Xenic 
Re: Reboot Script with waiting for finished Disk activities
Posted on 5-May-2012 20:44:46
#14 ]
Cult Member
Joined: 2-Feb-2004
Posts: 963
From: Pennsylvania, USA

@ggw
Quote:
I have been repeatedly fooled by Timberwolf closing its window but not actually ceasing to read(/write?) to my hard disk(s?)

Excessive disk writing (before during and after GUI) seems to be common in ported programs. One of the reasons I don't use AmiCygnix unless I have to is the constant disk access even when appears nothing is going on. I use Snoopy a lot and am appalled at the way some programs work. If you run SFS try looking at the .recycled directory for the partition Timberwolf is on. Here it's always full of backup files that are only seconds or fractions of a second apart! Really, would it hurt to lose one cookie or WEB icon by buffering a reasonable amount of that stuff? RA-OWB and MUI-OWB do an awful lot of small disk writes too. I don't think the native developed browsers like IBrowse or AWeb produce nearly the disk activity that ported browsers do. However, it's especially bad when a program continues disk activity after the GUI shuts down. That can probably be fixed without too many changes.

_________________
SAM Flex 800MZ with 1GB memory & OS4.1u4

 Status: Offline
Profile     Report this post  
Severin 
Re: Reboot Script with waiting for finished Disk activities
Posted on 6-May-2012 20:17:25
#15 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2084
From: Gloucestershire UK

@Metalheart

The X1000 has a bootfile instead of SLB that HAS to be run from an FFS partition as CFE doesn't support SFS/JXFS (yet?). I think the first contact systems were supplied with the entire system on an FFS partition. A lot of the beta testers have just created a small FFS partition (mine is 1mb) to hold the boot file then use SFS for the OS.

The INTERNET drawer will be the one on sys: as iirc it's the default install location.

_________________
OS4 Rocks
X1000 beta tester, Sam440 Flex (733)

Visit the Official OS4 Support Site for more help.

It may be that your sole purpose is to serve as a warning to others.

 Status: Offline
Profile     Report this post  
Metalheart 
Re: Reboot Script with waiting for finished Disk activities
Posted on 6-May-2012 20:48:51
#16 ]
Elite Member
Joined: 21-Aug-2003
Posts: 2594
From: Somewhere in the Dutch mountains....

@Severin

Ah, I see.....

So in any case the bootfile is vulnarable to nonvalidation because this has to be FFS formatted.

I'd say: keep a working boot disk (or CD) safe outside/not connected to the X1000, and when everything goes to hell, plug it in and try to restore the original bootpartition.

Would that work ?

It is a bit like the SAMs and A1's then. The bootpartition with the kickstart files cant be JXFS formatted.

Cheers

Last edited by Metalheart on 06-May-2012 at 08:50 PM.

_________________
Theres a time to live and a time to die
When its time to meet the maker
Theres a time to live but isnt it strange
That as soon as you're born you're dying

 Status: Offline
Profile     Report this post  
nbache 
Re: Reboot Script with waiting for finished Disk activities
Posted on 6-May-2012 23:03:28
#17 ]
Cult Member
Joined: 8-Apr-2003
Posts: 799
From: Copenhagen, Denmark

@Metalheart

Quote:
Metalheart wrote:

So in any case the bootfile is vulnarable to nonvalidation because this has to be FFS formatted.
Except that there is only the one file on the boot partition, and you normally won't ever have to write anything to the partition, once you have installed it.

So the chances of it being invalidated are very slim.

Best regards,

Niels

 Status: Offline
Profile     Report this post  
Drewlio77 
Re: Reboot Script with waiting for finished Disk activities
Posted on 7-May-2012 0:05:40
#18 ]
Regular Member
Joined: 2-Jan-2008
Posts: 291
From: Woodstock, Ontario, Canada

@Severin

I don't mean to sound negative, but why does this keep happening? The whole point of upgrading to a newer system is to have a better system. My Classics can boot from non-FFS disks for pete's sake.. 20 year old technology.

On a positive note, I think that new Hardware should be released when the software is mature enough. I think users will appreciate that and wont mind the extra wait. Plus it will save so many headaches in the long run, for user and developer.

Drewlio77

Last edited by Drewlio77 on 07-May-2012 at 01:56 AM.

 Status: Offline
Profile     Report this post  
ggw 
Re: Reboot Script with waiting for finished Disk activities
Posted on 7-May-2012 4:18:57
#19 ]
Cult Member
Joined: 24-May-2003
Posts: 905
From: Austin, TX

@nbache

Has anybody published an article on doing this? Should I bring it up as topic over at the Hyperion X1000 forum?

ggw

_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
Severin 
Re: Reboot Script with waiting for finished Disk activities
Posted on 7-May-2012 10:55:23
#20 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2084
From: Gloucestershire UK

@Drewlio77

Not from a non-FFS floppy you can't and to boot from a non-FFS harddrive requires 3rd party files to be installed in the RDB...

My system boots from SFS, The only difference is that boot file (which is 50k so takes a fraction of a second to load) has been moved from the RDB to a FFS partition which makes it easier to update and keep different versions easily available for testing purposes.

_________________
OS4 Rocks
X1000 beta tester, Sam440 Flex (733)

Visit the Official OS4 Support Site for more help.

It may be that your sole purpose is to serve as a warning to others.

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 Next Page )

[ home ][ about us ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright © 2000 - 2011 Amigaworld.net.

Page took 0.156403 seconds to load.