1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixes for MFSTools 2.0 swap problems

Discussion in 'TiVo Upgrade Center' started by Robert S, Jul 31, 2002.

  1. R. Kalia

    R. Kalia New Member

    197
    0
    Apr 16, 2002
    My apologies if this has been answered before in this very long thread or elsewhere...

    To fix my swap problem, can I "upgrade" my 120G A drive to another 120G drive (this one properly prepared), while keeping the recordings? Or will it not work because the new drive has less free space because of the bigger swap space? (BY current drive is NOT anywhere near full with recordings.)

    Obviously, I have no idea how the relevant steps actually work.

    If my proposed method works I can then re-use the old A drive to replace my current smaller B drive, so buying a second 120G drive is worth it.
     
  2. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    No, there's no way to resize the MFS partitions, even if you're copying them to new media. You would be able to do this with a 160Gb drive, but they're much more expensive.

    Try not to worry about it - green screens are very rare and the 'rescue' maneuver at the top of this thread will recover you if you do ever see one.
     
  3. Blademan007

    Blademan007 New Member

    7
    0
    Jul 16, 2002
    I've read through this thread, and I understand that I'll going to need to to worry about swap. I just upgraded a DTivo with a 160GB Maxtor (137GB recognized), which then promptly started to fail. Addicted to Tivo in 1 months as I am :cool: , I promptly picked up a 120GB WD 7200rpm drive (May as well max the ******* out since I love it :D ), while waiting for the replacement Maxtor. The DTivo has 32MB and I'm entering dangerous territory with 2 drives.

    So if I'm going from old 160GB Maxtor (which sporadically works for shorts periods after refrigeration) to new 120GB A + 160GB B drives in a DirecTivo, which is the ideal mfsrestore command I should use to ensure adequate swap and minimize chances of GSOD?

    (assuming: mfsbackup -aqo - /dev/hdc | mfsrestore -xpi - /dev/hda /dev/hdb )

    Thanks for the bandwidth, and great stuff you guys have going on here!!!
     
  4. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    Are you trying to take your recordings with you? I'd wouldn't have thought you'd have anything worth taking in a month. It'll take many hours (perhaps more than a day!) to copy your recordings.

    To take your recordings do

    mfsbackup -Tao - /dev/hdc | mfsrestore -s 127 -xpi - /dev/hda /dev/hdb

    (you would want the 160 to be the A drive to make room for the extra swap)

    To just take your guide data, but not recordings (will take maybe 15 minutes)

    mfsbackup -so - /dev/hdc | mfsrestore -s 127 -xpi - /dev/hda /dev/hdb

    (Makes no difference which new drive is the A drive).
     
  5. Blademan007

    Blademan007 New Member

    7
    0
    Jul 16, 2002
    Robert,

    Thanks for the response, and yes I do have 113hrs (per mfsbackup of recordings) that I would like to take to the new drive. I need to save to vcr...

    I would prefer the 120GB 7200rpm drive as my A drive, since I notice the guide and other operations are much faster, and the 160GB as the B drive. Will the same command work for that configuration and still allow for enough swap?

    Old 160GB --> New 120GB 7200rpm A + 160GB B.
     
  6. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    Possibly - MFS Tools does have some flexibility when it comes to laying out the MFS partitions, although I don't know if it can put A drive partitions on a B drive if it can't fit them on the A drive. You'll have to experiment a bit (you'll immediately get an error message if there's not enough room).

    You don't need to be too worried about swap. Although I advise everyone to increase it if they can, green screens are very rare and the 'rescue' maneuver from the top of this thread will recover you from a green screen if you do get one.

    Perhaps just print out the relevent post and tape it inside the TiVo incase you ever need it?
     
  7. Oct 1, 2002 #247 of 609
    BobCamp1

    BobCamp1 Well-Known Member

    1,404
    37
    May 15, 2002
    Just wanted to let everyone know that the latest Hindsdale upgrade guide (dated Sept. 29) for MFSTools 2.0 addresses all the swap file issues covered in this thread. It now has notes warning people about the potential problem, and advises them on the correct upgrade procedure should they wish to avoid the problem.

    Many thanks to Hindsdale, Robert S., Merle Corey, and everyone else for investigating and resolving the issues.

    Now stop bugging these people so we can end this thread. :D
     
  8. Oct 3, 2002 #248 of 609
    jimjamsgolf

    jimjamsgolf New Member

    2
    0
    Sep 16, 2002
    Dorset England
    Thanks everyone.

    With hindsight I have left out some information but I have success.

    I am not sure I had bad blocks on the disk as such as I think the drive could read then given enough attempts.

    My hda drive was not an original but an upgraded one with 127/128Mb of swap, I'm too paranoid to try to reuse the original.

    What I did was;

    used the dd method to copy the data on hard drive suspected as being faulty to another drive (while I went to bed). Next I backuped and then restored all of the data onto the hda drive (which had/has 127 or 128Mb swap) and finally added my larger drive as hdb.

    It was suggested that I could use fdisk/pdisk to play with the partitions on the hdb drive, does anyone know if fdisk/pdisk actually works on any boot cd? I think I used the turbonet boot/nic_install CD but I think I thought both pdisk and fdisk failed as the could not read the partiton table. When the kernel booted all the harddrive partitons were detailed correctly.

    As an aside has anyone got a recent kernel to read the Tivo/Mac partiton table after applying the partition patch? I know it does not apply cleanly, I get the correct magic nuber but then no partition information.


    Thanks
     
  9. comfysofa

    comfysofa New Member

    105
    0
    Sep 24, 2002
    UK
    Right - i understood none of that lot - but i think my requirements are simple.......ive already done the large a drive upgrade (160gig) and want to put in a 120 gig as a B drive - what commands to i put in ----( i already know the one to stretch the drive over to the new b drive) but confused to the swap file bit???? + i ve already done the network bit if thats a hinderance or help???

    Anyone got a walkthrough.....

    regards

    Andy

    PS looking forward to a reply cos the 120 gig disc got delivered today and im itiching to get it installed.....
     
  10. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    Well, if your A drive is already a 160 and you don't want to lose your recordings, there's nothing you can do about swap.
    If you increased your swap with -s 127 when you upgraded, then you've already got enough swap for a 257Gb TiVo to recover from a green screen (it doesn't make any difference for any other function). If you didn't, there's nothing you can do about it now - just use the 'rescue' maneuver if you do ever green screen.

    The network stuff is irrelevent.

    Put your A and new B drive on the primary bus, boot MFS Tools 2.0 and do

    mfsadd -x -r 4 /dev/hda /dev/hdb

    and you'll have a 257Gb TiVo.
     
  11. comfysofa

    comfysofa New Member

    105
    0
    Sep 24, 2002
    UK
    hmmm - well if its better in the longrun then ill loose the recordings....... what would i have to do then.....
     
  12. comfysofa

    comfysofa New Member

    105
    0
    Sep 24, 2002
    UK
    just as a further thought - ive still got the untouched 40 gig disc which i could use to copy from - if that helps.......ie start again.......but how would i put that s- 127 command in, and where.....?
     
  13. comfysofa

    comfysofa New Member

    105
    0
    Sep 24, 2002
    UK
    actually its probably better if i dont cos it took me ages to get the web and ftp stuff working.....back to plan a: :)
     
  14. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    Wouldn't it be better to check to see how much swap you've currently got? See the first page of this thread for a post from Cpen that explains how to use the backdoors to read your logs.

    To be honest, green screens are sufficiently rare that I wounldn't recommend wiping recordings you want to keep just to increase swap. If you ever do green screen, the 'rescue' maneuver seems to be working well for people.

    If you want to copy the recordings on your old A drive onto your new drives (losing the current recordings, of course), put the new drives on the primary bus and the old one on secondary master and do:

    mfsbackup -Tao - /dev/hdc | mfsrestore -s 127 -r 4 -xpi - /dev/hda /dev/hdb
     
  15. comfysofa

    comfysofa New Member

    105
    0
    Sep 24, 2002
    UK
    .......so is there a manual way of adjusting the filesystem.......ie making the swap bigger like just one command line.......im trying eventually to get to the point where i never have to open the tivo again.........(unless theres a serious error of course) - but at least as is humanly possible......
     
  16. comfysofa

    comfysofa New Member

    105
    0
    Sep 24, 2002
    UK
    just out of curiosity - follow me now........ i take my original A drive and issue that command..... can i stick that on my 120 gig disc (does it need preping atall....) fdisk etc...... then put that image back on to my 160 gig disc and then stretch it out over the 120 gig disc going over that image - as i wont need it anymore.....is that right.....?
     
  17. comfysofa

    comfysofa New Member

    105
    0
    Sep 24, 2002
    UK
    yep - checked the log files and mine says 6555....what ever it is - ok! - right what now.....does that mean im ok?? i dont know what im looking for....
     
  18. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    No, you have 65.5 million bytes of swap - 64Mb, 127Mb is about 130 million bytes.

    You can see the 'rescue' maneuver in the third post of this thread. It's not trivial, but it's not too difficult - several people have used it successfully to recover from a green screen.

    Like I said, green screens are very rare and I assume they're associated with failing hardware, although that may not be a particularly well founded assumption.

    I would try not to worry about this - it will only be a problem if you get a green screen, all your TiVo's other functions will be fine.
     
  19. comfysofa

    comfysofa New Member

    105
    0
    Sep 24, 2002
    UK
    Well - last night i did what you said and it made no difference - ie mfsbackup from original 40 gig and restore to the 2 new ones.......got up this morning - it reported no errors and said that the 2 new discs were installed but with only the same amount of time available as the first so i put them back in the tivo and nothing had changed so i put them back in the pc and used the command to stretch the image across the 2 drives......just put them back in - its working no prob but i think the swap space issue is still there - havent checked yet......well i assume that as nothing else changed from last nights overnight copy.......just out of curiosity assuming that i manage to cobble my way through a walkthough can the swapspace issue be done through the network card to avoid stripping it down again.......
     
  20. Robert S

    Robert S New Member

    9,725
    0
    Jul 8, 2002
    Cambridgeshi...
    Well, if you included -s 127 in your restore options, you've now got 127Mb of swap. You've only lost 63Mb of recording space (I estimage 4 minutes of Basic or 2 minutes of High). I would definitely check your logs before you claim your swap is the same.
     

Share This Page