• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: UBIFS mount fails due to unknown filesystem  (Read 2079 times)
pallinger
Newbie
*

Karma: 1
Posts: 7


View Profile
« on: January 26, 2010, 05:01:48 AM »

I am trying to put ubifs on the nand, currently to no avail. Here is what I got:
  • I formatted mtd2 as a clean ubifs.
    ubiformat /dev/mtd2
  • I attached mtd2 as ubi0:
    ubiattach /dev/ubi_ctrl -m 2
    UBI device number 0, total 4041 LEBs (521385984 bytes, 497.2 MiB), available 3997 LEBs (515708928 bytes, 491.8 MiB), LEB size 129024 bytes (126.0 KiB)
  • Tried to mount the result:
    mount -t ubifs ubi2:root /mnt/ubi
    mount: ismeretlen fájlrendszertípus: "ubifs"
    (unknown filesystem type: "ubifs")
  • checked /proc/filesystems:
    cat /proc/filesystems |grep ubi
    nodev   ubifs

Does anyone have a suggestion what I did wrong?
I am using the 2.6.32.4 kernel and debian lenny, except for the mtd-utils package, which is from squeeze and has version 20090606-1.
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #1 on: January 26, 2010, 07:02:20 AM »

I think you need ubi0:root, Not ubi2:root.
Logged

Good Luck Smiley

pallinger
Newbie
*

Karma: 1
Posts: 7


View Profile
« Reply #2 on: January 27, 2010, 06:04:11 AM »

I think you need ubi0:root, Not ubi2:root.
Thanks, you've got a point, but still I had no success.
Code:
mount -t ubifs ubi0:root /mnt/ubi
mount: ismeretlen fájlrendszertípus: "ubifs"
Meanwhile, I have discovered that dmesg contains some useful(?) information on the error:
Code:
UBIFS error (pid 1874): ubifs_get_sb: cannot open "ubi0:root", error -19
Some googling suggests that I may got the volume name wrong, I will look into that.

Update: I figured it out!
The missing step was an
Code:
ubimkvol /dev/ubi0 -m -N rootfs
before mounting.
« Last Edit: January 27, 2010, 06:15:21 AM by pallinger » Logged

Pages: [1]
Print
Jump to: