![]() |
2007-02-17
, 13:26
|
|
Posts: 701 |
Thanked: 21 times |
Joined on Feb 2006
@ Italy
|
#32
|
![]() |
2007-02-17
, 13:46
|
|
Posts: 91 |
Thanked: 2 times |
Joined on Jan 2007
@ Spain
|
#33
|
ok, so... I managed to work around the problem of the package auth by giving the command 'apt-get -d -y --force-yes install tar' (giving apt-get -d -y install tar' resulted in a 'E: There are problems and -y was used without --force-yes' error). now when giving the command 'dpkg -x tar*.deb /tar-temp/' I get 'dpkg-deb: failed to read archive `tar*.deb': No such file or directory'
![]() |
2007-02-17
, 20:20
|
Posts: 108 |
Thanked: 3 times |
Joined on Feb 2007
|
#34
|
~ $ cd /media
/media $ ls
mmc1 mmc2
/media $ cd mmc2
/media/mmc2 $ ls
/media/mmc2 $ cd /
/ $ ls
bin floppy media root tar-temp
boot home mnt sbin tmp
dev initrd opt srv usr
etc lib proc sys var
/ $ cd /var/cache/apt/archives/
/var/cache/apt/archives $ ls
lock partial
![]() |
2007-02-17
, 21:56
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#35
|
I tried but wasn't able, so that I decided to stick to ext2. Ext3 is supposed to work as well, but maybe the e2fsprogs package is not updated to ext3? Don't know for sure. I prefered to put only what was completely verified. Nevertheless, if somebody is able to mount it on ext3, then we could add ext3 as an alternative to choose.
![]() |
2007-02-17
, 22:11
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#36
|
1) How can I save a "snapshot" backup of the system? Is it somehow
possible to restore a "broken" system by booting the 770 from the internal
flash and rewriting a working snapshot from the backup to the ext2
partition of the MMC (e.g. via ssh), and then rebooting again from the
ext2 partition? (PS: For "snapshot" backup of the system I mean something
like this)
/path/to/gnu/tar -zcvf /media/mmc1/snapshot.tar.gz -C /opt .
$ ssh >snapshot.tar.gz root@n770 /path/to/gnu/tar -zcvf - -C /opt .
tar ztvf snapshot.tar.gz
![]() |
2007-02-17
, 22:49
|
|
Posts: 91 |
Thanked: 2 times |
Joined on Jan 2007
@ Spain
|
#37
|
Yes, you can snapshot system via GNU tar in similar way like you clone the system on the beginning - boot from flash, mount ext2 partition to /opt and thenCode:/path/to/gnu/tar -zcvf /media/mmc1/snapshot.tar.gz -C /opt .
or you can run it over ssh, something like this should work
Code:$ ssh >snapshot.tar.gz root@n770 /path/to/gnu/tar -zcvf - -C /opt .
![]() |
2007-02-17
, 22:54
|
|
Posts: 91 |
Thanked: 2 times |
Joined on Jan 2007
@ Spain
|
#38
|
![]() |
2007-02-17
, 23:11
|
|
Posts: 91 |
Thanked: 2 times |
Joined on Jan 2007
@ Spain
|
#39
|
![]() |
2007-02-17
, 23:20
|
|
Posts: 91 |
Thanked: 2 times |
Joined on Jan 2007
@ Spain
|
#40
|
ok, so... I managed to work around the problem of the package auth by giving the command 'apt-get -d -y --force-yes install tar' (giving apt-get -d -y install tar' resulted in a 'E: There are problems and -y was used without --force-yes' error). now when giving the command 'dpkg -x tar*.deb /tar-temp/' I get 'dpkg-deb: failed to read archive `tar*.deb': No such file or directory'
under /var/cache/apt/archives/ I have just a file named 'lock' and an empty directory named 'partial'...
I should say that since procedure wasn't working, I turned off the tablet at the tar installation. I re-mounted all the directories and all went fine. Do I have to execute again initfs_flash?
any advice?
Changing the number 15000 in the partition size for a 30000 would have partitioned the card more equitatively. Since 15000cylinders x 32KBytes/cylinder = 480MBytes, and 30000cylinders x 32KBytes/cylinder = 960MBytes. This will be the size of your VFAT partition. That's only useful for USB compatibility with your PC. For example to copy media files (films, or music albums) from the PC to the Tablet (or viceversa).
As your mmc2 ext2 partition card is now the NEW SYSTEM, it is mounted as the root file system directly ON /.
This means that if you want to know where your stuff is, you must do:
$ cd /
$ ls
bin home mnt srv
boot initrd opt sys
dev lib proc tmp
...
Of course that /media/mmc2/ is empty, since we haven't mounted anything on that directory. You must distinguish between real physical block devices, and mounting points (or directories).
/media/mmc2 is not a block device but a directory. This directory is the desired mounting point for the ext2 partition, that is for the real block device /dev/mmcblk0p2.
But now that you've already boot the system from the mmc2 (that is /dev/mmcblk0p2). It won't be mounted to /media/mmc2 (why should it be needed?). Since your mmc2 (that is the real block device /dev/mmcblk0p2) is now mounted as the rootfs on /.
I hope Fanoush helps us again in this thread.
Please Fanoush tell us what you think about this useful feature. I think that the GNUtar thing would be enough. But I need some extra help, since there's not enough space for the backup in my device. So that I need to send it to my PC via SSH. Could you please read the link and help us a bit?
https://help.ubuntu.com/community/BackupYourSystem/TAR
Salut
Sebas
Last edited by sebastian.linux; 2007-02-20 at 22:18.