Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How Much Space Before 1st Partition? Post 302926454 by mrm5102 on Monday 24th of November 2014 01:36:45 PM
Old 11-24-2014
Hey Corona, thanks for the reply.

I wish it were that easy... I'm not even sure what I want to do is possible, but here we go...

I have a bunch of CuBox's that boot off SD Cards. The CuBox's use the bootloader called U-Boot. And when I do a straight clone from one card
to another I am unable to boot the cloned SD Card. During the boot process, after the U-Boot screen, I get the error during boot log messages that says;

"Failed to find boot device"

I Believe this is because when I did the first boot of the source sd card (*the one that works), U-Boot writes data specific to that SD Card in
the u-boot.img file and also a compiled file called boot.scr. I also believe it records the Offsets, or has them pre-recorded, of the Kernel image file
that is flashed to the SDCard. The boot.scr file contains the kernel image's addr/offset for where to find it...

Another thing I tried was after I cloned the working SD Card to a new one, I mounted the cloned card to my laptop and ran the command:
Code:
mkimage -A arm -O linux -a 0 -e 0 -T script -C none -n 'Boot-Script' -d /media/root/boot/boot.script /media/root/boot/boot.scr

Which I believe recreates the boot.scr and boot.script files (*which contains all the boot env variables and boot cmds, etc...)

Now, after I did that and I try to boot the SD Card again, I get MUCH further along in the boot process, but I then get stopped at an error message
that says this below (*the name there is the by-id name of the ORIGINAL SD Card...):
Code:
[ ***]  (2 of 2) A start job is running for dev-disk-by\x2did=mmc\x2did=mmc\x2dSD08G_0xda132af2\x2dpart3.device

So I'm thinking the device name is getting written somewhere else in the boot partition, possibly in the zImage-3.14.14-cubox-i kernel
image file or maybe in u-boot.img file... So I thought I would try to take a fresh sd card that has had the OS image flashed to it, but has never
been booted, and copy the MBR and boot partitions from that FRESH SDCard and overwrite the MBR and boot partitions on the CLONED card
and see what happens...

I'm doing this becuase I need to configure about 15 of these CuBox's and I was hoping I could simply configure one SD Card exactly how I want it
then clone the SD Card for the other CUBox's to save A WHOLE LOT OF TIME...

I know when I change Hard Drives on my OpenSuSE laptop and I clone the HDD to a new Drive, I usually just need to edit the HDD names in GRUB and I'm
good to go, but this seems more complicated...

Any ideas?

Thanks Again,
MAtt
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Swap Partition Space

first of all, sorry about my english...I´m a spanish newbie to this marvelous OS and i have just a couple of doubts...u know? :-) 1) how big should my swap partition be if i installed debian 2.2r3 or FreeBSD 4.x on a AMD k7 1400Mhz with 512Mb of Random Access Memory? i heard that those OS... (1 Reply)
Discussion started by: I[X]ION
1 Replies

2. UNIX for Advanced & Expert Users

moving space from one partition to another

How can I move some space allocated to one partition to another, i.e. from "/var" to "/" . Thanks! (4 Replies)
Discussion started by: jason6792
4 Replies

3. Shell Programming and Scripting

Disk space for root partition

Hello, I am trying to monitor disk space for each node on the machine. I am able to get all individual nodes but for the '/' node. For example: df -k: bash-2.05b# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/xxx 4127108 2415340 1502120 62% / /dev/yyy ... (3 Replies)
Discussion started by: chiru_h
3 Replies

4. UNIX for Dummies Questions & Answers

Best ways of increasing space on a partition

Hi, On one of our solaris servers, the root partition has filled up,(it was poorly sized in the first place), Does anyone have any advice about the best way to add space to a partition. I'm sure I've read how to do this somewhere before but just can't remember...:( A colleague has suggested... (1 Reply)
Discussion started by: kenny123m
1 Replies

5. Red Hat

RHEL 5 supports only 2 TB space for a partition !

Dear Friends , I am using Redhat Ent Linux 5.0 with a EMC storage which HDD space is 4 TB. After Installing RHEL 5 , I get 4 TB space available but when I am going to create a partition then the OS show 2TB available space . I cannot create a partition above 2TB space . Is there any limitation... (3 Replies)
Discussion started by: shipon_97
3 Replies

6. UNIX for Dummies Questions & Answers

shifting space from one partition to other

