LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-24-2014, 04:05 AM   #1
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Rep: Reputation: Disabled
Question try to dd a rootfs on a partition, but it didn't work - a small error


Hi everyone,

I guess this is not a big problem, still I can't see what's the matter.

I'm building Images for an Embedded Linux (2.6.39) ARM9 System with Buildroot 2013.11, which is booting from an SD card. I was trying different file system formats, where some of them couldn't manage to boot.

What I did for the working ones: E.g.: rootfs.cramfs is working, in Linux menuconfig I selected

File Systems
- Miscellaneous filesystems
- - Compressed ROM file system support (cramfs)


Then I put the kernel on the first partition of the sd, and for the second partition I used the dd command:

sudo dd if=/[path-to-rootfs]/rootfs.cramfs of=/dev/sdb2 bs=2048

The kernel command line looks like:

console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait

And it's booting the system without any problems.

What I did for the ones that didn't work: E.g.: rootfs.ubifs (and many others too). Actually I did nearly the same steps as above. The Kernel command line stays the same. The things I canged is in linux-menuconfig:

File Systems
- Miscellaneous filesystems
- - SquashFS 4.0 - Squashed file system support
- - - Squashfs XATTR support
- - - Include support for LZO compressed file systems
- - - Include support for XZ compressed file systems


and dd command:

sudo dd if=/[path-to-rootfs]/rootfs.ubifs of=/dev/sdb2 bs=2048

(btw: after this step the host system isn't able anymore to read the content of the 2 partition).

But then It crashes during boot with the message:

No filesystem could mount root

and then, when trying to boot the target with the sd, a kernel panic occurs (due to the line above). If interested I can put the .config file here.

Does anyone see my mistake?

Last edited by embLinux; 04-24-2014 at 04:20 AM.
 
Old 04-25-2014, 01:44 AM   #2
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Original Poster
Rep: Reputation: Disabled
According to an UBIfs documentation, it won't work if used with an Flash device like SD or USB.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I modified fstab to have /home in separate partition (didn't work) Master_CAPS Linux - Newbie 9 10-20-2012 09:42 PM
rootfs dont work with ubifs toredo Linux - Software 0 01-22-2010 02:37 AM
Weird rootfs mount error FraGGod Linux - Kernel 1 04-22-2008 09:06 AM
Mounting rootfs via nfs: Remounting rw does not work tilman1 Linux - Networking 5 04-10-2008 11:57 PM
UPS cable didn't work. A cool work-around jlangelier LinuxQuestions.org Member Success Stories 1 07-18-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration