Wednesday, December 30, 2009
Sunday, December 27, 2009
How to Convert .BIN/.CUE Files to .ISO in Ubuntu
An ISO image is an archive file (a.k.a. disk image) of an optical disc using a conventional ISO (International Organization for Standardization ) format that is supported by many software vendors. ISO image files typically have a file extension of .ISO. Occasionally, you might come across a disc image in the BIN format. While there are ways to use BIN/CUE’s in Linux, it is much easier to convert them to the standard ISO format.
bchunk (BinChunker)
CD image format conversion from bin/cue to iso/cdrThe bchunk package contains a UNIX/C rewrite of the BinChunker program. BinChunker converts a CD image in a .bin/.cue format (sometimes .raw/.cue) into a set of .iso and .cdr/.wav tracks. The .bin/.cue format is used by some non-UNIX CD-writing software, but is not supported on most other CD-writing programs.
Install bchunk using the following command
sudo aptitude install bchunk
This will complete the installation.
Using bchunk
bchunk syntax
bchunk [-v] [-p] [-r] [-w] [-s]
Available options
-v - Makes binchunker print some more unnecessary messages, which should not be of interest for anyone.
-w - Makes binchunker write audio tracks in WAV format.
-s - Makes binchunker swap byte order in the samples of audio tracks.
-p - Makes binchunker go into PSX mode and truncate MODE2/2352 tracks to 2336 bytes at offset 0 instead of normal 2048 bytes at offset 24.
-r - Makes binchunker output MODE2/2352 tracks in raw format, from offset 0 for 2352 bytes. Good for MPEG/VCD.
Bchunk Example
bchunk IMAGE.bin IMAGE.cue IMAGE.iso
Using CDemu
You can also use CDemu to do this and the ubuntu ppa as follows
deb http://ppa.launchpad.net/cdemu/ubuntu hardy main
deb-src http://ppa.launchpad.net/cdemu/ubuntu hardy main
source:- http://www.ubuntugeek.com/how-to-convert-bincue-files-to-iso-in-ubuntu.html
bchunk (BinChunker)
CD image format conversion from bin/cue to iso/cdrThe bchunk package contains a UNIX/C rewrite of the BinChunker program. BinChunker converts a CD image in a .bin/.cue format (sometimes .raw/.cue) into a set of .iso and .cdr/.wav tracks. The .bin/.cue format is used by some non-UNIX CD-writing software, but is not supported on most other CD-writing programs.
Install bchunk using the following command
sudo aptitude install bchunk
This will complete the installation.
Using bchunk
bchunk syntax
bchunk [-v] [-p] [-r] [-w] [-s]
Available options
-v - Makes binchunker print some more unnecessary messages, which should not be of interest for anyone.
-w - Makes binchunker write audio tracks in WAV format.
-s - Makes binchunker swap byte order in the samples of audio tracks.
-p - Makes binchunker go into PSX mode and truncate MODE2/2352 tracks to 2336 bytes at offset 0 instead of normal 2048 bytes at offset 24.
-r - Makes binchunker output MODE2/2352 tracks in raw format, from offset 0 for 2352 bytes. Good for MPEG/VCD.
Bchunk Example
bchunk IMAGE.bin IMAGE.cue IMAGE.iso
Using CDemu
You can also use CDemu to do this and the ubuntu ppa as follows
deb http://ppa.launchpad.net/cdemu/ubuntu hardy main
deb-src http://ppa.launchpad.net/cdemu/ubuntu hardy main
source:- http://www.ubuntugeek.com/how-to-convert-bincue-files-to-iso-in-ubuntu.html
Saturday, December 26, 2009
File system layout in a linux partition

