Wednesday, 11 August 2010

make bootable CD in win32

Usually we use mkisofs to make bootable CD in Linux. There is also mkisofs win32 package :

http://www.student.tugraz.at/thomas.plank/index_en.html

Download 3 zip files, save into d:\cdrtools folder and uncompress all files.
- cdrtools-xxx-win32-bin.zip
- dlls.zip
- DLL version 1.7.5

I use grub4DOS as boot loader, download it at http://sourceforge.net/projects/grub4dos/files/
Get the grub4dos-0.4.4.zip and uncompress. I will save the zip file into d:\grub4dos folder.

At DOS console, type

D:\cdrtools>copy d:\grub4dos\grlder
D:\cdrtools>mkisofs -R -b grldr -no-emul-boot -boot-load-size 4 -o grldr.iso .
Setting input-charset to 'UTF-8' from locale.
mkisofs: './grldr.iso' is the archive. Not dumped.
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 5027
Total directory bytes: 6144
Path table size(bytes): 34
Max brk space used 30000
4910 extents written (9 MB)

Caution : The last character of mkisofs command IS "."

Output file is grldr.iso. Burn the grldr.iso file into CD. Finished.

Monday, 2 August 2010

Debian 5 Lenny NFS

Just setup a NFS server on Debian Lenny, then mount the nfs folder and got error message :

support@client03:~$ sudo mount -t nfs 192.168.0.9:/media/HD /media/iso
mount.nfs: 192.168.0.9:/media/HD failed, reason given by server: Permission denied

Usually the problem is file /etc/exports, /etc/hosts.allow and /etc/hosts.deny

For file /etc/exports, usually many people say I can do like this to share the folder for while subnet :
/media/HD 192.168.0.0/24 (ro)

But it doesn't work.

In Debian Lenny, I have to make it as below. It solved the "Permission denied" problem.
/media/HD 192.168.0.0/255.255.255.0 (ro)