Re: Debian size and uSD

2008-10-17 Thread Alastair Johnson
Jeffrey Ratcliffe wrote:
> I bought myself a 4Gb uSD card and decided to have a go at moving the
> (full) 512Mb partition onto it, using
> 
> http://inferno.slug.org/cgi-bin/wiki?Drive_Backup_And_Cloning
> 
> as my reference. I backed up the 512Mb with no problem. The 4Gb card
> was not recognised, though; dmesg on the desktop produced:
> 
> [ 2460.876027] usb 5-8: reset high speed USB device using ehci_hcd and
> address 10
> [ 2461.010393] sd 5:0:0:0: Device offlined - not ready after error recovery
> [ 2461.010444] sd 5:0:0:0: rejecting I/O to offline device
> [ 2461.010462] sd 5:0:0:0: rejecting I/O to offline device
> [ 2461.010471] sd 5:0:0:0: rejecting I/O to offline device
> [ 2461.010477] sd 5:0:0:0: [sdb] READ CAPACITY failed
> [ 2461.010482] sd 5:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT
> driverbyte=DRIVER_OK,SUGGEST_OK
> [ 2461.010489] sd 5:0:0:0: [sdb] Sense not available.
> [ 2461.010496] sd 5:0:0:0: rejecting I/O to offline device
> [ 2461.010502] sd 5:0:0:0: [sdb] Write Protect is off
> [ 2461.010505] sd 5:0:0:0: [sdb] Mode Sense: 00 00 00 00
> [ 2461.010508] sd 5:0:0:0: [sdb] Assuming drive cache: write through
> [ 2461.010643] sd 5:0:0:0: [sdb] Attached SCSI removable disk
> [ 2461.010808] sd 5:0:0:0: Attached scsi generic sg3 type 0
> [ 2461.019731] sd 5:0:0:1: [sdc] Attached SCSI removable disk
> [ 2461.020480] sd 5:0:0:1: Attached scsi generic sg4 type 0
> [ 2461.035667] sd 5:0:0:2: [sdd] Attached SCSI removable disk
> [ 2461.036236] sd 5:0:0:2: Attached scsi generic sg5 type 0
> [ 2461.045093] sd 5:0:0:3: [sde] Attached SCSI removable disk
> [ 2461.045602] sd 5:0:0:3: Attached scsi generic sg6 type 0
> 
> OK, I thought, I'll install Debian from scratch, but this failed with:
> 
> ext2fs_mkdir: Attempt to read block from filesystem resulted in short
> read while creating root dir
> 
> Subsequent attempts fail with:
> 
> dd: writing '/dev/mmcblk0': Input/output error
> 1+0 records in
> 0+0 records out
> 
> What can I try before I give up and send the card back?

I had this problem with a Kingston 4GB card. There was a kernel patch a 
couple of weeks ago that seemed to solve this, although given the 
intermittent nature of the problem I may just have been unusually lucky. 
I've been using other cards since so can't give a longer term test 
report. It's in Andy's stable tree, but last I heard it was only in the 
unstable OM feed. I don't know which patch set Debian uses.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-15 Thread Jeffrey Ratcliffe
I bought myself a 4Gb uSD card and decided to have a go at moving the
(full) 512Mb partition onto it, using

http://inferno.slug.org/cgi-bin/wiki?Drive_Backup_And_Cloning

as my reference. I backed up the 512Mb with no problem. The 4Gb card
was not recognised, though; dmesg on the desktop produced:

[ 2460.876027] usb 5-8: reset high speed USB device using ehci_hcd and
address 10
[ 2461.010393] sd 5:0:0:0: Device offlined - not ready after error recovery
[ 2461.010444] sd 5:0:0:0: rejecting I/O to offline device
[ 2461.010462] sd 5:0:0:0: rejecting I/O to offline device
[ 2461.010471] sd 5:0:0:0: rejecting I/O to offline device
[ 2461.010477] sd 5:0:0:0: [sdb] READ CAPACITY failed
[ 2461.010482] sd 5:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT
driverbyte=DRIVER_OK,SUGGEST_OK
[ 2461.010489] sd 5:0:0:0: [sdb] Sense not available.
[ 2461.010496] sd 5:0:0:0: rejecting I/O to offline device
[ 2461.010502] sd 5:0:0:0: [sdb] Write Protect is off
[ 2461.010505] sd 5:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 2461.010508] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 2461.010643] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 2461.010808] sd 5:0:0:0: Attached scsi generic sg3 type 0
[ 2461.019731] sd 5:0:0:1: [sdc] Attached SCSI removable disk
[ 2461.020480] sd 5:0:0:1: Attached scsi generic sg4 type 0
[ 2461.035667] sd 5:0:0:2: [sdd] Attached SCSI removable disk
[ 2461.036236] sd 5:0:0:2: Attached scsi generic sg5 type 0
[ 2461.045093] sd 5:0:0:3: [sde] Attached SCSI removable disk
[ 2461.045602] sd 5:0:0:3: Attached scsi generic sg6 type 0

OK, I thought, I'll install Debian from scratch, but this failed with:

