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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  iPod Classic and iPod Nano 3G, 4G
« previous next »
  • Print
Pages: 1 [2] 3 4 5

Author Topic: iPod Classic and iPod Nano 3G, 4G  (Read 91762 times)

Offline RiotousMonk

  • Member
  • *
  • Posts: 4
iPod Classic and iPod Nano 3G
« Reply #15 on: March 27, 2008, 07:26:51 PM »
Quote from: saratoga on February 24, 2008, 08:13:16 PM
Copy your music off, put a file on it thats all zeros that takes up your whole free disk space, and then dump it.  Should zip down to almost nothing.

Hi,  I have a nano 3g (8gb).  Do you have a dd command or something in mind to do this?

I get similar fdisk -l info:

----------
root@mauke:/# fdisk -l /dev/sda
Note: sector size is 4096 (not 512)

Disk /dev/sda: 7952 MB, 7952142336 bytes
245 heads, 62 sectors/track, 127 cylinders
Units = cylinders of 15190 * 4096 = 62218240 bytes

Disk /dev/sda doesn't contain a valid partition table
root@manuke:/#
----------
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
iPod Classic and iPod Nano 3G
« Reply #16 on: March 27, 2008, 11:23:07 PM »
Mount your iPod, delete everything on it, then
Code: [Select]
cat /dev/zero > /mnt/sda2/newblankfile
Wait until it errors out with "cat: write error: No space left on device", and then
Code: [Select]
dd if=/dev/sda | gzip > /someplace/with/free/space/nano3g.img.gz

@hdragun: Mounting an image with multiple partitions:
http://www.jefferyfernandez.id.au/2007/06/14/mounting-partitions-that-are-within-a-disk-image/
« Last Edit: March 27, 2008, 11:29:15 PM by cool_walking_ »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
iPod Classic and iPod Nano 3G
« Reply #17 on: March 27, 2008, 11:55:56 PM »
I'd just delete the music, but leave the system files and folders alone.
Logged

Offline RiotousMonk

  • Member
  • *
  • Posts: 4
iPod Classic and iPod Nano 3G
« Reply #18 on: March 28, 2008, 03:07:44 AM »
Hi,

Previously my iPod Nano (3g, 8GB) had been configured on a Mac and had a bit of music on it.
I connected it to an XP machine and "restored" it.
Then connected it to my Ubuntu box and here's the new info, freshly restored with nothing added.

It times out @ 55% full on the partition(/dev/sda1) and kills the dd.   (See below.)  My file size limites (according to ulimit -a) are "unlimited".   Hmm.

Will you still find dd of /dev/sda useful?


root@manuke:/# fdisk -l /dev/sda
Note: sector size is 4096 (not 512)

Disk /dev/sda: 7952 MB, 7952142336 bytes
217 heads, 32 sectors/track, 279 cylinders
Units = cylinders of 6944 * 4096 = 28442624 bytes

   Device Boot   Start   End   Blocks      Id   System
/dev/sda1      1   280   7765508      b   W95 FaT32
Partition 1 has different physical/logical beginnings (non-Linux?):
   phys=(0, 1, 1) logical=(0, 1, 32)
Partition 1 has different physical/logical endings:
   phys=(120, 216, 32) logical=(279, 126, 32)

root@manuke:/#mount -rw /dev/sda1 /mnt

root@manuke:/#df -k
Filesystem   1K-blocks   Used   Available   Use%   Mounted on
...
/dev/sda1   7750228      20616   7729612      1%   /mnt

root@manuke:/#ls -la /mnt
drwxr-xr-x   7   root   root   4096   2008-03-28   14:16   .
drwxr-xr-x   22   root   root   1024   2008-03-28   14:13   ..
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Calendars
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Contacts
drwxr-xr-x   6   root   root   4096   2000-07-31   08:57   iPod_Control
-rwxr-xr-x           1   root   root   0           2000-07-31   08:57 .metadata_never_index
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Notes
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Recordings

root@manuke:/#touch /mnt/newblankfile
root@manuke:/#ls -la /mnt
drwxr-xr-x   7   root   root   4096   2008-03-28   14:16   .
drwxr-xr-x   22   root   root   1024   2008-03-28   14:13   ..
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Calendars
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Contacts
drwxr-xr-x   6   root   root   4096   2000-07-31   08:57   iPod_Control
-rwxr-xr-x           1   root   root   0           2000-07-31   08:57.metadata_never_index
-rwxr-xr-x           1   root   root   0           2008-03-28   14:26   newblankfile
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Notes
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Recordings

