View Full Version : can i edit files with a pc?
defsrg
01-06-2003, 08:58 AM
i need some desperate help. i accidentally removed my cd /bin directory from my root dir and now my machine is stuck on welcome powering up. i cant access bash obviously cuz the machine is not booting that far. my questions are
1 can i just plug my tivo drive into my pc and edit or install my /bin dir by letting the pc do a regular boot?
2- if i cant and i have to use the boot cd, how can i keep it from doing a full 25xtreme upgrade?
i reallly need to fix this as i have many recorded shows i do not want to lose and if any of u have read my "connection refused" thread u know the agony i have been going thru. if someone has the answers or can at least point me in the right direction as i have read many threads where people are booting the drive in the pc to do things but no clear cut how w/o doing the 25xtreme upgrade. thanx
You are going to need to do it from a boot cd. If you boot into windows you will really screw up your tivo drive. If I can get to it from work I'll see if I can tar up my /bin directory. If I can't get to it, then it will be 8 hours from now.
Perhaps someone else could send you their /bin dir, but in any event you will need to copy it over while loaded up from a boot cd.
DarkWing
01-06-2003, 10:01 AM
The way you keep it from installing Extreme2.5 is by not typing 25xtreme after boot.
It doesn't install automatically.
BubbleLamp
01-06-2003, 12:58 PM
1) Boot from Xtreme CD.
2) Mount both partition 4 and partition 7 of the Tivo drive.
3) Copy the missing files from one to the other.
4) Unmount all partitions.
5) Shutdown.
6) Replace drives in Tivo.
7) Watch TV.
defsrg
01-06-2003, 07:03 PM
its not working maybe u guys can see what im doing wrong here
my tivo drive is hdb
1-mount /dev/hdb4 /mnt/tivo [enter]
2-mount /dev/hdb7 /mnt/tivo [enter]
3-cp /7/bin /4/root[enter]
4 file not found
then i tried this with the bin file from kraven located in my c:\ drive
1-mount /dev/hdb4 /mnt/tivo
2-mount /dev/hda1 /mnt/c
3-cp -f /mnt/c/bin /4/root
4- cp: /mnt/c/bin: omitting directory
and when i went to unmount the c drive it said it wasnt mounted??
umount /mnt/c-this is was i did it worked on the tivo drive
umount /mnt/tivo
help????? thanx
i also tried doing it partition to partition as bl said and i get the same error
cp: /mnt/7/bin: omitting directory
???????????? anyone
superzap
01-06-2003, 09:31 PM
I emailed you a tar file (within a zip) with the bin files.
Put the xbin.tar.gz file on your windows C drive root and boot the cd with the tivo hd attached to primary-slave.
enter commands:
mkdir /dos
mount /dev/hda1 /dos
mkdir /td4
mount /dev/hdb4 /td4
cd /td4
tar -xzf /dos/xbin.tar.gz
sync
umount -f -a -r
<ctrl><alt><del> to shutdown and put tivo hd back in tivo.
defsrg
01-07-2003, 12:40 AM
could someone else maybe post a bin file for me. everytime i download the one from superzap via email it says the file is damaged and now im stuck on "almost there". i dont think its superzaps fault i think its freakin AOL. either that or teach me how to tarball one that i have on another drive sitting in my drawer with scrambled programs on it. i really want to try and salvage this w/o 25xtreming and losing my recorded programs.
thanx!!
BubbleLamp
01-07-2003, 01:53 AM
mkdir /mnt/t4
mkdir /mnt/t7
1-mount /dev/hdb4 /mnt/t4 [enter]
2-mount /dev/hdb7 /mnt/t7 [enter]
3-cp -r /mnt/t7/bin /mnt/t4/[enter]
ls -la /mnt/t4/bin (make sure all the files are there)
umount -r -f -a
mount (just to make sure they are all unmounted)
CTRL-ALT-DEL
Put drive back in Tivo. Go buy book on Linux. :D
defsrg
01-07-2003, 02:34 AM
sorry bl tried that already i got " cp: -r invalid option
BubbleLamp
01-07-2003, 02:50 AM
Originally posted by defsrg
sorry bl tried that already i got " cp: -r invalid option
WTF?!
OK, cp -R
defsrg
01-07-2003, 03:55 AM
well im making progress the -R worked it copied the file now im stuck in a loop in between welcome and almost there just keeps going back and forth so more reading now. thanx bl
DarkWing
01-07-2003, 06:53 AM
Maybe a permissions problem in /bin or perhaps the copy missed the symbolic links.
Here's a dir or my /bin, may help.
defsrg
01-07-2003, 06:59 AM
thanx darkwing i'm on thsi no sleep thing cuz i absoultely refuse to lose all my recordings. can i record them again yeah eventually probaly,its just the principle of the matter in the year that i have been doing this i have never had anything like this happen that has happened over the past week, im just plain stubborn.
hey bl i checked my unix book that you told me to buy and it told me in order to make a tarball u have to type
tar -cvzf filename.tgz and of course it doesnt work i get tar command not found. how bout u darkwing u know how to make a tarball lollllllllllllll god im losing my freakin mind!!!!!!!!
tar is not installed on tivo's by default. now that I think of it I don't think I have seen a tar available (and my cross compiling has been less than successful as of late.)
defsrg you might want to look into the cpio command (remember it was used in Kraven's update.) I'm not sure exactly what you are trying to do or I'd give more specific advise.
D2_4_me
01-07-2003, 11:28 AM
Heh don't think It will help this dood but here ya go...
Rename to tar.zip
defsrg
01-08-2003, 06:58 AM
superzap came up with the thought of copying a newly xtremed drive root partition to the problem root partition recursively.has anyone tried this before and if they did, did it work???
defsrg
01-08-2003, 04:47 PM
i am going to attempt to clone a good xtreme partition 4 to my "bad" partition 4, the only thing is i have never put more than one tivo drive in my pc before. could someone please tell me how they have to be configured so that it "see's" all of them? i usually have my pc master,set the tivo drive to slave, and my hp 200i dvd-writer. so what would i have to set the other tivo drive to secondary master or secondary slave? thanx
Thats all you have to do: set the drive up as secondary slave (jumper the drive for slave or master, however you decide to hook it up)
Then when mounting it refer to it properly:
/dev/hdb = primary slave
/dev/hdc = secondary master
/dev/hdd = secondary slave
defsrg
01-09-2003, 10:07 AM
yeah thats what i did zabs though my first attempt i believe was a failure as i thin k i got my dives mixed up and also forgot to mount the drives even though something transferred. i believe i transferred the bad partition to the good drive as i got my drives confused in the command staement. my bad drive is still in the powering up loop and thee good drive which was working after re xtreming it is now on updating database this will take a long time and its been over an hour so like a said backwards. heres what im going to attempt next let me know if u think it will work or not.
all i did last time was put the drives in the pc and at the unix prompt typed : dd if=/dev/hdd4 of=/dev/hdb4
with hdd4 being the bad drive and hdb4 being the good drive .
now what i want to do is:
mount /dev/hdb4
mount /dev/hdd4
dd if=/dev/hdb4 of=/dev/hdd4
umount -r -f -a
mount just to be sure everything is unmounted and hopefullly this will work and just to put a fine clarification on things
hdb4= my newly extremed "good" drive
hdd4=the drive with the bad /root partition 4
anyone see anything i missed please let me know and just so everyone knows if this works i am already in the process of making a how to for this just in case it happens to anyone else.
thanx
Originally posted by defsrg
all i did last time was put the drives in the pc and at the unix prompt typed : dd if=/dev/hdd4 of=/dev/hdb4
with hdd4 being the bad drive and hdb4 being the good drive .
Yeah that was definately an OOPS.
Always remember with dd:
if = infile (or your source)
of = outfile (or your destination)
If hdb is your good drive and hdd is your bad drive you want to use:
dd if=/dev/hdb4 of=hdd4
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.