PDA

View Full Version : No more IP, no more bash prompt


scooby_doo
12-18-2005, 06:35 PM
There was a power outage and my Hughes SD-DVR40 restarted. Since then a few things don't work no more.

I used to have a static IP set - gone
TivoWeb - gone
After deleting a few shows in 'Now Showing', no more list, just a blank page (switching to live TV and then back to 'Now Showing' and the list is there again)

So I connected the serial cable and restarted - got the output below. But no bash prompt at the end.

Connected the drive to the PC and booted with the Boot CD.
I can mount partition 4 but when I try to mount 7 I get "mount: you must specify the filesystem type" - can't mount partition 7

When I check partition 4:
I do not have a rc.net file in rc.d
I find a hacks directory, but no hack directory - so I assume the hack directory has been deleted. Tyserver is in the hacks directory.

I can make a new hacked drive, starting from scratch, but I would like to get some of the recordings from this drive to my PC

How can I again set a static IP so I can use TyTools to get some files?
How can I get a bash again to transfer files to the DTivo if I need for getting an IP back on it?

Here is a copy from the bash output (you see I have no prompt at the end)

Thanks, Willi

flushing ide devices: hda
Restarting system.
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 pages.
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: WDC WD2000AB-00GTA0, ATA DISK drive
ide0 at 0x400-0x407,0x438 on irq 87
hda: 390721968 sectors (200050 MB) w/2048KiB Cache, CHS=24321/255/63
Partition check:
hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13
hda14 hda15 hda16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
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 configuration files
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: starting integrated EHCI driver
ehci_hcd 00:0d.2: PCI device 1033:00e0
ehci_hcd 00:0d.2: irq 6, pci mem b4002000
usb.c: new USB bus registered, assigned bus number 1
PCI: 00:0d.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correctin
g to 32
ehci_hcd 00:0d.2: USB 2.0 enabled, EHCI 0.95, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 5 ports detected
usb.c: EHCI initialization succeeded
usb.c: registered new driver usbnet
usb-ohci.c: USB OHCI at membase 0xb4000000, IRQ 5
usb-ohci.c: usb-00:0d.0, PCI device 1033:0035
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
hub.c: new USB device 00:0d.2-1, assigned address 2
eth0: register usbnet usb-00:0d.2-1, Netgear FA-120 USB Ethernet
usb-ohci.c: USB OHCI at membase 0xb4001000, IRQ 3
usb-ohci.c: usb-00:0d.1, PCI device 1033:0035
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
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 172 (counted=168). Set i_blocks to counted? yes

Inode 6146, i_blocks wrong 434 (counted=430). Set i_blocks to counted? yes

Inode 6152, i_blocks wrong 2724 (counted=2718). Set i_blocks to counted? yes

Inode 6157, i_blocks wrong 116 (counted=108). Set i_blocks to counted? yes

Inode 6155, i_blocks wrong 126 (counted=118). Set i_blocks to counted? yes

Fix summary information? yes

/dev/hda9: 570/32768 files (14.0% non-contiguous), 14120/131072 blocks
Cleanup /dev/hda9 pass 2
ext2fs_check_if_mount: No such file or directory while determining whether /dev/
hda9 is mounted.
/dev/hda9: clean, 570/32768 files, 14120/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: Sun Dec 18 21:16:58 2005
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_PreApplication scripts
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
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
....sending Booting event
....started status session
iptables: No chain/target/match by that name
Scanning for phase4 repair scripts
Running boot Stage G_PostApplication scripts
/etc/rc.d/rc.sysinit.author: /var/hack/mfs_ftp/mfs_ftp.tcl: No such file or dire
ctory
/etc/rc.d/rc.sysinit.author: /var/hack/epp113/endpadplus.tcl: No such file or di
rectory
/etc/rc.d/rc.sysinit.author: /var/hack/bin/elseed: No such file or directory
/enhancements/TWPrun.sh: /var/hack/tivowebplus/tivoweb: No such file or director
y
ApgManager Transition from state BOOT to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
crond: /var/spool/cron/crontabs: No such file or directory
rc.sysinit is complete
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to STEADY_STATE
....sending Done event
....sending Done event

PlainBill
12-18-2005, 07:51 PM
/etc/rc.d/rc.sysinit.author: /var/hack/mfs_ftp/mfs_ftp.tcl: No such file or dire
ctory
/etc/rc.d/rc.sysinit.author: /var/hack/epp113/endpadplus.tcl: No such file or di
rectory
/etc/rc.d/rc.sysinit.author: /var/hack/bin/elseed: No such file or directory
/enhancements/TWPrun.sh: /var/hack/tivowebplus/tivoweb: No such file or director
y

It looks like the same old problem: You put the hacks in /var. Var will get wiped if the system decides it is too full. Solution: DON'T put your hacks in /var.

PlainBill

scooby_doo
12-18-2005, 09:45 PM
Thanks. Did not know but understand. Now I have the cause of the problem.

To get the hacks back in /etc/hacks I need to be able to either get an IP on that thing or a bash prompt - any help on either one?

RavenStL
12-18-2005, 10:16 PM
i wouldnt of thought your telnet and IP would go down. Hmm, got serial bash? - O i read now, guess not.

PlainBill
12-19-2005, 12:08 AM
Thanks. Did not know but understand. Now I have the cause of the problem.

To get the hacks back in /etc/hacks I need to be able to either get an IP on that thing or a bash prompt - any help on either one?
Easy. Pull the drive, copy the files to the drive, and edit /etc/rc.d/rc.sysinit.author to reflect the new paths.

Back in High School the Principal had a sign in his office: "If you don't have the time to do it right, when will you have the time to do it over?" You might as well hack it properly this time. Put all the standard hacks somewhere in root (you get to choose). TWP and mfs-ftp can go in /var. They can be readily replaced without pulling the drive if they get clobbered.

PlainBill