root@manuke:/#cat /dev/zero > /mnt/newblankfile
File size limit exceeded
root@manuke:/#ls -la /mnt
root@manuke:/#ls -la /mnt
drwxr-xr-x   7   root   root   4096   2008-03-28   14:16   .
drwxr-xr-x   22   root   root   1024   2008-03-28   14:13   ..
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Calendars
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Contacts
drwxr-xr-x   6   root   root   4096   2000-07-31   08:57   iPod_Control
-rwxr-xr-x           1   root   root   0           2000-07-31   08:57.metadata_never_index
-rwxr-xr-x           1   root   root 4294967295   2008-03-28  15:43   newblankfile
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Notes
drwxr-xr-x   2   root   root   4096   2000-07-31   08:57   Recordings

root@manuke:/#df -k
Filesystem   1K-blocks   Used   Available   Use%   Mounted on
...
/dev/sda1   7750228      4214920   3535308      55%   /mnt


« Last Edit: March 28, 2008, 03:17:03 AM by RiotousMonk »
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
iPod Classic and iPod Nano 3G
« Reply #19 on: March 28, 2008, 03:25:03 AM »
Quote
File size limit exceeded
D'oh, of course... FAT - the largest possible filesize is 4GB or so.  Just do the "cat" command a few times with different filenames so you get a few 4GB empty files.
Logged

Offline RiotousMonk

  • Member
  • *
  • Posts: 4
iPod Classic and iPod Nano 3G
« Reply #20 on: March 28, 2008, 11:59:50 PM »
Hi All,

I restored my nano-3g again on my macbook, and refilled it with a dd from /dev/zero, then took a dd of the entire device.  The final .gz file is 7.5 MB.

Please have a look at what I did below, and tell me if that is correct, and let me know should you be interested in the details of the file.

(some unrelated info removed to shorten the post)
Riot's Macbook:~ RiotousMonk$ df -k
Filesystem              1K-blocks     Used    Avail Capacity  Mounted on
/dev/disk0s2            116884912 77445376 39183536    66%    /
/dev/disk1s2              7765472    41264  7724208     1%    /Volumes/Riot's iPod

Riot's Macbook:~ RiotousMonk$ $ df -h
Filesystem                Size   Used  Avail Capacity  Mounted on
/dev/disk0s2              111G    74G    37G    66%    /
/dev/disk1s2              7.4G    40M   7.4G     1%    /Volumes/Riot's iPod

Riot's Macbook:~ RiotousMonk$ $ disktool -l
***Disk Appeared ('disk1',Mountpoint = '', fsType = '', volName = '')
***Disk Appeared ('disk1s1',Mountpoint = '', fsType = '', volName = '')
***Disk Appeared ('disk1s2',Mountpoint = '/Volumes/Riot's iPod', fsType = 'hfs', volName = 'Riot's iPod')
***Disk Appeared ('disk0',Mountpoint = '', fsType = '', volName = '')
***Disk Appeared ('disk0s1',Mountpoint = '', fsType = '', volName = '')
***Disk Appeared ('disk0s2',Mountpoint = '/', fsType = 'hfs', volName = 'Macintosh HD')

Riot's Macbook:~ RiotousMonk$ $ pdisk /dev/disk1 -dump

Partition map (with 4096 byte blocks) on '/dev/disk1'
 #:                type name           length   base    ( size )
 1: Apple_partition_map partition map      62 @ 1      
 2:           Apple_HFS disk          1941368 @ 64      (  7.4G)

Device block size=4096, Number of Blocks=1941441 (7.4G)
DeviceType=0x0, DeviceId=0x0

Riot's Macbook:~ RiotousMonk$ $ ls -la /Volumes/Riot\'s\ iPod/
total 96
drwxr-xr-x   11 RiotousMonk  RiotousMonk    476 Mar 28 16:47 .
drwxrwxrwt    8 root      admin       272 Mar 28 16:56 ..
-rw-r--r--    1 RiotousMonk  RiotousMonk   6148 Mar 28 16:47 .DS_Store
d-wx-wx-wt    3 RiotousMonk  RiotousMonk    102 Mar 28 16:56 .Trashes
-rw-r--r--    1 RiotousMonk  RiotousMonk  29833 Mar 28 16:46 .VolumeIcon.icns
-rwxr-xr-x    1 RiotousMonk  RiotousMonk      0 Jul 31  2000 .metadata_never_index
drwxr-xr-x    2 RiotousMonk  RiotousMonk     68 Jul 31  2000 Calendars
drwxr-xr-x    2 RiotousMonk  RiotousMonk     68 Jul 31  2000 Contacts
drwxr-xr-x    3 RiotousMonk  RiotousMonk    102 Jul 31  2000 Notes
drwxr-xr-x    2 RiotousMonk  RiotousMonk     68 Jul 31  2000 Recordings
drwxr-xr-x    7 RiotousMonk  RiotousMonk    238 Mar 28 16:46 iPod_Control

