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
|-+  Installation / Removal
| |-+  Manual Installation
| | |-+  Apple - Installation/Removal
| | | |-+  Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« previous next »
  • Print
Pages: [1]

Author Topic: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?  (Read 5312 times)

Offline uOpt

  • Member
  • *
  • Posts: 14
Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« on: October 02, 2008, 02:34:16 PM »
I have a 80 GB video ipod that ran rockbox fine, using a FAT32 partition. I got a filesystem corruption after I installed rockbox 3.0 (may or may not be related) and I have reformatted the data partition.

However, it doesn't work, I can't seem to create a FAT32 filesystem from Linux that Rockbox can see. I tried a variety of parameters and every time I get "Can't load rockbox.ipod".

One thing I noticed is that I can't use the default sector size "512", otherwise mount fails with " kernel: FAT: logical sector size too small for device (logical sector size = 512). When I use -S 2048 Linux can mount but the bootloader doesn't find rockbox.ipod.

When I originally installed Rockbox I had a freshly initialized iPod from iTunes (wiped out, then connected to iTunes and it created the partition table and filesystem). I don't have access to that Windoze installation right now and I think there should be a way to create the right kind of FAT32 from Linux, right?

My gut feeling is that Windoze somehow manages to make a 512 bytes sector filesystem that is usable and that Linux' mkfs.vfat somehow screws this up.
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« Reply #1 on: October 02, 2008, 02:37:48 PM »
You can use the partition file table from the 80GB video to help get the filesystem up:

http://download.rockbox.org/bootloader/ipod/mbr-video80gb-2048.bin

Instructions are here if you need to know how to apply the table.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline uOpt

  • Member
  • *
  • Posts: 14
Re: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« Reply #2 on: October 02, 2008, 02:44:14 PM »
Same result as with my old partition table, which was almost the same modulo a couple sectors (but same types).

I don't think I have a partition table problem. What fails to work here is the FAT32 filesystem itself.
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« Reply #3 on: October 02, 2008, 02:47:03 PM »
You might try using mformat instead of mkfs.vfat. That has been known to fix this issue
Logged

Offline uOpt

  • Member
  • *
  • Posts: 14
Re: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« Reply #4 on: October 02, 2008, 03:21:56 PM »
Yepp, that did it. This makes it work:

mformat -S 4 x:

$ cat ~/.mtoolsrc
drive x:
  file="/dev/sdi2"
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« Reply #5 on: October 02, 2008, 06:48:34 PM »
The wiki page LambdaCalculus referenced mentions this issue
Quote
Note - there is a problem with mkfs.vfat on disks over 30GB in size. We recommend mtools format utility instead.
« Last Edit: October 03, 2008, 07:24:27 AM by yapper »
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline uOpt

  • Member
  • *
  • Posts: 14
Re: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« Reply #6 on: October 02, 2008, 07:10:39 PM »
Oops. Sorry.

Now, there's a problem left, and that is that after mount my 80 GB mformat made FAT32 filesystem is seen like this:
~(pls)23% df -h /mnt/ipod
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdi2             298G   22G  276G   8% /mnt/ipod

I think my party might not yet be over. Rockbox works, but I figure this will probably blow up as I put more data on this.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« Reply #7 on: October 03, 2008, 02:37:27 AM »
Right, I want to see :

dmesg output from when you connect your ipod via usb.

Output from fdisk -l

Then we'll see what's what.
Logged

Read The Manual Please

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
« Reply #8 on: October 03, 2008, 05:18:05 AM »
Quote from: uOpt on October 02, 2008, 03:21:56 PM
mformat -S 4 x:

The wiki has mformat instructions, and they are different from this... I think you also need -M 2048 at least
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Installation / Removal
| |-+  Manual Installation
| | |-+  Apple - Installation/Removal
| | | |-+  Anybody got the right mkdosfs/mkfs.vfat parameters (Linux)?
 

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

Page created in 0.103 seconds with 15 queries.