maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Clone OS to SD Deb!! Boot from SD made EASY!! (https://talk.maemo.org/showthread.php?t=19639)

penguinbait 2008-06-03 01:52

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Machster (Post 188177)
I downloaded install-tools to flash but Application manager complains that the file is corrupted with 0kb. File manager says it is 4.8MB. The log states that it is not a debian format archive.


redownload the file, I am assuming you used the browser, I am suspecting its the browser, wget seems to work every time?

anyway its corrupted, try again

Machster 2008-06-03 02:23

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by penguinbait (Post 188180)
redownload the file, I am assuming you used the browser, I am suspecting its the browser, wget seems to work every time?

anyway its corrupted, try again

Yup, I am using the browser. Seven or eight times now it seems to download fine. Maybe I'll try again tomorrow?

hazman11 2008-06-04 00:31

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
I know that I have no doubt done something wrong, but having spent a couple of days going through the forums trying to fix, I am lost.

I have an N810 and I installed the Clone OS to SD Deb to the internal card. I received a message saying it failed. Rebooted and tried again. Same thing.

I have reflashed by N810 and tried to reformat the internal card and every time I reboot, the internal card only has 120MB approx of available space.

I have tried to format in windows (and it says it is successful), but then when i reboot it says still only has the 120MB approx.

I have tried to repartition in Xterm, but get the same result.

I have attached the log from the last attempt at installing. there seems to be a couple of glaring problems, but being a novice, I have no idea what to do to fix.

Any help would be greatly apreciated.

*****

hildon-application-manager 2.0.2
W: Couldn't stat source package list http://repository.maemo.org chinook/user Packages (/var/lib/apt/lists/repository.maemo.org_dists_chinook_user_binary-armel_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
/usr/bin/dpkg-deb -f '/home/user/MyDocs/.documents/install-tools.deb'
/usr/bin/dpkg --install '/home/user/MyDocs/.documents/install-tools.deb'
(Reading database ... 16611 files and directories currently installed.)
Preparing to replace install-tools 1.0.0-2 (using .../.documents/install-tools.deb) ...
Unpacking replacement install-tools ...
Setting up install-tools (1.0.0-2) ...
./
./lib/
./lib/libext2fs.so.2.4
./lib/libe2p.so.2.3
./lib/libext2fs.so.2
./lib/libe2p.so.2
./lib/libblkid.so.1.0
./lib/libblkid.so.1
./lib/libcom_err.so.2.1
./lib/libcom_err.so.2
./lib/libss.so.2.0
./lib/libss.so.2
./lib/libuuid.so.1.2
./lib/libuuid.so.1
./usr/
./usr/share/
./usr/share/locale/
./usr/share/locale/cs/
./usr/share/locale/cs/LC_MESSAGES/
./usr/share/locale/cs/LC_MESSAGES/e2fsprogs.mo
./usr/share/locale/de/
./usr/share/locale/de/LC_MESSAGES/
./usr/share/locale/de/LC_MESSAGES/e2fsprogs.mo
./usr/share/locale/es/
./usr/share/locale/es/LC_MESSAGES/
./usr/share/locale/es/LC_MESSAGES/e2fsprogs.mo
./usr/share/locale/fr/
./usr/share/locale/fr/LC_MESSAGES/
./usr/share/locale/fr/LC_MESSAGES/e2fsprogs.mo
./usr/share/locale/it/
./usr/share/locale/it/LC_MESSAGES/
./usr/share/locale/it/LC_MESSAGES/e2fsprogs.mo
./usr/share/locale/sv/
./usr/share/locale/sv/LC_MESSAGES/
./usr/share/locale/sv/LC_MESSAGES/e2fsprogs.mo
./usr/share/locale/tr/
./usr/share/locale/tr/LC_MESSAGES/
./usr/share/locale/tr/LC_MESSAGES/e2fsprogs.mo
./usr/share/locale/pl/
./usr/share/locale/pl/LC_MESSAGES/
./usr/share/locale/pl/LC_MESSAGES/e2fsprogs.mo
./usr/share/initrd-tools/
./usr/share/initrd-tools/scripts/
./usr/share/initrd-tools/scripts/e2fsprogs
./usr/share/e2fsprogs/
./usr/share/e2fsprogs/initrd.ext3-add-journal
./usr/bin/
./usr/bin/chattr
./usr/bin/lsattr
./usr/bin/uuidgen
./usr/sbin/
./usr/sbin/mklost+found
./usr/sbin/filefrag
./usr/lib/
./usr/lib/e2initrd_helper
./sbin/
./sbin/e2fsck
./sbin/fsck.ext2
./sbin/fsck.ext3
./sbin/debugfs
./sbin/mke2fs
./sbin/badblocks
./sbin/tune2fs
./sbin/dumpe2fs
./sbin/logsave
./sbin/e2image
./sbin/fsck
./sbin/mkfs.ext2
./sbin/mkfs.ext3
./sbin/e2label
./sbin/findfs
./sbin/resize2fs
./sbin/blkid
etc/
etc/init.d/
etc/init.d/local.sh
etc/init.d/locald.sh
etc/rc2.d/
etc/rc2.d/S90local
root/.linus/linus.wav
install-tools/
install-tools/README.txt
install-tools/utelnetd.osso-RX-44.2007-44.tgz
install-tools/part-inst.sh~
install-tools/to_remove.lst
install-tools/bootmenu.conf.n8x0.example
install-tools/initfs.osso-RX-44.2007-46.tgz
install-tools/initfs.osso-n770.2006-48.tgz
install-tools/initfs_flash~
install-tools/dropbear.osso-RX-34.2007-24.tgz
install-tools/initfs.bootmenu.jffs2
install-tools/dropbear.osso-RX-44.2007-49.tgz
install-tools/dropbear.osso-RX-44.2007-44.tgz
install-tools/bootmenu.sh
install-tools/utelnetd.osso-RX-34.2007-38.tgz
install-tools/initfs.osso-RX-34.2007-38.tgz
install-tools/utelnetd.osso-RX-34.2007-24.tgz
install-tools/initfs.osso-n770.2006-25.tgz
install-tools/utelnetd.osso-RX-44.2007-49.tgz
install-tools/initfs.osso-n770.2006-38.tgz
install-tools/mkfs.jffs2
install-tools/initfs.osso-RX-34.2007-10.tgz
install-tools/flash_eraseall
install-tools/nanddump
install-tools/bootmenu.conf.n770.example
install-tools/tar
install-tools/initfs.osso-RX-44.2007-44.tgz
install-tools/dropbear.osso-RX-44.2007-46.tgz
install-tools/initfs.osso-RX-34.2006-51.tgz
install-tools/utelnetd.osso-RX-44.2007-43.tgz
install-tools/part-inst.sh
install-tools/initfs.osso-RX-44.2007-43.tgz
install-tools/bootmenu.conf
install-tools/nandwrite
install-tools/dropbear.osso-RX-44.2007-43.tgz
install-tools/initfs_flash
install-tools/dropbear.osso-n770.2006-48.tgz
install-tools/utelnetd.osso-n770.2006-25.tgz
install-tools/dropbear.osso-n770.2006-38.tgz
install-tools/dropbear.osso-RX-34.2007-10.tgz
install-tools/initfs.orig.jffs2
install-tools/utelnetd.osso-RX-34.2007-10.tgz
install-tools/bootmenu.conf~
install-tools/utelnetd.osso-n770.2006-38.tgz
install-tools/utelnetd.osso-n770.2006-48.tgz
install-tools/initfs.osso-RX-44.2007-49.tgz
install-tools/initfs.osso-RX-34.2007-24.tgz
install-tools/sumtool
install-tools/dropbear.osso-RX-34.2007-38.tgz
install-tools/utelnetd.osso-RX-44.2007-46.tgz
install-tools/dropbear.osso-n770.2006-25.tgz
BLKRRPART: Input/output error
read: Input/output error

sfdisk: read error on /dev/mmcblk0 - cannot read sector 0
/dev/mmcblk0: unrecognized partition table type
No partitions found
BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) multi-call binary