Riot's Macbook:~ RiotousMonk$ touch /Volumes/Riot\'s\ iPod/newblankfile
Riot's Macbook:~ RiotousMonk$ ls -la /Volumes/Riot\'s\ iPod/
total 96
drwxr-xr-x   12 RiotousMonk  RiotousMonk    510 Mar 28 17:06 .
drwxrwxrwt    8 root      admin       272 Mar 28 16:56 ..
-rw-r--r--    1 RiotousMonk  RiotousMonk   6148 Mar 28 16:47 .DS_Store
d-wx-wx-wt    3 RiotousMonk  RiotousMonk    102 Mar 28 16:56 .Trashes
-rw-r--r--    1 RiotousMonk  RiotousMonk  29833 Mar 28 16:46 .VolumeIcon.icns
-rwxr-xr-x    1 RiotousMonk  RiotousMonk      0 Jul 31  2000 .metadata_never_index
drwxr-xr-x    2 RiotousMonk  RiotousMonk     68 Jul 31  2000 Calendars
drwxr-xr-x    2 RiotousMonk  RiotousMonk     68 Jul 31  2000 Contacts
drwxr-xr-x    3 RiotousMonk  RiotousMonk    102 Jul 31  2000 Notes
drwxr-xr-x    2 RiotousMonk  RiotousMonk     68 Jul 31  2000 Recordings
drwxr-xr-x    7 RiotousMonk  RiotousMonk    238 Mar 28 16:46 iPod_Control
-rw-r--r--    1 RiotousMonk  RiotousMonk      0 Mar 28 17:06 newblankfile

Riot's Macbook:~ RiotousMonk$ cat /dev/zero > /Volumes/Riot\'s\ iPod/newblankfile
cat: stdout: No space left on device

Riot's Macbook:~ RiotousMonk$ df -h
Filesystem                Size   Used  Avail Capacity  Mounted on
/dev/disk0s2              111G    74G    37G    66%    /
/dev/disk1s2              7.4G   7.4G     0B   100%    /Volumes/Riot's iPod

Riot's Macbook:~ RiotousMonk$ ls -la /Volumes/Riot\'s\ iPod/
total 15448512
drwxr-xr-x   12 RiotousMonk  RiotousMonk         510 Mar 28 17:06 .
drwxrwxrwt    8 root      admin            272 Mar 28 16:56 ..
-rw-r--r--    1 RiotousMonk  RiotousMonk        6148 Mar 28 16:47 .DS_Store
d-wx-wx-wt    3 RiotousMonk  RiotousMonk         102 Mar 28 16:56 .Trashes
-rw-r--r--    1 RiotousMonk  RiotousMonk       29833 Mar 28 16:46 .VolumeIcon.icns
-rwxr-xr-x    1 RiotousMonk  RiotousMonk           0 Jul 31  2000 .metadata_never_index
drwxr-xr-x    2 RiotousMonk  RiotousMonk          68 Jul 31  2000 Calendars
drwxr-xr-x    2 RiotousMonk  RiotousMonk          68 Jul 31  2000 Contacts
drwxr-xr-x    3 RiotousMonk  RiotousMonk         102 Jul 31  2000 Notes
drwxr-xr-x    2 RiotousMonk  RiotousMonk          68 Jul 31  2000 Recordings
drwxr-xr-x    7 RiotousMonk  RiotousMonk         238 Mar 28 16:46 iPod_Control
-rw-r--r--    1 RiotousMonk  RiotousMonk  7909588992 Mar 28 17:19 newblankfile

Riot's Macbook:~ RiotousMonk$ dd if=/dev/disk1 | gzip > /Users/RiotousMonk/Desktop/nano3g.img.gz
15531528+0 records in
15531528+0 records out
7952142336 bytes transferred in 6662.713453 secs (1193529 bytes/sec)
Riot's Macbook:~ RiotousMonk$

« Last Edit: March 29, 2008, 12:02:09 AM by RiotousMonk »
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
iPod Classic and iPod Nano 3G
« Reply #21 on: March 29, 2008, 03:34:52 AM »
That looks fine. Just upload it somewhere. Don't attach it here on the forum, as space is very limited.

