Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Partitions on ipod
« previous next »
  • Print
Pages: [1]

Author Topic: Partitions on ipod  (Read 1740 times)

Offline delt

  • Member
  • *
  • Posts: 39
Partitions on ipod
« on: August 10, 2008, 11:24:37 PM »
Hello,

I have an ipod nano 1st gen, 4gb. Its partitions are setup a bit strangely:

Code: [Select]
[pts/8][root@deimos]:~# fdisk /dev/sda

Command (m for help): p

Disk /dev/sda: 4095 MB, 4095737344 bytes
241 heads, 62 sectors/track, 535 cylinders
Units = cylinders of 14942 * 512 = 7650304 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          11       80293+   0  Empty
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 1, 1) logical=(0, 1, 2)
Partition 1 has different physical/logical endings:
     phys=(9, 254, 63) logical=(10, 181, 8)
Partition 1 does not end on cylinder boundary.
/dev/sda2              11         536     3919418+   b  W95 FAT32
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(10, 0, 1) logical=(10, 181, 9)
Partition 2 has different physical/logical endings:
     phys=(497, 240, 62) logical=(535, 88, 61)

Command (m for help):

This is the way they come back after "restoring" the ipod to factory defaults on a windows machine, using the "itunes" software. The main partition (sda2) is only 3.7gb instead of 4gb. If i try to delete the partitions and remake them -- even just the second one, not even touching the firmware -- then the ipod refuses to boot up, and gives me an error "Use itunes to restore".

Is there some way i could use the extra 300mb? I don't use the apple firmware at all. Perhaps if the "ipodpatcher" utility didn't check for the apple copyright...?

Thanks for any advice on this.

Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Partitions on ipod
« Reply #1 on: August 10, 2008, 11:29:12 PM »
There's not an extra 300 MB. The "4GB" that they advertised is actually not "4GB" as your computer normally labels it, it's about 3.7. Blame storage manufacturers for creating a second labeling scheme that claims to have the same units but doesn't really.
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Partitions on ipod
« Reply #2 on: August 10, 2008, 11:49:33 PM »
Aren't we supposed to use GiB (Gibibyte, 1024^3 * 8) instead of GB (Gigabyte, 1000^3 * 8) now?

I get some sort of message similar to "different physical/logical endings" as well (can't remember the exact message).  It doesn't seem to be anything to worry about.  It acts fine.

The first partition is where the Apple firmware lives, and I think the Rockbox installer modifies something in there so that Rockbox can boot.  I'm not sure if you can do some sort of alternate install that doesn't rely on that partition.
« Last Edit: August 10, 2008, 11:54:58 PM by cool_walking_ »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Partitions on ipod
« Reply #3 on: August 11, 2008, 02:10:18 AM »
Quote from: Llorean on August 10, 2008, 11:29:12 PM
Blame storage manufacturers for creating a second labeling scheme that claims to have the same units but doesn't really.
In fact, storage manufacturers are right by using SI units (G = 10^9) while windows / linux is wrong (it uses G as prefix but calculates with the base 2^12. This has been standardizes as prefix Gi but this hasn't been adopted widely yet, and unfortunately there are lots of resistance against using the correct terms, mostly by "oldtimers". At least it has been adopted partly on linux).

as cool_walking_ said, the first partition is the firmware partition of Apple. It has to be the way it is, and Rockbox writes its bootloader to that partition.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline delt

  • Member
  • *
  • Posts: 39
Re: Partitions on ipod
« Reply #4 on: August 11, 2008, 02:14:24 AM »
Thanks for your insight on this.

However, i believe apple use the 2^10 based number of bytes for the ipods:

Code: [Select]
Aug 10 22:36:42 deimos kernel: usb 1-4: new high speed USB device using ehci_hcd and address 15
Aug 10 22:36:43 deimos kernel: usb 1-4: configuration #1 chosen from 2 choices
Aug 10 22:36:43 deimos kernel: scsi125 : SCSI emulation for USB Mass Storage devices
Aug 10 22:36:48 deimos kernel: scsi 125:0:0:0: Direct-Access     Apple    iPod             1.62 PQ: 0 ANSI: 0
Aug 10 22:36:48 deimos kernel: sd 125:0:0:0: [sda] 7999487 512-byte hardware sectors (4096 MB)
Aug 10 22:36:48 deimos kernel: sd 125:0:0:0: [sda] Write Protect is off
Aug 10 22:36:48 deimos kernel: sd 125:0:0:0: [sda] 7999487 512-byte hardware sectors (4096 MB)
Aug 10 22:36:48 deimos kernel: sd 125:0:0:0: [sda] Write Protect is off
Aug 10 22:36:48 deimos kernel:  sda: sda1 sda2
Aug 10 22:36:48 deimos kernel: sd 125:0:0:0: [sda] Attached SCSI removable disk

/* edit */ I just noticed in my post above fdisk says 4095 MB. Weird....

Quote
as cool_walking_ said, the first partition is the firmware partition of Apple. It has to be the way it is, and Rockbox writes its bootloader to that partition.

... but the only reason it -has- to be like that is that the device itself does a checksum or something, otherwise you'd just need a very small partition for the boot loader, right?
« Last Edit: August 11, 2008, 02:21:03 AM by delt »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Partitions on ipod
« Reply #5 on: August 11, 2008, 01:39:12 PM »
Quote from: delt on August 11, 2008, 02:14:24 AM
... but the only reason it -has- to be like that is that the device itself does a checksum or something, otherwise you'd just need a very small partition for the boot loader, right?
It could work with a smaller partition if, and only if, you don't use the Ipod firmware at all anymore and replace it completely on disc -- the firmware partition is also used for resume information by the apple firmware. I don't know if the bootloader (the one in ROM that comes before anything else) checks the size of the firmware partition but I imagine it'd do. Feel free to try yourself ...
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Partitions on ipod
« Reply #6 on: August 11, 2008, 03:57:13 PM »
As far as I know the firmware partition can be resized, I'm almost positive I remember people doing it safely. But yes, you really only do it if you've completely removed the Apple firmware.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Partitions on ipod
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.083 seconds with 15 queries.