Rockbox Technical Forums

Third Party => Repairing and Upgrading Rockbox Capable Players => Topic started by: bocadakota on July 20, 2016, 11:37:12 AM

Title: 2 Partition mSata iPod Gen 6
Post by: bocadakota on July 20, 2016, 11:37:12 AM
Is it possible to create 2 partitions on a single mSata 256GB already installed on a 6th gen iPod, one for Rockbox and one for ITunes and boot to either?  Experimenting with this, my music library is less than 128gb, looking to discovery performance, battery life, etc.  Thoughts and questions requested. 
Title: Re: 2 Partition mSata iPod Gen 6
Post by: saratoga on July 20, 2016, 12:14:25 PM
Is it possible to create 2 partitions on a single mSata 256GB already installed on a 6th gen iPod, one for Rockbox and one for ITunes and boot to either?

Yes, although you only need 1 partition:

https://files.freemyipod.org/~user890104/bootloader-ipodclassic.html
Title: Re: 2 Partition mSata iPod Gen 6
Post by: bocadakota on July 20, 2016, 03:03:46 PM
Saratoga: Understand about dual boot one partition between iTunes and Rockbox, Issue is that iPod 6th gen is limited to 128gb in iTunes mode and I have a 256gb mSata drive installed but even Rockbox only sees 128gb due to usb connection to format.
Title: Re: 2 Partition mSata iPod Gen 6
Post by: bocadakota on July 20, 2016, 08:23:38 PM
Ok, I got iPod 6th Gen (thick) loaded with iTunes and Rockbox, I can boot to either with no problem and utilize one database from iTunes sync, all working great.  The Crucial MX200 mSata ssd installed is a 250gb but both iTunes and Rockbox only see 128gb.  Anyone know how to expand the partition without losing everything?
Title: Re: 2 Partition mSata iPod Gen 6
Post by: bocadakota on July 21, 2016, 11:25:16 AM
Update,  Discovered that when wiping drive completely formatting as a 250gb drive Fat32, re-partition be it as a single drive or 2 128gb partitions, iTunes on it's restore wipes it and creates a single 128gb partition, even using tools to create 2 partitions iTunes wipes the second one to were it's not visible.  Rockbox does the same on it's restore.  Still trying to figure a work around for this 6th gen ipod. No worries it's an experiment anyway.   
Title: Re: 2 Partition mSata iPod Gen 6
Post by: bocadakota on July 21, 2016, 01:22:16 PM
Update,  I have both iTunes and Rockbox loaded, sync'd songs using iTunes, switched to Rockbox and it found the iTunes that was sync'd and loaded it.  So far so good.  Used RockboxBootloaderInstaller_iPodClassic_v8+DesignWare.exe to get Rockbox loaded and a few skins I liked.  MiniAide Fat32 Formatter sees 1st partition (128gb) and unused, unallocated 128gb.  I was able to create a second partition and Fat32 formatted it, when in Rockbox mode and usb connected.  Windows 10 does not see second partition under explorer but MiniAide Fat32 does, this is due to Windows issue.  Still can't resize 1st partition to utilize whole drive (250gb) , but for now I'm content till another day or someone has a suggestion.  Until the LBA can be enabled I will keep trying to find a work around.
Title: Re: 2 Partition mSata iPod Gen 6
Post by: saratoga on July 21, 2016, 02:13:41 PM
  Still can't resize 1st partition to utilize whole drive (250gb) , but for now I'm content till another day or someone has a suggestion.  Until the LBA can be enabled I will keep trying to find a work around.

Since the Apple firmware only uses LBA28, I think if you try to resize above that limit, the Apple firmware is going to either corrupt your disk or else just restore the partitions to something it can understand.  I think the best you can do here is setup a main partition for the Apple firmware, and then put the rest of the space into a second partition.  By default rockbox will ignore that, but you could compile a custom build with support for multiple volumes by adding HAVE_MULTIVOLUME to the config file before building:

http://www.rockbox.org/wiki/BigDisk

I'm not sure if that will work on newer devices but I don't see why it won't. 
Title: Re: 2 Partition mSata iPod Gen 6
Post by: bocadakota on July 22, 2016, 07:41:13 AM
Odd, deleted second fat32 partition this morning while usb connected using MiniAide Fat32 and Rockbox running.  After deletion I expanded the first partition to full drive, it accepted (which didn't work previous)and expanded to full 256gb.  Ejected and watched as Rockbox took a couple of seconds and recognized full drive (232GB) with 119GB free under system/rockbox info and all my music.  Only time will tell if data gets corrupt if I go over 128gb limit.  iPod is 6th Gen with original 160gb hdd config and now with Crucial mSata 250gb.  Thanks Saratoga for replies and comments.  Will post if any other experiment issue.
Title: Re: 2 Partition mSata iPod Gen 6
Post by: bocadakota on July 22, 2016, 08:12:23 AM
Additional update: After partition resize to 250gb for Rockbox.  Rockbox functional, tried boot to iTunes and it ask for restore.  Will use Rockbox only for now, suspect if I try restore it will revert back to 128GB drive for both. 
Title: Re: 2 Partition mSata iPod Gen 6
Post by: bocadakota on July 29, 2016, 10:25:51 AM
Tried to restore itunes and as suspected it crashed everything, overwrote partition.  Could get itunes reloaded (w/128gb max) easy but???  Took for ever to get back to Rockbox loaded and use of 250gb ssd, not going to get into details.  As in previous post will use Rockbox and learn.  Wish there was a way to hack ipods LBA48 use on an ssd drive.  Original config of ipod was 160gb hard drive until it started to get lots of errors due to drive failure. Can't figure why Rockbox uses LBA48 with ssd but itunes  cannot.  Know it's firmware but cracking it seems out of reach. 
Title: Re: 2 Partition mSata iPod Gen 6
Post by: Frankenpod on July 29, 2016, 10:39:59 AM
Can't figure why Rockbox uses LBA48 with ssd but itunes  cannot.  Know it's firmware but cracking it seems out of reach.

That model ipod firmware is apparently specifically coded to only use LBA48 if it detects a (er, not sure if this is the right terminology) CE interface drive, as in the original double-platter 160gb drive.  With a zif interface as in the ssd adaptor or the single-platter drives used by other classics, it switches to the more limited LBA mode.

Can only guess that Apple did this precisely to make mods difficult, unless there's some other technical reason.

Would be interesting if anyone can get the MULTI VOLUME thing to work (as suggested by Saratoga).  Seems as if that would be the only way to get this gen of ipod working in dual-boot mode.  Otherwise you just have to use it exclusively in Rockbox mode, I guess.