I'm not exactly sure what you mean by Ubuntu not "recognising" your iPod when formatted on OS X, but if you mean you can't mount it, your kernel probably just doesn't have HFS+ support compiled in.
Logged

Offline zivan56

  • Member
  • *
  • Posts: 38
iPod Classic and iPod Nano 3G
« Reply #22 on: March 29, 2008, 04:11:51 AM »
Here is a dump from my Nano 3G 4GB:
http://www.iwdstudio.com/sansa_dev/nano3g.img.gz
Logged

Offline RiotousMonk

  • Member
  • *
  • Posts: 4
iPod Classic and iPod Nano 3G
« Reply #23 on: March 29, 2008, 09:07:32 AM »
Here is the image dump from my 8GB  nano-3g.

http://tokyo.moro.us/nano3g_8gb.img.gz

and some pics of the innards from some kind soul.
http://www.ifixit.com/Guide/iPod/iPod-Nano-3rd-Generation

same photos + ipod classic:
http://www.appleinsider.com/articles/07/09/10/a_peek_inside_apples_new_nano_and_classic_ipods_photos.html

cost analysis of the nano-3g, with vague references to makers and spec on some of the chips - maybe useful in trying to figure out which chip is what in the above linked photos (apple branded rather than off the shelf?) :  http://www.isuppli.com/news/default.asp?id=8490&m=9&y=2007


« Last Edit: March 29, 2008, 09:51:09 AM by RiotousMonk »
Logged

Offline jv823md

  • Member
  • *
  • Posts: 1
iPod Classic and iPod Nano 3G
« Reply #24 on: March 31, 2008, 08:33:23 AM »
As an owner of an iPod Classic 80GB I could of course provide a HDD dump, but that won't help much as the firmware is clearly stored on a separate flash chip. Even if you wipe the entire hard drive, it still boots fine although it doesn't save the settings until you give it a nicely formatted FAT (or HFS) partition again, as the iTunes iPod repair program seems to do additionally to reflashing the firmware.
Logged

Offline boxerorange

  • Member
  • *
  • Posts: 12
iPod Classic and iPod Nano 3G
« Reply #25 on: April 16, 2008, 10:02:38 PM »
I did a "fdisk -l" on my Classic, and it came up with this:

Note: sector size is 4096 (not 512)

Disk /dev/sda: 159.8 GB, 159840301056 bytes
26 heads, 50 sectors/track, 30018 cylinders
Units = cylinders of 1300 * 4096 = 5324800 bytes
Disk identifier: 0x20202020

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       30019   156093788    b  W95 FAT32

Could somebody please tell me what this actually means?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
iPod Classic and iPod Nano 3G
« Reply #26 on: April 16, 2008, 10:18:24 PM »
Quote from: boxerorange on April 16, 2008, 10:02:38 PM
I did a "fdisk -l" on my Classic, and it came up with this:

Note: sector size is 4096 (not 512)

Disk /dev/sda: 159.8 GB, 159840301056 bytes
26 heads, 50 sectors/track, 30018 cylinders
Units = cylinders of 1300 * 4096 = 5324800 bytes
Disk identifier: 0x20202020

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       30019   156093788    b  W95 FAT32

Could somebody please tell me what this actually means?

It means you've mounted it's hard disk in UMS mode.
Logged

zajacattack

  • Guest
iPod Classic and iPod Nano 3G
« Reply #27 on: April 17, 2008, 06:02:47 PM »
So, I realize the firmware encryption is a huge problem.

Is the firmware for these versions stored in a separate (perhaps hidden?) partition like the earlier iPods and the Sansas?
Logged

Offline boxerorange

  • Member
  • *
  • Posts: 12
iPod Classic and iPod Nano 3G
« Reply #28 on: April 17, 2008, 11:04:25 PM »
My guess would be that from my "fdisk -l"...scan(?) there's only one partition on my Classic.
Logged

Offline pondlife

  • Developer
  • Member
  • *
  • Posts: 248
iPod Classic and iPod Nano 3G
« Reply #29 on: April 18, 2008, 01:38:04 AM »
Quote from: boxerorange on April 17, 2008, 11:04:25 PM
My guess would be that from my "fdisk -l"...scan(?) there's only one partition on my Classic.

No, it means that only one partition is exposed.  If you could open your iPod and connect the disk to a native controller you might get a different result (or you might not).

pondlife
Logged

  • Print
Pages: 1 [2] 3 4 5
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  iPod Classic and iPod Nano 3G, 4G
 

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

Page created in 0.113 seconds with 15 queries.