hi My System is Sun Microsystems Inc. SunOS 5.10 Solaris Partition Info is /dev/vx/dsk/bootdg/var 27G 25G 1.2G 96% /var /dev/vx/dsk/bootdg/oravol 110G 54G 56G 49% /export/home I want to shift space 20G from /export/home to /var What should be the command ?? (2 Replies)
Discussion started by: kaushik02018
2 Replies

7. Slackware

Ideal partition sizes of 17 gb space.

I am planning to install slack 13.37 on an old stand-alone PIII (512 mb ram) with 17 gb disk space. I need to keep lotsa pdf, chm type e-books for programming with few other misc. documents. I'm going to use this system for my personal use. It has no network but I browse internet with cable... (0 Replies)
Discussion started by: vectrum
0 Replies

8. Linux

How to increase root space from another partition?

Hi OS Experts I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain here is o/p of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

9. Shell Programming and Scripting

How to consume all available space on partition?

Hi I'm doing some resilience testing and need to write a script to consume all of the available disk space on a partition and then to free it up again. This would need to be - Safe Dynamic, in that it calculates the free space prior to consuming it. I might want to go on to consume a... (7 Replies)
Discussion started by: bbq
7 Replies

10. Red Hat

Allot free space from one partition to other

I have a RHEL 5.3 machine with the following partitions and free space: Free space on the partitions / : 74GB /boot : 81MB /var : 73GB /home : 37GB /icat : 758MB /opt : 1.5GB Now is it possible to allot a free space of some other partitions to /opt? I want around 100 GB more space... (4 Replies)
Discussion started by: omniok
4 Replies
csx_Parse_CISTPL_DEVICEGEO_A(9F)			   Kernel Functions for Drivers 			  csx_Parse_CISTPL_DEVICEGEO_A(9F)

NAME
csx_Parse_CISTPL_DEVICEGEO_A - parse the Device Geo A tuple SYNOPSIS
#include <sys/pccard.h> int32_t csx_Parse_CISTPL_DEVICEGEO_A(client_handle_t ch, tuple_t *tp, cistpl_devicegeo_t *pt); INTERFACE LEVEL
Solaris DDI Specific (Solaris DDI) PARAMETERS
ch Client handle returned from csx_RegisterClient(9F). tp Pointer to a tuple_t structure (see tuple(9S)) returned by a call to csx_GetFirstTuple(9F) or csx_GetNextTuple(9F). pt Pointer to a cistpl_devicegeo_t structure which contains the parsed Device Geo A tuple information upon return from this function. DESCRIPTION
This function parses the Device Geo A tuple, CISTPL_DEVICEGEO_A, into a form usable by PC Card drivers. The CISTPL_DEVICEGEO_A tuple describes the device geometry of attribute memory partitions. STRUCTURE MEMBERS
The structure members of cistpl_devicegeo_t are: uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].bus; uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].ebs; uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].rbs; uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].wbs; uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].part; uint32_t info[CISTPL_DEVICEGEO_MAX_PARTITIONS].hwil; The fields are defined as follows: info[CISTPL_DEVICEGEO_MAX_PARTITIONS].bus This field indicates the card interface width in bytes for the given partition. info[CISTPL_DEVICEGEO_MAX_PARTITIONS].ebs This field indicates the minimum erase block size for the given partition. info[CISTPL_DEVICEGEO_MAX_PARTITIONS].rbs This field indicates the minimum read block size for the given partition. info[CISTPL_DEVICEGEO_MAX_PARTITIONS].wbs This field indicates the minimum write block size for the given partition. info[CISTPL_DEVICEGEO_MAX_PARTITIONS].part This field indicates the segment partition subdivisions for the given partition. info[CISTPL_DEVICEGEO_MAX_PARTITIONS].hwil This field indicates the hardware interleave for the given partition. RETURN VALUES
CS_SUCCESS Successful operation. CS_BAD_HANDLE Client handle is invalid. CS_UNKNOWN_TUPLE Parser does not know how to parse tuple. CS_NO_CARD No PC Card in socket. CS_NO_CIS No Card Information Structure (CIS) on PC Card. CS_UNSUPPORTED_FUNCTION No PCMCIA hardware installed. CONTEXT
This function may be called from user or kernel context. SEE ALSO
csx_GetFirstTuple(9F), csx_GetNextTuple(9F), csx_GetTupleData(9F), csx_Parse_CISTPL_DEVICEGEO(9F), csx_RegisterClient(9F), tuple(9S) PC Card 95 Standard, PCMCIA/JEIDA SunOS 5.11 16 May 1997 csx_Parse_CISTPL_DEVICEGEO_A(9F)
All times are GMT -4. The time now is 05:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy