[mythtv-users] Quick-boot linux?

Yan Seiner yan at seiner.com
Tue Feb 19 04:36:27 UTC 2008


Brian Wood wrote:
> Yan Seiner wrote:
>   
>> Andy Burns wrote:
>>     
>>> On 19/02/2008 00:11, Yan Seiner wrote:
>>>
>>>   
>>>       
>>>> The SCSI subsystem seems to be the headache for S3.
>>>>
>>>> Basically, the SCSI subsystem needs a bus reset on boot.  I can reset it 
>>>> just fine with sg_reset - but that utility is not accessible without 
>>>> resetting the scsi bus.
>>>>     
>>>>         
>>> Mount a little ramdisk with a copy of sg_reset before sending it to sleep?
>>>   
>>>       
>> Thought of that.  It's not statically linked; it needs libc6.  Anyone 
>> know how I go about stuffing both libc6 and a user program into a 
>> ramdisk and deal with the linker correctly?
>>
>> (I guess I could also build a static version....  Or I could just drop 
>> an IDE drive into the box and be done with it?)
>>     
>
> Building static would be a lot less failure-prone than an IDE drive.
>
> I saw a 60 terrabyte compact-flash unit advertised, thought about it but 
> the $32,000 price tag made me hesitate :-)
>
> Maybe they would trade for my truck ?
>   


Got it!

Set up a tmpfs, populate it with sg_reset and libc6, and invoke it from 
ususpend-ram.conf

OnResume 99 LD_LIBRARY_PATH=/mnt/tmpfs /mnt/tmpfs/sg_reset -b /dev/sda

Works like a charm.  Full start in ~15 seconds, of which 5 or so is SCSI 
related.

--Yan


More information about the mythtv-users mailing list