The fastest way to do it :
# mkdosfs -C floppydisk.img 1440
# mount -o loop floppydisk.img /media/cdrom
# cp /path/to/files/* /media/cdrom/
# umount /media/cdrom
note: assuming /media/cdrom path is exists (most likely so), and you have root access.
credit: http://untitledfinale.wordpress.com/2007/10/09/create-mount-and-copy-floppy-disks-images-under-linux/
The grub corrupted or replaced by another boot loader? follow this steps to fix it.
- Boot the system using any linux live having grub installed in it.
- Under the root user, execute “grub” to access the grub prompt.
- Use “find /boot/grub/stage1″ command in the grub prompt to find where the file is. The result should be like (hd0,2), (hd0,0), etc
- Use “root (hd0,2)” command, the (h0,2) taken according to the result in 3rd step.
- Use “setup (hd0,2)” command to install grub in the partition, or just (hd0) to install it on the Master Boot Record (MBR) of the disk 0.
good luck!
Replication is one of the MySQL technology to replicate the whole database, whether it will be used for load balancing, data backup, or High Availability (need 3rd party software or script to switch the connection).
This post sill show you a step-by-step installation of MySQL in Sun Solaris. I’m using MySQL 5.0.51a in this post, but it is applicable to other versions. First, download the MySQL from http://dev.mysql.com/downloads or your favorite mirror closest to you.
Read more…
I thought changing the machine’s hostname is as simple as I usually did in linux, it turns out not that easy. In solaris, I have to modify the hostname in at least 3 files:
- /etc/hostname.[interface name]
- /etc/hosts
- /etc/nodename
Even more for an older solaris versions, I have to modify these also:
- /etc/net/ticlts/hosts
- /etc/net/ticots/hosts
- /etc/net/ticotsord/hosts
- /etc/inet/ipnodes
phuuuh…
The HP UX is bundled with several network adminitration tool:
- lanscan : to see MAC Adress, interface status, and hardware path
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x00306EC32104 0 UP lan0 snap0 1 ETHER Yes 119
- ifconfig : looks like the same command in linux, to see of configure the IP Addresses, turning on/off the NIC, etc.
# ifconfig lan0
lan0: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
inet 150.150.8.1 netmask ffff0000 broadcast 150.150.255.255
- lanadmin : to see detailed LAN interfaces of the machine
LAN INTERFACE STATUS DISPLAY
Tue , Jun 17,2008 09:12:05
PPA Number = 0
Description = lan0 HP PCI 10/100Base-TX Core [10BASE-T,HD,AUTO,TT=1500]
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 10000000
Station Address = 0x306ec32104
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 1186783
Inbound Octets = 42032376
Inbound Unicast Packets = 15518
Inbound Non-Unicast Packets = 501152
Inbound Discards = 1
Inbound Errors = 0
Inbound Unknown Protocols = 14605
Outbound Octets = 1719024
Outbound Unicast Packets = 17140
Outbound Non-Unicast Packets = 722
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
Ethernet-like Statistics Group
Index = 1
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 1053
Multiple Collision Frames = 99
Deferred Transmissions = 136
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 0
Frames Too Long = 0
Internal MAC Receive Errors = 0
- linkloop : a tool to tests layer 2 connectivity
# linkloop 0x00108303aabf
Link connectivity to LAN station: 0x00108303aabf
– OK