annalissa
now is this same layout/structure used for both primary and logical partitions ?
onebuck
Simplistically, a partition is nothing more than a container. Within that container you will construct a 'filesystem' that will be used to support the system. On a hard disk subsystem you can have multiple partitions, which are limited by the OS definitions. Look at the partition link for a detailed definition.
see:- http://en.wikipedia.org/wiki/Partition_%28computing%29
aragorn
Yes, they have the same layout. The only difference between a primary and logical partition is that a primary partition has its partition table entries - i.e. the beginning and end of the partition - listed in the partition table of the master boot record of the hard disk it sits
on, while a logical partition has its partition table entries listed in an extended partition container, which itself is a (special kind of) primary partition.
The Linux kernel doesn't care about whether a partition is either primary or logical, or whethr it's an LVM logical volume for that matter. (Note: LVM "Logical Volume Management") is an abstraction layer on top of the existing partitioning layer.)
Why daemon ?
Neil
Does anyone know why processes that run and wait for input are called Daemons? Just curious.
neil markwick
DAEMON
------
/day'mn/ or /dee'mn/ (From the mythological meaning, later rationalised as the acronym "Disk And Execution MONitor") A program that is not invoked explicitly, but lies dormant waiting for some condition(s) to occur. The idea is that the perpetrator of the condition need not be aware that a daemon is lurking (though often a program will commit an action only because it knows that it will implicitly invoke a daemon).
For example, under ITS writing a file on the LPT spooler's directory would invoke the spooling daemon, which would then print the file. The advantage is that programs wanting files printed need neither compete for access to, nor understand any idiosyncrasies of, the LPT. They simply enter their implicit requests and let the daemon decide what to do with them. Daemons are usually spawned automatically by the system, and may either live forever or be regenerated at intervals.
Unix systems run many daemons, chiefly to handle requests for services from other hosts on a network. Most of these are now started as required by a single real daemon, inetd, rather than running continuously. Examples are cron (local timed command execution), rshd (remote command
execution), rlogind and telnetd (remote login), ftpd, nfsd (file transfer), lpd (printing).
Does anyone know why processes that run and wait for input are called Daemons? Just curious.
neil markwick
DAEMON
------
/day'mn/ or /dee'mn/ (From the mythological meaning, later rationalised as the acronym "Disk And Execution MONitor") A program that is not invoked explicitly, but lies dormant waiting for some condition(s) to occur. The idea is that the perpetrator of the condition need not be aware that a daemon is lurking (though often a program will commit an action only because it knows that it will implicitly invoke a daemon).
For example, under ITS writing a file on the LPT spooler's directory would invoke the spooling daemon, which would then print the file. The advantage is that programs wanting files printed need neither compete for access to, nor understand any idiosyncrasies of, the LPT. They simply enter their implicit requests and let the daemon decide what to do with them. Daemons are usually spawned automatically by the system, and may either live forever or be regenerated at intervals.
Unix systems run many daemons, chiefly to handle requests for services from other hosts on a network. Most of these are now started as required by a single real daemon, inetd, rather than running continuously. Examples are cron (local timed command execution), rshd (remote command
execution), rlogind and telnetd (remote login), ftpd, nfsd (file transfer), lpd (printing).
Tuesday, December 15, 2009
/etc/resolv.conf
Ex:-
search domain.tld west.domain.tld
domain domain.tld
nameserver ip address
see man resolv.conf
search domain.tld west.domain.tld
domain domain.tld
nameserver ip address
see man resolv.conf
digg - command line dns client
dig similar to nslookup in batch mode, by default returns more information than nslookup
dig mx vtc.com
dig mail.yahoo.com ubuntu.com
dig @192.168.220.2 www.vtc.com
how to trace delegation using dig ?
ex:- dig +trace mail.yahoo.com
typing dig with no option , does a look up on the root of the namespace
dig mx vtc.com
dig mail.yahoo.com ubuntu.com
dig @192.168.220.2 www.vtc.com
how to trace delegation using dig ?
ex:- dig +trace mail.yahoo.com
typing dig with no option , does a look up on the root of the namespace
Saturday, December 12, 2009
Thursday, December 10, 2009
How to change target of a symbolic link ?
dandyrandy
Is it possible to change the target of a symbolic link?
What I currently have is:
/home/Data1
/home/Data2
/home/Stores
In the Stores directory, I did: ln -s /home/Data1 /home/Stores/abc
$ pwd
/home/Stores
$ ls -latr
lrwxrwxrwx 1 dandy dandy 46 Feb 12 16:38 abc -> /home/Data1
I want to now change that target to:
abc -> /home/Data2
BUT, I don't want to do have to delete the link and re-create it to the new target. I just want to rename/change/modify the target. Is it possible?
fimblo
I normally delete the symlink and re-create it on one line, minimizing the time the link does not exist:
rm mysymlink ; ln -s mytargetfile mysymlink
I suppose you could write a little hack which does it in one go, but I've never heard of one which is included in standard POSIX systems...
shamrock
ln -s /home/Data1 /home/Stores/abc
ln -f -s /home/Data2 /home/Stores/abc
see:- http://en.wikibooks.org/wiki/LPI_Linux_Certification/Create_&_Change_Hard_&_Symbolic_Links
Is it possible to change the target of a symbolic link?
What I currently have is:
/home/Data1
/home/Data2
/home/Stores
In the Stores directory, I did: ln -s /home/Data1 /home/Stores/abc
$ pwd
/home/Stores
$ ls -latr
lrwxrwxrwx 1 dandy dandy 46 Feb 12 16:38 abc -> /home/Data1
I want to now change that target to:
abc -> /home/Data2
BUT, I don't want to do have to delete the link and re-create it to the new target. I just want to rename/change/modify the target. Is it possible?
fimblo
I normally delete the symlink and re-create it on one line, minimizing the time the link does not exist:
rm mysymlink ; ln -s mytargetfile mysymlink
I suppose you could write a little hack which does it in one go, but I've never heard of one which is included in standard POSIX systems...
shamrock
ln -s /home/Data1 /home/Stores/abc
ln -f -s /home/Data2 /home/Stores/abc
see:- http://en.wikibooks.org/wiki/LPI_Linux_Certification/Create_&_Change_Hard_&_Symbolic_Links
Wednesday, December 9, 2009
Basic Web Server On Ubuntu 9.04 With Zend Framework
see:- http://www.howtoforge.com/basic-web-server-on-ubuntu-9.04-with-zend-framework
Subscribe to:
Comments (Atom)
