[ydl-gen] fdisk problems

superlidu at vip.sina.com superlidu at vip.sina.com
Tue May 23 01:10:47 MDT 2006


Now I am building my ARM board, and use the Samsung\'s nand flash as the main 
storage. I register the NAND flash as a general disk in to the system.after that I patition 

the disk with the following steps
/*****************************************************************/
fdisk /dev/sbulla
command : n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-384, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-384, default 384): 256

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (257-384, default 257):
Using default value 257
Last cylinder or +size or +sizeM or +sizeK (257-384, default 384):
Using default value 384

Command (m for help): w
The partition table has been altered!
/****************************************************************/
after the above steps, I use the \'fdisk -l\', then print the result:

/dev/sbulla: 25 MB, 25165824 bytes
16 heads, 8 sectors/track, 384 cylinders
Units = cylinders of 128 * 512 = 65536 bytes

      Device Boot    Start       End    Blocks   Id  System
/dev/sbulla1             1         256       16380   83  Linux
/dev/sbulla2             257         384        8192   83  Linux
but I \'cat /proc/partitions\', the result is not the same with above
major minor  #blocks  name

  44     0      24576 sbulla
  44     1      16380 sbulla1

there is no sbulla2, why?
and more, after \'mknod /dev/sbulla1 b 44 1\', then I can use \'mkfs.ext2 /dev/sbulla\'. if  

\'mknod /dev/sbulla2 b 44 2\', I can not use \'mkfs.ext2 /dev/sbulla\', the result is 
mkfs.ext2: mke2fs 1.37 (21-Mar-2005)
mkfs.ext2: Could not determine filesystem size

anyone can help me? thanks a lot !

Br,
sword


More information about the yellowdog-general mailing list