xmkcard.sh script error [Solved]

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

xmkcard.sh script error [Solved]

Postby jeffstory » Wed Oct 24, 2012 11:10 pm

New Pandaboard ES owner and Arch ARM user here with a few years of Arch Linux X-86 use as my main desktop.

Got Ubuntu ARM and Linaro Ubuntu set up with xfce4 on different sdhc cards, no luck with Arch so far.

Running ./xmkcard.sh /dev/sdb results in this error: ./xmkcard.sh: line 24: bc: command not found

Did the script do what was intended based on the following info?

Complete output below.

$this->bbcode_second_pass_code('', '# ./xmkcard.sh /dev/sdb
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.222972 s, 4.7 MB/s
DISK SIZE - 15931539456 bytes
./xmkcard.sh: line 24: bc: command not found
CYLINDERS -

Usage:
sfdisk [options] <device> [...]

Options:
-s, --show-size list size of a partition
-c, --id change or print partition Id
--change-id change Id
--print-id print Id
-l, --list list partitions of each device
-d, --dump idem, but in a format suitable for later input
-i, --increment number cylinders etc. from 1 instead of from 0
-u, --unit <letter> units to be used; <letter> can be one of
S (sectors), C (cylinders), B (blocks), or M (MB)
-1, --one-only reserved option that does nothing currently
-T, --list-types list the known partition types
-D, --DOS for DOS-compatibility: waste a little space
-E, --DOS-extended DOS extended partition compatibility
-R, --re-read make the kernel reread the partition table
-N <number> change only the partition with this <number>
-n do not actually write to disk
-O <file> save the sectors that will be overwritten to <file>
-I <file> restore sectors from <file>
-V, --verify check that the listed partitions are reasonable
-v, --version display version information and exit
-h, --help display this help text and exit

Dangerous options:
-f, --force disable all consistency checking
--no-reread do not check whether the partition is in use
-q, --quiet suppress warning messages
-L, --Linux do not complain about things irrelevant for Linux
-g, --show-geometry print the kernel's idea of the geometry
-G, --show-pt-geometry print geometry guessed from the partition table
-A, --activate[=<device>] activate bootable flag
-U, --unhide[=<dev>] set partition unhidden
-x, --show-extended also list extended partitions in the output,
or expect descriptors for them in the input
--leave-last do not allocate the last cylinder
--IBM same as --leave-last
--in-order partitions are in order
--not-in-order partitions are not in order
--inside-outer all logicals inside outermost extended
--not-inside-outer not all logicals inside outermost extended
--nested every partition is disjoint from all others
--chained like nested, but extended partitions may lie outside
--onesector partitions are mutually disjoint

Override the detected geometry using:
-C, --cylinders <number> set the number of cylinders to use
-H, --heads <number> set the number of heads to use
-S, --sectors <number> set the number of sectors to use

umount: /dev/sdb1: not mounted
mkfs.vfat 3.0.12 (29 Oct 2011)
umount: /dev/sdb2: not mounted
mke2fs 1.42.4 (12-June-2012)
Filesystem label=ALARM
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
336672 inodes, 1345536 blocks
67276 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1379926016
42 block groups
32768 blocks per group, 32768 fragments per group
8016 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done ')

$this->bbcode_second_pass_code('', '$ fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x7f95ad37

Device Boot Start End Blocks Id System
/dev/sda1 2048 52430847 26214400 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 52430848 156262399 51915776 7 HPFS/NTFS/exFAT
/dev/sda3 156262400 625141759 234439680 5 Extended
/dev/sda5 156264448 181583871 12659712 83 Linux
/dev/sda6 181585920 186021887 2217984 82 Linux swap / Solaris
/dev/sda7 186023936 625141759 219558912 83 Linux

Disk /dev/sdb: 15.9 GB, 15931539456 bytes
64 heads, 32 sectors/track, 15193 cylinders, total 31116288 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
')

After running the script, it did remove previous partitions and data that I had installed that would not boot, but now shows nothing as viewed from GParted.
Is this normal. I have a 16GB sdhc card so I can setup a home partition and directory on it with plenty future space. Shouldn't I be seeing a fat16 or 32? partition at this point?

This is the beginning of my second install attempt. Notice there's not much board activity regarding Pandaboard ES. Did I select an unpopular board for my future ARM desktop project?
Last edited by jeffstory on Fri Nov 02, 2012 5:47 am, edited 1 time in total.
jeffstory
 
Posts: 24
Joined: Wed Oct 24, 2012 9:37 pm

Re: xmkcard.sh script error

Postby WarheadsSE » Thu Oct 25, 2012 12:47 am

Get the BC command.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: xmkcard.sh script error

Postby jeffstory » Thu Oct 25, 2012 12:58 am

$this->bbcode_second_pass_quote('WarheadsSE', 'G')et the BC command.


Not sure how to proceed to get the BC command.

EDIT: OK, I didn't have bc package installed on my laptop. Installed it and will try this again.
jeffstory
 
Posts: 24
Joined: Wed Oct 24, 2012 9:37 pm


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 6 guests