ext2fs_mkdir: Attempt to read block from filesystem resulted in short
read while creating root dir

Subsequent attempts fail with:

dd: writing '/dev/mmcblk0': Input/output error
1+0 records in
0+0 records out

What can I try before I give up and send the card back?

Regards

Jeff

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-07 Thread Sarton O'Brien
On Thursday 02 October 2008 07:43:42 Atilla Filiz wrote:
> A consistency check with fdisk yielded that the size of the partition and
> the size of the filesystem do not match, and advised me to run e2fsck.
> e2fsck said there are no problems. I ran fdisk and e2fsck on FR-debian.
> gparted on my py sees the partition as 2GB. darn it.

Although the process you chose is a good exercise for block copying/boundary 
resizing and the like ... you could have avoided the problems and had the 
system running within half an hour using tar :)

TBH, it takes me about 15 mins :)

Sarton

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-02 Thread Atilla Filiz
playing around with resize2fs worked, thanks.

On Wed, Oct 1, 2008 at 11:52 PM, arne anka <[EMAIL PROTECTED]> wrote:

> > A consistency check with fdisk yielded that the size of the partition and
> > the size of the filesystem do not match, and advised me to run e2fsck.
> > e2fsck said there are no problems. I ran fdisk and e2fsck on FR-debian.
> > gparted on my py sees the partition as 2GB. darn it.
>
> so? your partition might be 2g, but your fs still is 512mb.
> somebody explicitely mentioned to use resize2fs to make partitzion size
> and fs size match.
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>



-- 
-
Bu mesaj UTF-8 ile kodlanmıştır
-
Atilla Filiz
Technische Universiteit Eindhoven
Embedded Systems, Master's Programme

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-01 Thread arne anka
> A consistency check with fdisk yielded that the size of the partition and
> the size of the filesystem do not match, and advised me to run e2fsck.
> e2fsck said there are no problems. I ran fdisk and e2fsck on FR-debian.
> gparted on my py sees the partition as 2GB. darn it.

so? your partition might be 2g, but your fs still is 512mb.
somebody explicitely mentioned to use resize2fs to make partitzion size  
and fs size match.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-01 Thread Atilla Filiz
A consistency check with fdisk yielded that the size of the partition and
the size of the filesystem do not match, and advised me to run e2fsck.
e2fsck said there are no problems. I ran fdisk and e2fsck on FR-debian.
gparted on my py sees the partition as 2GB. darn it.

On Wed, Oct 1, 2008 at 5:39 PM, Atilla Filiz <[EMAIL PROTECTED]> wrote:

> I did
> dd if=/dev/sdb2 of=/dev/sdf2
> and it booted but i still have a problem. sdb was a 512M card and sdf is
> 2G. After copying, my pc sees it as 2G but FR sees it as 512M. Runing some
> partition software now(testdisk).
>
>
> On Wed, Oct 1, 2008 at 4:09 PM, Nicola Mfb <[EMAIL PROTECTED]> wrote:
>
>> 2008/10/1 Atilla Filiz <[EMAIL PROTECTED]>
>>
>>> I can use two card readers, no problem. would you suggest me tar
>>> /dev/sdb2 and untar it into /dev/sdc2? Or is
>>> 'dd if=/dev/sdb of=/dev/sdc' better
>>>
>>
>> You may dd if=/dev/sdb2 of=/dev/sdc2, and after resize2fs /dev/sdc2.
>>
>>  Nicola
>>
>> ___
>> Openmoko community mailing list
>> community@lists.openmoko.org
>> http://lists.openmoko.org/mailman/listinfo/community
>>
>>
>
>
> --
> -
> Bu mesaj UTF-8 ile kodlanmıştır
> -
> Atilla Filiz
> Technische Universiteit Eindhoven
> Embedded Systems, Master's Programme
> 
>



-- 
-
Bu mesaj UTF-8 ile kodlanmıştır
-
Atilla Filiz
Technische Universiteit Eindhoven
Embedded Systems, Master's Programme

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-01 Thread Atilla Filiz
I did
dd if=/dev/sdb2 of=/dev/sdf2
and it booted but i still have a problem. sdb was a 512M card and sdf is 2G.
After copying, my pc sees it as 2G but FR sees it as 512M. Runing some
partition software now(testdisk).


On Wed, Oct 1, 2008 at 4:09 PM, Nicola Mfb <[EMAIL PROTECTED]> wrote:

> 2008/10/1 Atilla Filiz <[EMAIL PROTECTED]>
>
>> I can use two card readers, no problem. would you suggest me tar /dev/sdb2
>> and untar it into /dev/sdc2? Or is
>> 'dd if=/dev/sdb of=/dev/sdc' better
>>
>
> You may dd if=/dev/sdb2 of=/dev/sdc2, and after resize2fs /dev/sdc2.
>
>  Nicola
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
>


-- 
-
Bu mesaj UTF-8 ile kodlanmıştır
-
Atilla Filiz
Technische Universiteit Eindhoven
Embedded Systems, Master's Programme

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-01 Thread Nicola Mfb
2008/10/1 Atilla Filiz <[EMAIL PROTECTED]>