Usage: umount [flags] FILESYSTEM|DIRECTORY

Checking that no-one is using this disk right now ...
BLKRRPART: Input/output error
OK
read: Input/output error

Disk /dev/mmcblk0: 61440 cylinders, 4 heads, 16 sectors/track

sfdisk: read error on /dev/mmcblk0 - cannot read sector 0
/dev/mmcblk0: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 0+ 3839 3840- 122879+ 6 FAT16
/dev/mmcblk0p2 3840 57599 53760 1720320 83 Linux
/dev/mmcblk0p3 57600 61439 3840 122880 82 Linux swap / Solaris
/dev/mmcblk0p4 0 - 0 0 0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
read: Input/output error

sfdisk: read error on /dev/mmcblk0 - cannot read sector 0
Re-reading the partition table ...
BLKRRPART: Input/output error

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

IT APPEARS EVERYTHING WENT SMOOTHLY AND YOUR PARTITIONS ARE NOW CREATED

LETS START THE FORMATTING PROCESS

BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) multi-call binary

Usage: umount [flags] FILESYSTEM|DIRECTORY

fsck 1.37 (21-Mar-2005)
open /dev/mmcblk0p1:No such file or directory
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
fsck 1.37 (21-Mar-2005)
e2fsck 1.37 (21-Mar-2005)
fsck.ext2: No such file or directory while trying to open /dev/mmcblk0p2

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>

