Menu

#5 How do I run the patch in Mac OS X?

open
nobody
None
5
2003-05-18
2003-05-18
No

I downloaded the file and can't figure out how to run it. It may not
work with my configuration anyway. I have an iMac with firewire.
Attached to the firewire port is a firewire enclosure in which I have
placed two drives (it isn't designed for this but the disks mount on the
desktop anyway.)

If this won't work I have access to a win98 machine at work. I guess I
could make the Linux disk and do it that way. It would be harder and
take longer to have to perform the upgrade at work.

I have an old ShowStopper with a 20gb drive and I just bought a WD
60gb drive at Circuit City. I would very much like to increase the
capacity of my system and preserve the shows.

Any help would be greatly appreciated.

Frank Murphy

Discussion

  • Nobody/Anonymous

    Logged In: NO

    [quote="brett"]i got this to work using an rtv 5040 that had a
    40gb maxtor in it. i replaced replaced that drive with a
    western digital 7200 rpm 120gb drive w/8mb cache. my goal
    was to create a single drive, with a picture partition of 4gb,
    but no xfer of existing shows or existing pix from source to
    target (not that those options don't work -- i just didn't try).

    (1) i will assume you opened your rtv and now have both its
    drive and the "new" drive attached to your mac, somehow --
    firewire DOES work!

    (2) i will also assume you know how to make the patch an
    executable and can navigate to its directory in terminal.

    (3) i will assume you know how to deal with hd jumper issues.
    i set my "new" drive to cable select for the rtv and my rtv
    drive to master for the mac via firewire.

    (4) you must estimate the number of 512-byte "sectors" in
    both drives. make sure the estimate is below the reality. you
    can use the command "df" in terminal to get the # of 512-
    byte sectors on the target drive. or you can get the total raw
    bytes for the target drive via disc utility or get info and divide
    that number by 512. makes sense. make sure you round
    down. in my terminal output, i got 234384512 sectors for my
    target via the "df" command. so i rounded that down to
    234380000 to be safe. for my source drive -- a 40gb maxtor
    that only showed up as 33gb in osx (bleh! foreign file
    systems) -- i just divided 39000000000 (bytes) -- which was
    itself a ballpark estimate -- by 512 and rounded the result
    down a bit, in this case, to 76000000. sorta an educated
    guess. (the reason we have to make these estimates is
    because the patch can't read the accurate size value of
    drives on a mac -- a big/lil' endian thing iirc -- it just keeps
    going until the theoretical max is met -- in my case, as you
    will see, 136gb.) write down your 512-byte sector estimate
    for each drive.

    (5) you must unmount your source drive (the rtv drive) and
    the target drive (the new drive) from the mac finder. i just
    chose "eject" from the finder.

    then get to work. i started with a "sudo -s" to go root, and
    then:

    [code][tycho:Video/dvd/7.rtv] root# ./RTVPatch_OSX
    *****
    ***** RTVPatch version 2.3, built on 10/22/02, 19:01:00
    *****

    /dev/disk2 : Using binary search drive size detection
    /dev/disk2 (Drive 2) : There appears to be a seek overflow
    problem on this drive, interesting!
    /dev/disk2 (Drive 2) : Detected size = 267386880 sectors
    /dev/disk5 : Using binary search drive size detection
    /dev/disk5 (Drive 5) : There appears to be a seek overflow
    problem on this drive, interesting!
    /dev/disk5 (Drive 5) : Detected size = 267386880 sectors

    The system contains the following disks:
    2 /dev/disk2, Drive 2, 136GB, NOT a ReplayTV Disk
    5 /dev/disk5, Drive 5, 136GB, ReplayTV Disk (4000 series),
    NEEDS TO BE PATCHED

    Enter Command: s

    The system contains the following disks:
    2 /dev/disk2, Drive 2, 136GB, NOT a ReplayTV Disk
    5 /dev/disk5, Drive 5, 136GB, ReplayTV Disk (4000 series),
    NEEDS TO BE PATCHED

    Select a disk from above (0-8): 5

    Enter Command: t

    The system contains the following disks:
    2 /dev/disk2, Drive 2, 136GB, NOT a ReplayTV Disk
    5 /dev/disk5, Drive 5, 136GB, ReplayTV Disk (4000 series),
    NEEDS TO BE PATCHED

    Select a disk from above (0-8): 2

    Enter Command: l
    Enter photo partition length, in MB (0 = default)
    4000

    Photo partition length is set to 4000MB

    ***** You must now use the (p)atch command to set the
    partition table
    ***** and format the photo partition using the new length

    Enter Command: f
    *** WARNING: This option will allow you to manually specify
    the number
    of sectors on the drive. This should only be done if
    you are ABSOLUTELY sure of the number of sectors.
    No other checking will be done to validate this
    number.

    Do you really want to proceed?
    (y/n)? y

    The system contains the following disks:
    2 /dev/disk2, Drive 2, 136GB, NOT a ReplayTV Disk
    5 /dev/disk5, Drive 5, 136GB, ReplayTV Disk (4000 series),
    NEEDS TO BE PATCHED

    Select a disk from above (0-8): 2
    Current size of disk /dev/disk2 (Drive 2) is 267386880
    sectors (130560MB)

    Enter new sector count: 234380000
    *** WARNING: The size you gave (234380000) is smaller than
    the size
    detected by the operating system (267386880).

    Do you really want to proceed?
    (y/n)? y
    The size you entered is 234380000 (0xdf85ae0) sectors.

    Do you really want to proceed?
    (y/n)? y

    Enter Command: f
    *** WARNING: This option will allow you to manually specify
    the number
    of sectors on the drive. This should only be done if
    you are ABSOLUTELY sure of the number of sectors.
    No other checking will be done to validate this
    number.

    Do you really want to proceed?
    (y/n)? y

    The system contains the following disks:
    2 /dev/disk2, Drive 2, 120GB, NOT a ReplayTV Disk
    5 /dev/disk5, Drive 5, 136GB, ReplayTV Disk (4000 series),
    NEEDS TO BE PATCHED

    Select a disk from above (0-8): 5
    Current size of disk /dev/disk5 (Drive 5) is 267386880
    sectors (130560MB)

    Enter new sector count: 76000000
    *** WARNING: The size you gave (76000000) is smaller than
    the size
    detected by the operating system (267386880).

    Do you really want to proceed?
    (y/n)? y
    The size you entered is 76000000 (0x487ab00) sectors.

    Do you really want to proceed?
    (y/n)? y

    Enter Command: m

    You are about to mirror disk /dev/disk5 (Drive 5)
    to disk /dev/disk2 (Drive 2).
    THIS WILL DESTROY ALL DATA ON DISK /dev/disk2!

    Do you really want to proceed?
    (y/n)? y
    *********************************************
    ***** Copying Partition Table and *****
    ***** System Partition *****
    *********************************************

    Copy from source '/dev/disk5' at offset 0
    Copy to destination '/dev/disk2' at offset 0
    Copying 1034242 blocks (505MB)
    100% done.

    *********************************************
    ***** Copy Complete *****
    *********************************************

    Done: Copy Complete

    Enter Command: p

    You are about to patch disk /dev/disk2 (Drive 2).
    Do you really want to proceed?
    (y/n)? y
    *********************************************
    ***** PATCHING DISK *****
    *********************************************

    Target disk is /dev/disk2 (234380000 sectors)
    ***** Patching partition block...
    Enabling RTV4000 byteswapping functions
    Original partition table values:
    Partition 1, type 0x4d, start: 2, length: 1024000
    Partition 2, type 0x4d, start: 1024002, length: 77316120
    Partition 3, type 0x4d, start: 78340122, length: 1953126
    Partition 4, type 0x00, start: 0, length: 0

    ** Do you want to reset the MPEG partition?
    ** Saying 'yes' here increases the chance that the patch
    works.
    ** Say 'no' here if you want to try to preserve your shows.
    (y/n)? y

    ** Do you want to completely reformat the MPEG partition
    ** using a LARGER cluster size?
    ** For 4xxx units it is recommended to say 'no' here
    ** For older units it is recommended to say 'yes' here
    (y/n)? n

    ** Do you want to reformat the Photo partition?
    This is REQUIRED unless you have already copied the Photo
    partition
    (y/n)? y
    Changing partition 3 start sector to 226188000 (0xd7b5ae0)
    Photo partition size will be 8192000 blocks (4000MB)
    Partition 2 will be 225163998 (0xd6bbade) blocks.

    ***** Clearing volume sequence block...

    Partition 2 cluster size was 262144 bytes.
    ***** Reading signature and FAT blocks...
    ***** Patching signature and FAT blocks...
    Number of clusters is 0x6b5dd.
    CRC is 0xf85e
    XOR byte is 0x3e
    *** Resetting MPEG partition
    Enabling RTV4000 byteswapping functions
    Partition 1 size is 1024000 (0xfa000) blocks.
    Partition 2 starts at sector 1024002 (0xfa002)
    Partition 2 cluster size is 262144 bytes.
    Partition 2 root directory located in block 3.
    CRC is 0x2f3f
    XOR byte is 0x4e
    *** MPEG partition reset is complete
    *** Formatting partition on device '/dev/disk2' at
    offset=115808256000
    Using RTV4000 byteswapping operations
    Writing system block with 64000 clusters of 65536 bytes
    each
    Writing superblock with label 'storage'
    CRC is 0xd17a
    XOR byte is 0x33
    Writing root directory entry
    CRC is 0xf90a
    XOR byte is 0xad
    Adding directory 'tmp' to partition
    CRC is 0x5f0e
    XOR byte is 0x09
    Adding directory 'Photo' to partition
    CRC is 0x0298
    XOR byte is 0xc0
    *** Partition format complete
    *********************************************
    ***** PATCH COMPLETE *****
    *********************************************
    Done: Patch complete[/code]

    done. the 7200 8mb cache wd 120 is working great in my
    5040. and i learned that the patch runs fine on firewire drives.
    [/quote]

     

    Related

    Code: code

  • Nobody/Anonymous

    Logged In: NO

    How do you make the file executable? From the terminal, I
    changed the permissions using "chmod 777 RTVPatch_OSX" which
    did set the executable flag, but I still get error "Command
    not found." (I am executig it from the source directory.)

    What am I doing wrong?
    Thanks.

     

Log in to post a comment.