Forum Discussion
Altera_Forum
Honored Contributor
11 years agoDave,
Thanks so much for your quick response. I had run through the partitioning earlier today with no luck. I did it again and got the same results. The fdisk parameters for the partition creation (n command if fdisk) are sector start/stop instead of cyclinder (which I see in the example). I will continue to cast about for a resolution to this. . . here is my terminal dump with the commands that i ran: root@arrow_sockit:~# dd bs=1M count=64 if=/dev/zero of=./backing_file 64+0 records in 64+0 records out root@arrow_sockit:~# fdisk backing_file Welcome to fdisk (util-linux 2.21.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table Building a new DOS disklabel with disk identifier 0xe3700929. Command (m for help): x Expert command (m for help): s Number of sectors (1-63, default 63): 8 Expert command (m for help): h Number of heads (1-256, default 255): 16 Expert command (m for help): c Number of cylinders (1-1048576, default 8): 1024 Expert command (m for help): r Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-131071, default 2048): 1 Value out of range. First sector (2048-131071, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-131071, default 131071): Using default value 131071 Partition 1 of type Linux and of size 63 MiB is set Command (m for help): t Selected partition 1 Hex code (type L to list codes): b Changed system type of partition 1 to b (W95 FAT32) Command (m for help): p Disk backing_file: 67 MB, 67108864 bytes 16 heads, 8 sectors/track, 1024 cylinders, total 131072 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xe3700929 Device Boot Start End Blocks Id System backing_file1 2048 131071 64512 b W95 FAT32 Command (m for help): w The partition table has been altered! WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks. root@arrow_sockit:~# modprobe g_mass_storage file=./backing_file ERROR: could not insert 'g_mass_storage': No such device root@arrow_sockit:~#