/dev/mmcblk0p1: No such file or directory
mkfs.msdos 2.11 (12 Mar 2005)
mke2fs 1.37 (21-Mar-2005)
Could not stat /dev/mmcblk0p2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
mkswap: can't open '/dev/mmcblk0p3': No such file or directory
swapon: can't stat '/dev/mmcblk0p3': No such file or directory
BLKRRPART: Input/output error
mkdir: cannot create directory '/device': File exists
mkdir: cannot create directory '/flash': File exists
insmod: cannot insert '/mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko': File exists (-1): File exists
insmod: cannot insert '/mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko': File exists (-1): File exists
mount: mounting /dev/mmcblk0p2 on /device failed
ERROR
SD CARD IS IN USE - SAVE DEB TO FLASH AND RE-RUN
ERROR
dpkg: error processing install-tools (--install):
subprocess post-installation script returned error exit status 99
Errors were encountered while processing:
install-tools
W: Couldn't stat source package list http://repository.maemo.org chinook/user Packages (/var/lib/apt/lists/repository.maemo.org_dists_chinook_user_binary-armel_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org chinook/user Packages (/var/lib/apt/lists/repository.maemo.org_dists_chinook_user_binary-armel_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems

Machster 2008-06-04 00:40

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Tonight l was able to download the file and install it. Booting from the new SD card is working. However, I have 2 questions:


1. Using apt-get now I am getting this message in this example:
$ sudo apt-get install canola2
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg /), is another process using it?


[Edit: Nevermind about #1. I must have had Application Manager running in the background.]

2. I had KDE installed using flash and a different SD card. How can I reinstall it? Can I just copy the 2 directories from the old card to the new card somewhere?

penguinbait 2008-06-04 19:12

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by hazman11 (Post 188502)
I know that I have no doubt done something wrong, but having spent a couple of days going through the forums trying to fix, I am lost.

I have an N810 and I installed the Clone OS to SD Deb to the internal card. I received a message saying it failed. Rebooted and tried again. Same thing.

I have reflashed by N810 and tried to reformat the internal card and every time I reboot, the internal card only has 120MB approx of available space.

I have tried to format in windows (and it says it is successful), but then when i reboot it says still only has the 120MB approx.

I have tried to repartition in Xterm, but get the same result.

I have attached the log from the last attempt at installing. there seems to be a couple of glaring problems, but being a novice, I have no idea what to do to fix.

Any help would be greatly apreciated.

*****


BLKRRPART: Input/output error
read: Input/output error


sfdisk: read error on /dev/mmcblk0 - cannot read sector 0
/dev/mmcblk0: unrecognized partition table type
No partitions found
BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) multi-call binary

Usage: umount [flags] FILESYSTEM|DIRECTORY

Checking that no-one is using this disk right now ...
BLKRRPART: Input/output error
OK
read: Input/output error


Disk /dev/mmcblk0: 61440 cylinders, 4 heads, 16 sectors/track

sfdisk: read error on /dev/mmcblk0 - cannot read sector 0
/dev/mmcblk0: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 0+ 3839 3840- 122879+ 6 FAT16
/dev/mmcblk0p2 3840 57599 53760 1720320 83 Linux
/dev/mmcblk0p3 57600 61439 3840 122880 82 Linux swap / Solaris
/dev/mmcblk0p4 0 - 0 0 0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
read: Input/output error

sfdisk: read error on /dev/mmcblk0 - cannot read sector 0
Re-reading the partition table ...
BLKRRPART: Input/output error

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

IT APPEARS EVERYTHING WENT SMOOTHLY AND YOUR PARTITIONS ARE NOW CREATED

LETS START THE FORMATTING PROCESS

BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) multi-call binary

Usage: umount [flags] FILESYSTEM|DIRECTORY

fsck 1.37 (21-Mar-2005)
open /dev/mmcblk0p1:No such file or directory
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
fsck 1.37 (21-Mar-2005)
e2fsck 1.37 (21-Mar-2005)
fsck.ext2: No such file or directory while trying to open /dev/mmcblk0p2

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>

