msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

19 Mar 2009 Backup partition table

This post describes how you can backup your partition table for future recovery.

Backup

This example describes how you can backup the disk partition table on /dev/sda

dd if=/dev/sda of=sda.mbr bs=512 count=1

It’s also useful to keep a human readable copy of the disk layout for future reference

sudo fdisk -l > partitions.lst

Restore

This example shows how you can recover your file system using your partition table backup.

dd if=sda.mbr of=/dev/sda bs=512 count=1

This is a nice way to keep the information about your file system and will it help you in the future if you get disk corruption.
This does not only apply to linux partitions but all types of partitions.

Tags: , , ,

Posted by

18 Mar 2009 Change file date in linux using touch

To change the date on all files in a folder to 19th February 2009 at 18:00 using the linux command touch

# touch * -t "200902191800"

It’s a nice way to correct file dates.
Replace * with the actual file name if you don’t want to correct all files in the current folder.

Tags:

Posted by

16 Mar 2009 Valid Flash

I’ve gotten tired of my Flashpresentation movies not being valid HTML. After some research and a tip from a friend of mine I found this solution to the problem.

<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="288" height="128" alt="banner" />
</object>

It works great and shows a image file if Flash support isn’t available.

Source: http://www.ambience.sk/flash-valid.htm

Tags: ,

Posted by