> I can use two card readers, no problem. would you suggest me tar /dev/sdb2
> and untar it into /dev/sdc2? Or is
> 'dd if=/dev/sdb of=/dev/sdc' better
>

You may dd if=/dev/sdb2 of=/dev/sdc2, and after resize2fs /dev/sdc2.

 Nicola
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-01 Thread Atilla Filiz
I can use two card readers, no problem. would you suggest me tar /dev/sdb2
and untar it into /dev/sdc2? Or is
'dd if=/dev/sdb of=/dev/sdc' better

On Wed, Oct 1, 2008 at 1:15 PM, <[EMAIL PROTECTED]> wrote:

>
> I usually do "cp -ax ..." with success. I've cloned entire operating
> systems like this in the past without problems. Haven't tried with OM
> yet, but it worked with a couple of Ubuntu installations. Takes a long
> time, though... ;)
> Obviously, you preferably do it with the filesystem offline... booting
> from somewhere else.
>
> Citando arne anka <[EMAIL PROTECTED]>:
>
> >> Another thing is I bought a 2G uSD and I want to move my debian system
> to
> >> that card. If I manually partition it (8MB fat and rest ext2) and just
> >> copy
> >> contents of 512M, would it work? Or maybe i can copy an image using dd
> >> and
> >> then somehow resize the partition. Anyone tried migrating from one SD to
> >> another?
> >
> > do not use plain cp -- it will most likely result in some corruption of
> > special files.
> > your best bet would be either tar or rsync, depending of your usecase.
> >
> > for rsync (and tar on-the-fly) you could copy the partitions with dd,
> > mount the images with loop and transfer your data.
> >
> > ___
> > Openmoko community mailing list
> > community@lists.openmoko.org
> > http://lists.openmoko.org/mailman/listinfo/community
> >
>
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>



-- 
-
Bu mesaj UTF-8 ile kodlanmıştır
-
Atilla Filiz
Technische Universiteit Eindhoven
Embedded Systems, Master's Programme

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-01 Thread vasco . nevoa

I usually do "cp -ax ..." with success. I've cloned entire operating  
systems like this in the past without problems. Haven't tried with OM  
yet, but it worked with a couple of Ubuntu installations. Takes a long  
time, though... ;)
Obviously, you preferably do it with the filesystem offline... booting  
from somewhere else.

Citando arne anka <[EMAIL PROTECTED]>:

>> Another thing is I bought a 2G uSD and I want to move my debian system to
>> that card. If I manually partition it (8MB fat and rest ext2) and just
>> copy
>> contents of 512M, would it work? Or maybe i can copy an image using dd
>> and
>> then somehow resize the partition. Anyone tried migrating from one SD to
>> another?
>
> do not use plain cp -- it will most likely result in some corruption of
> special files.
> your best bet would be either tar or rsync, depending of your usecase.
>
> for rsync (and tar on-the-fly) you could copy the partitions with dd,
> mount the images with loop and transfer your data.
>
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-10-01 Thread arne anka
> Another thing is I bought a 2G uSD and I want to move my debian system to
> that card. If I manually partition it (8MB fat and rest ext2) and just  
> copy
> contents of 512M, would it work? Or maybe i can copy an image using dd  
> and
> then somehow resize the partition. Anyone tried migrating from one SD to
> another?

do not use plain cp -- it will most likely result in some corruption of  
special files.
your best bet would be either tar or rsync, depending of your usecase.

for rsync (and tar on-the-fly) you could copy the partitions with dd,  
mount the images with loop and transfer your data.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Debian size and uSD

2008-09-30 Thread Sarton O'Brien
On Wednesday 01 October 2008 08:26:05 Atilla Filiz wrote:
> After I installed Debian on my stock uSD, i realized that Debian is _BIG_.
> There are tons of libraries installed. I think a lighter Debian is
> possible, any ideas?
> Another thing is I bought a 2G uSD and I want to move my debian system to
> that card. If I manually partition it (8MB fat and rest ext2) and just copy
> contents of 512M, would it work? Or maybe i can copy an image using dd and
> then somehow resize the partition. Anyone tried migrating from one SD to
> another?

You could use copy but tar tends to be a better alternative. Just tar up your 
rootfs and then extract to your new card. Under most *nix variants you need to 
extract using the 'p' parameter to preserve file permissions. Also make sure 
you are not mounted with the option 'nodev'.

With a new u-boot it's also possible to consolidate the kernel and rootfs into 
one partition to ease kernel upgrades.

Sarton

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Debian size and uSD

2008-09-30 Thread Atilla Filiz
After I installed Debian on my stock uSD, i realized that Debian is _BIG_.
There are tons of libraries installed. I think a lighter Debian is possible,
any ideas?
Another thing is I bought a 2G uSD and I want to move my debian system to
that card. If I manually partition it (8MB fat and rest ext2) and just copy
contents of 512M, would it work? Or maybe i can copy an image using dd and
then somehow resize the partition. Anyone tried migrating from one SD to
another?

-- 
-
Bu mesaj UTF-8 ile kodlanmıştır
-
Atilla Filiz
Technische Universiteit Eindhoven
Embedded Systems, Master's Programme

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community