/dev/mmcblk0p1: No such file or directory
mkfs.msdos 2.11 (12 Mar 2005)
mke2fs 1.37 (21-Mar-2005)
Could not stat /dev/mmcblk0p2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
mkswap: can't open '/dev/mmcblk0p3': No such file or directory
swapon: can't stat '/dev/mmcblk0p3': No such file or directory
BLKRRPART: Input/output error
mkdir: cannot create directory '/device': File exists
mkdir: cannot create directory '/flash': File exists
insmod: cannot insert '/mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko': File exists (-1): File exists
insmod: cannot insert '/mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko': File exists (-1): File exists
mount: mounting /dev/mmcblk0p2 on /device failed
ERROR
SD CARD IS IN USE - SAVE DEB TO FLASH AND RE-RUN
ERROR
dpkg: error processing install-tools (--install):
subprocess post-installation script returned error exit status 99
Errors were encountered while processing:
install-tools
W: Couldn't stat source package list http://repository.maemo.org chinook/user Packages (/var/lib/apt/lists/repository.maemo.org_dists_chinook_user_binary-armel_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org chinook/user Packages (/var/lib/apt/lists/repository.maemo.org_dists_chinook_user_binary-armel_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems


It appears your SD card is corrupt

penguinbait 2008-06-04 19:21

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by Machster (Post 188504)

2. I had KDE installed using flash and a different SD card. How can I reinstall it? Can I just copy the 2 directories from the old card to the new card somewhere?

I am not sure if this would work, as I have stated you should remove that version of KDE prior to booting from SD.

The KDE easy install version is not meant to run from boot from SD. You should just install v3, via KDE v3 installer

http://www.internettablettalk.com/fo...ad.php?t=20317

hazman11 2008-06-05 13:07

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Is there anyway to re-format?

At present I can't download any programs as it is trying to use that card to d/l them. I don't seem to have the option that has been discussed previously to change that setting in Application Manager.

Any other suggestions to change the system to use the MMC1 to download packages?

thanks for any help

penguinbait 2008-06-05 15:06

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by hazman11 (Post 188959)
Is there anyway to re-format?

At present I can't download any programs as it is trying to use that card to d/l them. I don't seem to have the option that has been discussed previously to change that setting in Application Manager.

Any other suggestions to change the system to use the MMC1 to download packages?

thanks for any help



I had a problem on my wife's 810 where the internal 2GB became readonly. The only way to fix was fdisk and reformat the internal 2GB.

I find it hard to believe the internal 2GB card is corrupt totally.

Since you cannot install the deb to fix it, look at the install tools advanced edition :)

This can be used from the command line, provided you have root access.

http://www.internettablettalk.com/fo...ad.php?t=20534

If you do not already have becomeroot or some other root access, you would need to put the device in R&D mode so it can be fixed.

If you send me a PM with a way to contact you, (IM like AIM yahoo google something) I will try to walk you through this if you like.?

st5150 2008-06-07 21:46

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Can anyone help me with this? On my 810 I installed install-tools-N810e.deb and cloned to my external 8gig card just fine. Then after some thought I realized I'd be better off cloning the OS and running it off of the internal 2gig card instead. I tried to install install-tools.deb but got an error. I tried uninstalling install-tools-N810e.deb from app manager with no luck. I tried disabling the 128mb of swap I had on the internal 2gig card with no luck. Anyone know how I can clone to the internal 2gig card now?

EDIT: No clue what changed, but I tried it one more time several hours later and it worked. Only difference from last time is I had no pending ssh sessions into the NIT :shrug:

penguinbait 2008-06-08 18:29

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by st5150 (Post 189659)
Can anyone help me with this? On my 810 I installed install-tools-N810e.deb and cloned to my external 8gig card just fine. Then after some thought I realized I'd be better off cloning the OS and running it off of the internal 2gig card instead. I tried to install install-tools.deb but got an error. I tried uninstalling install-tools-N810e.deb from app manager with no luck. I tried disabling the 128mb of swap I had on the internal 2gig card with no luck. Anyone know how I can clone to the internal 2gig card now?

EDIT: No clue what changed, but I tried it one more time several hours later and it worked. Only difference from last time is I had no pending ssh sessions into the NIT :shrug:

If you are using install-tools.deb, you cannot have a card in the external slot, of it will fail.

Not sure what your problems was though? could that have been it?

Posting application log is always helpful :)


All times are GMT. The time now is 13:28.

vBulletin® Version 3.8.8