Re: VFAT i_pos value

2011-11-30 Thread Abhijit Hoskeri
On Wed, Nov 30, 2011 at 2:33 PM, Kai Meyer  wrote:
> I'm getting this error:
> FAT: Filesystem error (dev sblsnap0)
>     fat_get_cluster: invalid cluster chain (i_pos 523791)

Do you know what file this error is related to?

If you do, then you could see which blocks belong to the file and
calculate the block based on the above offset and the filesystem block size.

Regards,
Abhijit

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


VFAT i_pos value

2011-11-30 Thread Kai Meyer
I'm getting this error:
FAT: Filesystem error (dev sblsnap0)
 fat_get_cluster: invalid cluster chain (i_pos 523791)

I'm wondering if there was a way to figure out what sector is causing 
the error? I would like to try and track down what is changing that 
sector and fix the problem. Is there a straight forward way to convert 
i_pos to a sector value? I've been staring at the fat.c and fat.h code 
all morning, and I'm having trouble grok'ing the flow.

-Kai Meyer

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Booting root filesystem from usb device

2011-11-30 Thread Greg KH
On Wed, Nov 30, 2011 at 12:23:39PM -0800, Ezequiel García wrote:
> Hi, 
> 
> I have a very silly question. I was building a small hand made root
> filesystem (with busybox and such) just to show how the process would be 
> done.
> 
> Something pretty similar to free-electrons 'embedded linux from scratch' 
> (http://free-electrons.com/docs/elfs/) but on a usb device (pen-drive).
> So, I put me kernel, busybox and stuff and installed lilo onto the mbr.
> 
> The problem is when the kernels boots it can't find the usb partition (sdc1)
> to mount (i.e. the root device). 
> 
> I know the usual way to do this is using initrd or similar, 
> but I don't want to get that into the equation since the 
> whole project is just for educational purposes and 
> I want to keep things as simple as possible.

Then just pass the command line option to sleep for a while before
looking for the root device.  I do that just fine on my tiny dns server
that runs from a USB flash drive.

Look in Documentation/kernel-parameters.txt for the rootdelay= option
for more details as to what to do.

Hope this helps,

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Booting root filesystem from usb device

2011-11-30 Thread Ezequiel García
Hi, 

I have a very silly question. I was building a small hand made root
filesystem (with busybox and such) just to show how the process would be 
done.

Something pretty similar to free-electrons 'embedded linux from scratch' 
(http://free-electrons.com/docs/elfs/) but on a usb device (pen-drive).
So, I put me kernel, busybox and stuff and installed lilo onto the mbr.

The problem is when the kernels boots it can't find the usb partition (sdc1)
to mount (i.e. the root device). 

I know the usual way to do this is using initrd or similar, 
but I don't want to get that into the equation since the 
whole project is just for educational purposes and 
I want to keep things as simple as possible.

Ezequiel.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies