ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: How to copy Debian SD card

To:
Subject: Re: [ts-7000] Re: How to copy Debian SD card
From: Ollie Eisman <>
Date: Thu, 17 Aug 2006 06:52:07 -0700 (PDT)
Many thanks to you and Eddie for this information. 

I have the TS-7260 with one SD card slot.  I first
copied the SD card contents to a file on my FC5 host
and then wrote it to the new card.  (I only have one
SD card interface).

Everything seemed to work until I did this:

# /sbin/e2fsck -d /dev/sda3 
e2fsck 1.38 (30-Jun-2005)
Couldn't find ext2 superblock, trying backup blocks...
/sbin/e2fsck: Bad magic number in super-block while
trying to open /dev/sda3

The superblock could not be read or does not describe
a correct ext2
filesystem.  If the device is valid and it really
contains an ext2
filesystem (and not swap or ufs or something else),
then the superblock
is corrupt, and you might try running e2fsck with an
alternate superblock:
    e2fsck -b 8193 <device>



Here's everything up until that point:

# Inserted 256MB source card into reader
su
dd if=/dev/sda of=/root/sd.dd bs=1M

# Removed 256MB card and put 512MB card into reader
dd if=/root/sd.dd of=/dev/sda bs=1M

# Repartitioned new SD card
/sin/fdisk /dev/sda

The number of cylinders for this disk is set to 1946.
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/sda: 510 MB, 510132224 bytes
16 heads, 32 sectors/track, 1946 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

   Device Boot      Start         End      Blocks   Id
 System
/dev/sda1   *           1           3         767+  da
 Non-FS data
/dev/sda2               5           6         512   da
 Non-FS data
/dev/sda3               9         954      242176   83
 Linux

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

Command (m for help): p

Disk /dev/sda: 510 MB, 510132224 bytes
16 heads, 32 sectors/track, 1946 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

   Device Boot      Start         End      Blocks   Id
 System
/dev/sda1   *           1           3         767+  da
 Non-FS data
/dev/sda2               5           6         512   da
 Non-FS data

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

Command (m for help):p

Disk /dev/sda: 510 MB, 510132224 bytes
16 heads, 32 sectors/track, 1946 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

   Device Boot      Start         End      Blocks   Id
 System
/dev/sda1   *           1           3         767+  da
 Non-FS data
/dev/sda2               5           6         512   da
 Non-FS data
/dev/sda3               7        1946      496640   83
 Linux

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

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with
error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.


--- PeterElliot <> wrote:

> Hi Ollie,
> 
> I posted directions on the TS-7xxx WIKI at (Look for
> Copying Boot 
> SDcard):
> 
> http://www.seiner.com/ts7000/index.php/HomePage
> 
> Regards,
> 
> PJE
> 
> --- In  Ollie Eisman
> <> wrote:
> >
> > Hi,
> > 
> > I purchased the Debian development 256MB SD card
> from
> > TS and would like to copy it over to a 512MB SD
> card
> > since I am running out of room. (I am assuming
> this is
> > okay/legal to do)
> > 
> > I think there are 3 partitions on the original
> card. 
> > /dev/sda3 looks like the main root filesystem but
> I'm
> > not sure what's on the first two. They show up as
> > /dev/sd1-3 on my FC5 system with a USB SD card
> reader.
> > Is there a good way to get these onto a larger
> card
> > using dd or something similar?
> > 
> > Any suggestions appreciated.
> > 
> > Ollie
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com
> >
> 
> 
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
Yahoo! Groups Links

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

<*> 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