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/
I really hate uppercase when it comes to filenames. It’s really simple to translate words to lowercase using perl’s “tr”.
my @FILES=`ls /path/to/bignames`;
foreach my $line (@FILES){
$line=trim($line);
if ($line ne "" && $line !~ /^./ && $line =~ /[A-Z]+/) {
my $smalline = $line;
$smalline =~ tr/[A-Z]/[a-z]/;
$out=`mv -v $line $smalline`;
}
and this is the complete rename-to-lowercase script.
Please read terms of use before downloading the script(s)
I did it in Centos 5.2 and RHEL 5.
see http://www.virtualbox.org/ticket/203
have you ever found that when you do a quick search in synaptics, you know the packages is there but they doesn’t show up in the search result? This probably a bug, but there’s workaround for this.
# update-apt-xapian-index -f
To check shared memory segment, semaphore array, and message queue limits, issue the ipcs -l command.
Modify the kernel parameters by adding the following entries to the default system control configuration file,
/etc/sysctl.conf:
kernel.sem = 250 256000 32 1024
Set the numbers as needed, and the above numbers are respectively :
1.max semaphores per array
2.max semaphores system wide
3.max ops per semop call
4.max number of arrays
where :
max semaphores system wide = max number of arrays x max semaphores/array
Run sysctl with -p parameter to load in sysctl settings from the default file /etc/sysctl.conf.
sysctl -p
The entries from the sysctl.conf file are read during startup by the network initialization script.
On some distributions you may be required to add sysctl -p in one of the system initialization files (for example, rc.local) so that kernel parameters are set after each reboot.
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!