View Full Version : HELP messed up rc.sysinit.author
F1 Fan
11-02-2007, 12:37 AM
I was trying to get my XBox Media Center to stream my recordings from my Tivo,so i edited rc.sysinit.author on Wordpad which from what ive read was my 1st error,and then after i FTPed back i didnt make it executable(chmod +x) my 2nd error,now this are my questions.The only way to recover its by pulling the drive?I cant use the serial cable cause my rc.sysinit.author its no good?
I backed up the rc.sysinit.author before editing
can someone advise me
Thanks
jt1134
11-02-2007, 12:42 AM
You'll have to pull your drive unless you started serial bash in /test.conf or somewhere other than your .author file.
ciper
11-02-2007, 02:45 AM
Pulling the drive is probably the only option. What format did you save the file in under wordpad? You might be able to strop all of the ^m and get it working again without recreating the whole thing.
F1 Fan
11-02-2007, 06:02 PM
ok im having a little problem,I pulled the drive and hooked it up to a USB to IDE adapter and booted my laptop with the MFSLive disk,i then typed bootpage -p /dev/sda and nothing i tryed b,c,d and nothing,typed pdisk -l /dev/hdd and failed.:confused:
any ideas what im doing wrong?
BTW,Thank you both for trying to help me with my issue
ciper
11-04-2007, 01:43 AM
If you are using a USB adapter isnt it SDA instead of HDA?
edit: Now that I think of it the USB adapter should be enumerated on screen when you plug it in. Wait for the system to completely boot to where there are no new messages scrolling on screen then connect the USB adapter and it should show a new message with device name :)
F1 Fan
11-04-2007, 02:49 PM
i just when ahead and conect it to the IDE cable and got it going,was able to mount partition 4 and 9 which i found the rc.sysinit.author on partition 9,I opened it in the joe makerw.sh editor and it was the one i edited earlier for the xbox,i made it executable and left.Im trying to set up bash or ftp anything to know that my rc.sysinit.author its working fine but cant seem to be able to connect.
partiton 7 not mounting and maybe not executing the rc.sysinit.author its preventing me from bash and ftp?
thanks in advance
ciper
11-05-2007, 07:52 PM
You can check your fstab to see which partition is booting.
F1 Fan
11-11-2007, 05:37 PM
ive tryed all kinds of things and nothing,i just when ahead and created a new rc.sysinit.author file with nothing on it but telnet and still aint got no comminiation,i saved it and executed on hda4 which is my active partition,any ideas what im missing?
BTW thanks alot for your help
Narf54321
11-11-2007, 05:52 PM
Try dos2unix on it. Sometimes when you FTP upload text-based files they get extra ^M end-lines added.
Also, as in your original post, check for executable status.
Check your bootpage for the correct root partition, are you sure its on /dev/hda4??.
F1 Fan
11-11-2007, 10:26 PM
M thats what was at the end of each line,but i deleted all the lines and started from scratch just added the telnet lines.
#!/bin/bash
tnlited 23 /bin/bash -login &
and saved it,and then chmod 755 rc.sysinit.author to make it executable.
and yes im sure its hda4 ,cause i can access and see my tivo files.
PlainBill
11-12-2007, 12:23 AM
M thats what was at the end of each line,but i deleted all the lines and started from scratch just added the telnet lines.
#!/bin/bash
tnlited 23 /bin/bash -login &
and saved it,and then chmod 755 rc.sysinit.author to make it executable.
and yes im sure its hda4 ,cause i can access and see my tivo files.
That proves NOTHING. In a system which has upgraded normally BOTH root partitions will contain tivo files.
How did you create the new rc.sysinit.author?
The next time you pull the drive check the boot parameters using bootpage.
Also, make a serial cable (Capturing serial console: http://www.dealdatabase.com/forum/showthread.php?p=234467#post234467) and SEE what is going wrong when it boots.
PlainBill
F1 Fan
11-12-2007, 12:42 PM
created the new rc.sysinit.author with Joe Editor.
im pulling the drive today again so i can try to fix it,so ill check the boot parameters,and i do have a serial cable already?but when i try the hyperterminal i never get the bash#
again, thank you for trying to help me with this, i could never thank you guys enough for all the assistance i recieve.Thank you
Narf54321
11-12-2007, 04:38 PM
Use the MFSLive boot CD, it has pretty much all the Tivo friendly utilities installed including a working bootpage (and even hexdump, for checking those tivoapp patch locations).
To see boot messages over serial-console, you need to set the proper bootpage settings (For series-2 units:
root=/dev/hda4 dsscon=true console=2,115200
To actually type anything at the serial prompt, you have to have a bash prompt redirected to console terminal in /etc/rc.d/rc.sysinit.author (or someplace equivalent). Usually for testing purposes you can also make a file at Tivo's root called /test.conf and load it with commands which get executed somewhat early in the boot cycle (not sure if this still works for v6 software). Again make sure to chmod a+x to make sure it can be "run" at boot time.
There could be a couple of reasons why it isn't working. If you keep putting /etc/rc.d/rc.sysinit.author in the "wrong" root partition, Tivo will never see it. If there's a formatting problem or something, Tivo will bail out of the file before it finishes which quite likely results with not starting tnlited or anything else you might want.
If you're pulling the Tivo drive to edit the files on a PC, make sure you're mounting the Tivo partition and editing the Tivo files, not mistakingly editing the local PC /etc/rc.d files.
F1 Fan
11-13-2007, 01:29 AM
before i pulled the drive i connectedthe tivo through the serial cable to Hyperterminal and this is what i got
Output enabled
Kernel signed by 'Kernel release key'
Hashing kernel... done
Checking signature... done.
Signed, valid for release
CPU revision is: 00005430
FPU revision is: 00005410
Primary instruction cache 32kb, linesize 32 bytes.
Primary data cache 32kb, linesize 32 bytes.
Linux version 2.4.20 (build@buildmaster5) (gcc version 3.0) #22 Fri Feb 20 18:19
:25 PST 2004
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pag
Kernel command line: root=/dev/hda4 dsscon=true console=2,115200 upgradesoftware
=false
Monotonic time calibrated: 81.00 counts per usec
Calibrating delay loop... 161.79 BogoMIPS
Contiguous region 1: 8388608 bytes @ address 0x80d00000
Contiguous region 2: 1048576 bytes @ address 0x81500000
Contiguous region 8: 10485760 bytes @ address 0x81600000
Contiguous region of 19922944 bytes total reserved at 0x80d00000.
Memory: 43820k/65536k available (1222k kernel code, 21716k reserved, 81k data, 6
4k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
ttyS00 at iomem 0xb4100100 (irq = 79) is a 16550A
ttyS00 at port 0xbc010000 (irq = 133) is a unknown
ttyS00 at iomem 0xb4100140 (irq = 81) is a 16550A
ttyS00 at iomem 0xb4100120 (irq = 80) is a 16550A
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xb4100100 (irq = 79) is a 16550A
ttyS01 at 0xbc010000 (irq = 133) is a unknown
ttyS02 at 0xb4100140 (irq = 81) is a 16550A
ttyS03 at 0xb4100120 (irq = 80) is a 16550A
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: HDT722516DLAT80, ATA DISK drive
ide0 at 0x400-0x407,0x438 on irq 87
hda: 321672960 sectors (164697 MB) w/7674KiB Cache, CHS=20023/255/63
Partition check:
hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13
hda14
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registere
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 152 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 64k freed
Starting rc.sysinit
Running boot Stage A_PreKickstart scripts
Scanning for configuratio
Invoking startup scripts for:
platform 'trinity'
implementation 'Series2'
implementer 'TiVo'
Releasing /initrd and clearing ramdisk, if they exist
warning: can't open /var/mtab: No such file or directory
umount: /initrd: not mounted
Activating swap partitions
Adding Swap: 130044k swap-space (priority -1)
Loading core system drivers
Parallel modem driver loaded, 1 ports starting at /dev/ttyS1
Loading ircatch
Found rev 'F' Si2433 modem on /dev/cua1
Checking for Kickstart panic signal
Running boot Stage B_PostKickstart scripts
Cleanup /dev/hda9 pass 1
ext2fs_check_if_mount: No such file or directory while determining whether /dev/
hda9 is mounted.
/dev/hda9 was not cleanly unmounted, check forced.
Inode 6148, i_blocks wrong 648 (counted=646). Set i_blocks to counted? yes
Inode 6155, i_blocks wrong 740 (counted=728). Set i_blocks to counted? yes
Inode 6154, i_blocks wrong 6908 (counted=6894). Set i_blocks to counted? yes
Fix summary information? yes
/dev/hda9: 628/32768 files (15.3% non-c
Cleanup /dev/hda9 pass 2
ext2fs_check_if_mount: No such file or directory while determining whether /dev/
hda9 is mounted.
/dev/hda9: clean, 628/32768 files, 50465/131072 blocks
/dev/hda9 is clean after pass 2
Mounting /var
/dev/hda9 on /var type ext2 (rw)
Cleaning up files in /var
Checking space in /var
Mounting initial environment
Starting logging daemons
Found Silicon Labs "Si2433" modem, rev F, skipping modem patch
Scanning for phase1 repair scripts
Running boot Stage C_MediaInitialization scripts
Loading input section drivers
cobra module was successfully installed, LNBPA 0x10 LNBPB 0x16
Loading output section drivers
Splash the screen
Running boot Stage D_PreMfs scripts
Remote control is TIVO
MFS partition on /dev/hda10
Loading Trinity dssapp
Look for debug board
/tvbin/dssappAV: DSS Interface Version 1.24, compiled on Nov 12 2004
Loading irblast
Loading ideturbo
Loading fan
Loading therm
Loading TvBus router
Updating system clock
Time set to: Tue Nov 13 05:18:46 2007
Enabling local route
Setting TCP keepalive parameters
Checking for additional disk
Start fan control
First temperature parameters set:
Terminal temp: 71
Critical temp: 62
Logging temp: 60
Target temp: 50
Lowest fan speed: 7
/tvbin/fancontrol is running in the background.
Starting TvLauncher
PokeFirewallPort: Poking hole through firewall at port 2191, protocol tcp
iptables: No chain/target/match by that name
Waiting for launcher to start.
Launcher is running.
Scanning for phase2 repair scripts
Running boot Stage E_PreApplicati
Checking for database conversions
No upgrade to load
Not upgrading software
Scanning for phase3 repair scripts
Running boot Stage F_ApplicationLaunch scripts
Starting Services.
Microcode version is TiVo!
Found hpk front panel model 1
PCI: 00:0d.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correctin
g to 32
PokeFirewallPort: Poking hole through firewall at port 2190, protocol udp
iptables: No chain/target/match by that name
PokeFirewallPort: Poking hole through firewall at port 2190, protocol tcp
iptables: No chain/target/match by that name
using driver frame iter
ApgLogFrequency( 0 sec )
Finished creating ApgDriverFrameIter
Using a smartSorter!
Calling ReadStream()s
....started status session
Initialize with 2 live caches
AddInputSection 1
AddInputSection 2
TvMomMediaSwitchSource::DoSetup()
TvMomMediaSwitchSource::DoSetup()
AddInputSection 3
ApgManager Transition from state INIT to BOOT
....started status session
....sending Booting event
....sending Booting event
iptables: No chain/target/match by that name
Scanning for phase4 repair scripts
Running boot Stage G_PostApplication scripts
rc.sysinit is complete
ApgManager Transition from state BOOT to ACQUIRE_MARKER
its there any signs of connection,anything you guys can tell me from this?cause i think i got the /test.conf install before.
jt1134
11-13-2007, 02:34 AM
Doesn't look like any usb drivers are being loaded. It also doesn't appear you're starting serial bash anywhere. Model number? software version? I'll assume directivo, 6.x. Put the line exec /bin/bash --login </dev/ttyS2 >/dev/ttyS2& in /test.conf to at least start serial bash so you can troubleshoot further. At least your bootpage and terminal settings are correct for serial bash.
F1 Fan
11-14-2007, 02:32 PM
ok guys i finally got it done:D:D:D I rewrote the sysinit.author filewith joe editor and got telnet and ftp back on,now ill take the nessary precautions so this wont happen again.
Thank you guys,especially jt1134,Narf54321,PlainBill,and ciper without you guys i couldnt off done it.Thank You:)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.