VBoxHeadless - Running Virtual Machines With VirtualBox 2.0 On A Headless Ubuntu 8.04 Server (From HowtoForge)
VBoxHeadless - Running Virtual Machines With VirtualBox 2.0 On A Headless Ubuntu 8.04 Server
Hadirmu Tidak diundang, Jika ragu-ragu sila pulang!!
Ini blog suka hati aku. Bukan untuk tontonan umum. Kalau engkau masuk ke sini secara tak sengaja, SILA BERAMBUS DENGAN SOPAN sebelum merasa terhina dengan kutukan cacimaki keji dari aku.
Aku dah WARNING!!! Kalau kau nak baca juga, kau WAJIB 100% BERSETUJU dengan apa pun yang aku tulis dan bersumpah setia tak akan mempergunakan apa-apa kandungan blog ini untuk menjahanamkan aku. Jika kau tak bersetuju juga, Sila Pergi Jahanam dan BERAMBUS DENGAN SEGERA sebelum aku cabut urat kentut kau dan menyebabkan kau lumpuh seumur hidup.
Sudahlah, aku taknak membebel lagi. Kalau kau tak faham lagi, sila baca lagi ayat-ayat diatas sampai faham.
Baca lagi ayat diatas...
Aku dah WARNING!!! Kalau kau nak baca juga, kau WAJIB 100% BERSETUJU dengan apa pun yang aku tulis dan bersumpah setia tak akan mempergunakan apa-apa kandungan blog ini untuk menjahanamkan aku. Jika kau tak bersetuju juga, Sila Pergi Jahanam dan BERAMBUS DENGAN SEGERA sebelum aku cabut urat kentut kau dan menyebabkan kau lumpuh seumur hidup.
Sudahlah, aku taknak membebel lagi. Kalau kau tak faham lagi, sila baca lagi ayat-ayat diatas sampai faham.
Baca lagi ayat diatas...
Jumaat, 26 September 2008
Khamis, 25 September 2008
Rabu, 24 September 2008
Fixing Partition One On Ts-7260 sdcard image
The sdcard image consists of 3 partitions. I found that these partitions will somehow corrupted due to force reboot by watchdog. So, to fix the corrupted first partition is by rewrite it using 'dd' tool with the original partition image.
I have saved and keep the original image for the 1st partition here at http://jerungkun.googlepages.com/ts7260-fb-default.tar.gz
In order to use it. Download the image:
Next, extract the image:
Insert the sd card and check with fdisk -l:
From the fdisk output above, we can see the first partition is /dev/sdc1. so, to overwrite this partition, simply run this command:
That's all.. to make sure the other partition is in good condition too, just run fsck on em. But make sure u have already unmount em all first:
then run fsck:
that's all.. the card should be in good condition now... we can use it again without error. You should also do ths too before creating the image so all newly copied cards is in best conditions.
I have saved and keep the original image for the 1st partition here at http://jerungkun.googlepages.com/ts7260-fb-default.tar.gz
In order to use it. Download the image:
apogee@apogee-persiasys:~/Download$ wget -c http://jerungkun.googlepages.com/ts7260-fb-default.tar.gz
--2008-09-24 10:32:47-- http://jerungkun.googlepages.com/ts7260-fb-default.tar.gz
Resolving jerungkun.googlepages.com... 209.85.173.118
Connecting to jerungkun.googlepages.com|209.85.173.118|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 673013 (657K) [application/octet-stream]
Saving to: `ts7260-fb-default.tar.gz'
100%[=================================================================>] 673,013 60.6K/s in 11s
2008-09-24 10:32:59 (58.4 KB/s) - `ts7260-fb-default.tar.gz' saved [673013/673013]
apogee@apogee-persiasys:~/Download$
Next, extract the image:
apogee@apogee-persiasys:~/Download$ tar zxvf ts7260-fb-default.tar.gz
Insert the sd card and check with fdisk -l:
apogee@apogee-persiasys:~/Download$ fdisk -l
Disk /dev/sdc: 1015 MB, 1015808000 bytes
16 heads, 32 sectors/track, 3875 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 3875 987136 83 Linux
apogee@apogee-persiasys:~/Download$
From the fdisk output above, we can see the first partition is /dev/sdc1. so, to overwrite this partition, simply run this command:
apogee@apogee-persiasys:~/Download$ dd if=ts7260-fb-default of=/dev/sdc1
2808+1 records in
2808+1 records out
1438184 bytes (1.4 MB) copied, 0.958003 seconds, 1.5 MB/s
apogee@apogee-persiasys:~/Download$
That's all.. to make sure the other partition is in good condition too, just run fsck on em. But make sure u have already unmount em all first:
apogee@apogee-persiasys:~/Download$ sudo umount /dev/sdc2
[sudo] password for apogee:
umount: /dev/sdc2: not mounted
apogee@apogee-persiasys:~/Download$ sudo umount /dev/sdc3
umount: /dev/sdc3: not mounted
apogee@apogee-persiasys:~/Download$
then run fsck:
apogee@apogee-persiasys:~/Download$ fsck /dev/sdc2
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
/dev/sdc2 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc2: 117/128 files (5.1% non-contiguous), 989/1024 blocks
apogee@apogee-persiasys:~/Download$ fsck /dev/sdc3
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
/dev/sdc3: clean, 28501/242000 files, 484287/987136 blocks
that's all.. the card should be in good condition now... we can use it again without error. You should also do ths too before creating the image so all newly copied cards is in best conditions.
sambal:
debian-arm,
sdcard,
ts-7260
Jumaat, 19 September 2008
Khamis, 18 September 2008
copy, burn and resize SD Card Image
To copy the image
To burn the image..
the new sd card is 2GB while the image is 1GB... so, to resize partition table:
then to resize the filesystem:
ok, now we can use this sd card...
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ dd if=/dev/sdc of=sdimg-1gb-20080918.dd
1984000+0 records in
1984000+0 records out
1015808000 bytes (1.0 GB) copied, 103.249 seconds, 9.8 MB/s
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ ls
sdimg-1gb-20080918.dd
To burn the image..
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ fdisk -l
Disk /dev/sdc: 2032 MB, 2032664576 bytes
16 heads, 32 sectors/track, 7754 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 7754 1980160 83 Linux
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ dd if=sdimg-1gb-20080918.dd of=/dev/sdc
1984000+0 records in
1984000+0 records out
1015808000 bytes (1.0 GB) copied, 472.417 seconds, 2.2 MB/s
the new sd card is 2GB while the image is 1GB... so, to resize partition table:
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ sudo fdisk /dev/sdc
[sudo] password for apogee:
The number of cylinders for this disk is set to 7754.
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: 2032 MB, 2032664576 bytes
16 heads, 32 sectors/track, 7754 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 3875 987136 83 Linux
Command (m for help): d
Partition number (1-4): 3
Command (m for help): p
Disk /dev/sdc: 2032 MB, 2032664576 bytes
16 heads, 32 sectors/track, 7754 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
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (11-7754, default 11): 20
Last cylinder or +size or +sizeM or +sizeK (20-7754, default 7754):
Using default value 7754
Command (m for help): p
Disk /dev/sdc: 2032 MB, 2032664576 bytes
16 heads, 32 sectors/track, 7754 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 7754 1980160 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$
then to resize the filesystem:
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ ext2resize /dev/sdc3
ext2resize v1.1.19 - 2001/03/18 for EXT2FS 0.5b
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$
ok, now we can use this sd card...
howto add swapfile on linux
the board seems freezing and on the serial console will output so many lines of:
fixing it by adding swapfile
Adding Swap: 98296k swap-space (priority -1)
---------
the swapfile seems working, adding it to fstab...
Add this line on /etc/fstab
-----------
Got another problem with blkid
---------
working on fixing the blkid, seems like incorrect library... updating with
-------------
while testing the new swap, i the fskin server didn't reply to http request. so, I make 7 click and this is current result of free memory...
no more free physical memory... and it uses a lot of swap (about 10MB) for 7 clicked and unsent data due to no reply from PLUS server
however, the board didn't freeze anymore.
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
fixing it by adding swapfile
Adding Swap: 98296k swap-space (priority -1)
# dd if=/dev/zero of=/swapfile bs=1024 count=98304
# mkswap -L swapfile /swapfile
# swapon /swapfile
[...]
# swapoff /swapfile
# rm /swapfile
---------
the swapfile seems working, adding it to fstab...
Add this line on /etc/fstab
/swapfile none swap sw 0 0
-----------
Got another problem with blkid
root@raingauge:root# blkid
blkid: symbol lookup error: blkid: undefined symbol: blkid_dev_set_search
on the serial console it output:
end_request: I/O error, dev 1f:01 (mtdblock), sector 144
end_request: I/O error, dev 1f:01 (mtdblock), sector 145
end_request: I/O error, dev 1f:01 (mtdblock), sector 146
end_request: I/O error, dev 1f:01 (mtdblock), sector 147
end_request: I/O error, dev 1f:01 (mtdblock), sector 148
end_request: I/O error, dev 1f:01 (mtdblock), sector 149
end_request: I/O error, dev 1f:01 (mtdblock), sector 150
end_request: I/O error, dev 1f:01 (mtdblock), sector 151
end_request: I/O error, dev 1f:01 (mtdblock), sector 32
end_request: I/O error, dev 1f:01 (mtdblock), sector 33
end_request: I/O error, dev 1f:01 (mtdblock), sector 34
end_request: I/O error, dev 1f:01 (mtdblock), sector 35
end_request: I/O error, dev 1f:01 (mtdblock), sector 36
end_request: I/O error, dev 1f:01 (mtdblock), sector 37
end_request: I/O error, dev 1f:01 (mtdblock), sector 38
end_request: I/O error, dev 1f:01 (mtdblock), sector 39
---------
working on fixing the blkid, seems like incorrect library... updating with
root@raingauge:root# apt-get install libblkid1
then the blkid is ok
root@raingauge:root# blkid
/dev/sdcard0/disc0/part2: UUID="d72eee7f-551d-443f-b04f-fed6e5b4655a" TYPE="ext2"
/dev/sdcard0/disc0/part3: UUID="88a1a443-c693-41ef-8f08-917b98173b77" TYPE="ext2"
root@raingauge:root#
-------------
while testing the new swap, i the fskin server didn't reply to http request. so, I make 7 click and this is current result of free memory...
no more free physical memory... and it uses a lot of swap (about 10MB) for 7 clicked and unsent data due to no reply from PLUS server
root@raingauge:root# free -m
total used free shared buffers cached
Mem: 28 24 3 0 0 12
-/+ buffers/cache: 11 16
Swap: 95 10 85
however, the board didn't freeze anymore.
Just A Quick Howto Blog
This is just my quick howto blog... It is for my personal reference but I'm making it public for those who can digest it out...
sambal:
about