News:

I have updated the spam detection on registrations, and as such I am enabling new users.  If we have spam, I will change it back to by approval.

Main Menu

Idea: Adding second hard disk

Started by RobM, June 16, 2005, 10:37:54 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

AndyMan

..... NO GO, IT'S NOT MOUNTING hdb  .....

sbingner

I went to compusa, bought three of these: http://www.compusa.com/products/product_info.asp?ref=froogle&pfp=froogle&product_code=294956&cm_ven=froogle&cm_cat=&cm_pla=&cm_ite=feed  made the system think the dms was always connected by shorting pins 44 and 20, rolled over the cable by sticking pins in the end of the cable that normally connects to the thing with the DMS and the adaptor and melding them... otherwise I had pin 1=2 and 2=1

hda: PhatNoise DMS 10GB, ATA DISK drive
hdb: IBM-DJSA-220, ATA DISK drive
ide0 at 0xfe100000-0xfe100007,0xfe10000e on irq 6
hda: 19640880 sectors (10056 MB), CHS=19485/16/63
hdb: 39070080 sectors (20004 MB) w/1874KiB Cache, CHS=38760/16/63
Partition check:
 hda: hda1 hda2 < hda5 hda6 >
 hdb: hdb1 hdb2 < hdb5 >

I then created the dev nodes for hdb, hdb1 and hdb5.  I then mounted /dev/hdb5 over /dos/Data and killed 51d and phatd... when they restarted they were happily playing the music off the second drive

I'll put up more info when I get pics or something

AndyMan

How do you create the "dev nodes" for hdb... I think that's where I was failling

sbingner

mknod /dev/hdb b 3 64
mknod /dev/hdb1 b 3 65
mknod /dev/hdb5 b 3 69


brw-rw----  1 root disk 3, 64 Feb 23  2004 /dev/hdb
brw-rw----  1 root disk 3, 65 Feb 23  2004 /dev/hdb1
brw-rw----  1 root disk 3, 69 Feb 23  2004 /dev/hdb5

AndyMan

Much appreciated!... So, the next question is how do I help in the re-creation of the phatbox code?

... other than that, now all I have to do is load up the secondary hard drive and go for it.

Thanks
Andy

ryanmc

QuoteI went to compusa, bought three of these: http://www.compusa.com/products/product_info.asp?ref=froogle&pfp=froogle&product_code=294956&cm_ven=froogle&cm_cat=&cm_pla=&cm_ite=feed  made the system think the dms was always connected by shorting pins 44 and 20, rolled over the cable by sticking pins in the end of the cable that normally connects to the thing with the DMS and the adaptor and melding them... otherwise I had pin 1=2 and 2=1


hda: PhatNoise DMS 10GB, ATA DISK drive
hdb: IBM-DJSA-220, ATA DISK drive
ide0 at 0xfe100000-0xfe100007,0xfe10000e on irq 6
hda: 19640880 sectors (10056 MB), CHS=19485/16/63
hdb: 39070080 sectors (20004 MB) w/1874KiB Cache, CHS=38760/16/63
Partition check:
hda: hda1 hda2 < hda5 hda6 >
hdb: hdb1 hdb2 < hdb5 >


I then created the dev nodes for hdb, hdb1 and hdb5.  I then mounted /dev/hdb5 over /dos/Data and killed 51d and phatd... when they restarted they were happily playing the music off the second drive

I'll put up more info when I get pics or something
Very nice. would you be willing to make a how to..
or supply me with enough info to make this mod work and i could make a how to.... or was this method just a test and not a good way of using the pn for one reason or another ?

sbingner

Quote
Very nice. would you be willing to make a how to..
or supply me with enough info to make this mod work and i could make a how to.... or was this method just a test and not a good way of using the pn for one reason or another ?


All you need to do is make a 3-ended 44-pin IDE cable... AndyMan knows the parts that would be required.  Once you have that, set the second laptop drive to slave and connect them both up.... one has to be in th DMS cradle so the little button is depressed

AndyMan

REMEMBER:  The *new* DMS (secondary) has to contain the idx files etc...

The only thing I'm *unsure* of, is how to KILL and restart 51d and phatd automatically so that this can be a seamless "fix"

Any ideas?

AndyMan

Tell u what, those 2mm Jumpers are expensive little suckers...  especially when you only need 1 of them <Aargh>

sbingner

QuoteREMEMBER:  The *new* DMS (secondary) has to contain the idx files etc...

The only thing I'm *unsure* of, is how to KILL and restart 51d and phatd automatically so that this can be a seamless "fix"

Any ideas?

I could probably write a replacement 51d that would take care of that... it could mount the drive, and overwrite the mountpoints.  The only possible problem would be if it takes too long and the 8051 decides to kill it before the second drive mounts

judb

you forget that it checks the sigs during the boot loader portion for the 51d file.  so we cant replace it.

Changing the start up sound to flac or something and having a script that does the mounting etc would be a good way i think.

bushing

Quoteyou forget that it checks the sigs during the boot loader portion for the 51d file.  so we cant replace it.

Changing the start up sound to flac or something and having a script that does the mounting etc would be a good way i think.


You'd think so, but, it doesn't.  (Oops.) The bootloader only checks:  hard disk id sector, linux, ramdisk, rc.sh, and phatd.

http://wiki.phathack.com/Bootloader_FAQ

51d doesn't get checked until phatd runs; everything from then on seems to use the same bad code that gets fooled by plsign.

I think the easiest way to prepackage a "hack" (at least, in the sense of getting a terminal on the serial port or whatever) is to put out a shell script called 51d, and have it run a hack.sh and then run the real 51d.  Sign it, then anyone can download those two files, rename 51d to 51d.real or something, and then copy them to the drive and be off (without having to lose a filetype or whatever).
-b

judb

well as long as 51d will work as another name then we should be okay.  if we have to copy 51d back and remove the shell script we also have to find a way to put it back on shutdown.

we could change the shutdown scripts in the ramdisk using our hacked 51d script perhaps... so that files get moved back and forth on boot and shutdown.

sbingner

Quotewell as long as 51d will work as another name then we should be okay.  if we have to copy 51d back and remove the shell script we also have to find a way to put it back on shutdown.

we could change the shutdown scripts in the ramdisk using our hacked 51d script perhaps... so that files get moved back and forth on boot and shutdown.

51d can't be a shell script, it calls via exec() from phatd.  I've replaced it with a compiled program that just exec'd strace 51d-real and it works fine

ryanmc

#34
What about shorting pins 44 and 20 will people need to do this ? sbingner initially from what i read you used a 3.5 ?I think id like to go that route because of the prices of them .

sbingner

QuoteWhat about shorting pins 44 and 20 will people need to do this ? sbingner initially from what i read you used a 3.5 ?I think id like to go that route because of the prices of them .

you only need to short them if you don't have the DMS cradle connected... depressing the button does that.  I actually used only laptop drives, but I used a 40-pin IDE cable so I couldnt connect the DMS cradle and had to short them