ts-7000
[Top] [All Lists]

[ts-7000] Re: How to copy SD card with different geometry?

To:
Subject: [ts-7000] Re: How to copy SD card with different geometry?
From: "whiffwaffle" <>
Date: Sun, 01 Mar 2009 01:41:15 -0000
Here is exactly what I'm doing. My comments are in [].

[sdimage-new.dd was downloaded from Technologics web site]

:/home/ron/prog/images/catnet7400# dd if=sdimage-new.dd
of=/dev/sdc
487936+0 records in                                                             
 
487936+0 records out                                                            
 
249823232 bytes (250 MB) copied, 133.403 s, 1.9 MB/s                            
 
:/home/ron/prog/images/catnet7400# fdisk /dev/sdc                 
 

The number of cylinders for this disk is set to 3906.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:               
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs            
   (e.g., DOS FDISK, OS/2 FDISK)                               

Command (m for help): p

Disk /dev/sdc: 1023 MB, 1023934464 bytes
16 heads, 32 sectors/track, 3906 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x00000000                  

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1           6        1520   da  Non-FS data
/dev/sdc2               7          10        1024   da  Non-FS data
/dev/sdc3              20         953      239104   83  Linux      

Command (m for help): d
Partition number (1-4): 3

Command (m for help): n
Command action         
   e   extended        
   p   primary partition (1-4)
p                             
Partition number (1-4): 3     
First cylinder (11-3906, default 11): 20
Last cylinder, +cylinders or +size{K,M,G} (20-3906, default 3906): 
Using default value 3906                                           

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.                             
:/home/ron/prog/images/catnet7400# e2fsck /dev/sdc3
e2fsck 1.41.3 (12-Oct-2008)                                      
/dev/sdc3: clean, 15063/60000 files, 218678/239104 blocks        
:/home/ron/prog/images/catnet7400# e2fsck -f /dev/sdc3
e2fsck 1.41.3 (12-Oct-2008)                                         
Pass 1: Checking inodes, blocks, and sizes                          
Pass 2: Checking directory structure                                
Pass 3: Checking directory connectivity                             
Pass 3A: Optimizing directories                                     
Pass 4: Checking reference counts                                   
Pass 5: Checking group summary information                          

/dev/sdc3: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdc3: 15063/60000 files (0.6% non-contiguous), 218704/239104
blocks
:/home/ron/prog/images/catnet7400# resize2fs /dev/sdc3    
resize2fs 1.41.3 (12-Oct-2008)                                          
Resizing the filesystem on /dev/sdc3 to 995072 (1k) blocks.             
The filesystem on /dev/sdc3 is now 995072 blocks long.                  

[At this point I put the card in the 7400. It boots and apparently
works fine. I remove power, it boots back up and locks up during fsck.
I then put it back in the pc]

:/home/ron/prog/images/catnet7400# fsck /dev/sdc3
fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/sdc3 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 188544 (Attempt to read block from filesystem
resulted in short read) while getting next inode from scan.  Ignore
error<y>? yes

Force rewrite<y>? yes

Error writing block 188544 (Attempt to write block from filesystem
resulted in short write) while getting next inode from scan.  Ignore
error<y>? yes

Error reading block 188545 (Attempt to read block from filesystem
resulted in short read) while getting next inode from scan.  Ignore
error<y>? yes

Force rewrite<y>? yes

Error writing block 188545 (Attempt to write block from filesystem
resulted in short write) while getting next inode from scan.  Ignore
error<y>? yes

Error reading block 188546 (Attempt to read block from filesystem
resulted in short read) while getting next inode from scan.  Ignore
error<y>? yes

Force rewrite<y>? yes

Error writing block 188546 (Attempt to write block from filesystem
resulted in short write) while getting next inode from scan.  Ignore
error<y>? yes

Error reading block 188547 (Attempt to read block from filesystem
resulted in short read) while getting next inode from scan.  Ignore
error<y>?


It gets many errors like this and is now unusable.





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU