Rockbox Development > New Ports
iPod Classic and iPod Nano 3G, 4G
RiotousMonk:
--- 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.
--- End quote ---
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:/#
----------
cool_walking_:
Mount your iPod, delete everything on it, then
--- Code: ---cat /dev/zero > /mnt/sda2/newblankfile
--- End code ---
Wait until it errors out with "cat: write error: No space left on device", and then
--- Code: ---dd if=/dev/sda | gzip > /someplace/with/free/space/nano3g.img.gz
--- End code ---
@hdragun: Mounting an image with multiple partitions:
http://www.jefferyfernandez.id.au/2007/06/14/mounting-partitions-that-are-within-a-disk-image/
saratoga:
I'd just delete the music, but leave the system files and folders alone.
RiotousMonk:
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
cool_walking_:
--- Quote ---File size limit exceeded
--- End quote ---
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version