Flux rss
Bookmark Bookmark & Share
Astuzie Linux astucias Linux Linux-Tipps Astuces Linux Trucos de Linux

Mounting a CD-ROM drive

To mount a CD-ROM drive under Linux, log in as the system administrator, i.e. with the login "root".
It is then sufficient to mount the drive, i.e. to "capture" the content of the CD-ROM drive in a directory (most of the time /mnt/cdrom/) by typing in the following command:
mount -t iso9660 /dev/cdrom /mnt/cdrom
Do not forget to unmount the drive by using the command
umount /mnt/cdrom

Mounting a MS-DOS partition

Under Linux, it is possible to access MS-DOS partitions by mounting them in the Unix file system. To mount the partition /dev/hda1, it is sufficient to type:
mount -t msdos /dev/hda1 /mnt/hd
Do not forget to unmount the partition
umount /mnt/cdrom

Mounting a floppy disk drive

A floppy disk drive can be mounted just like a MS-DOS partition, and the data contained on a DOS formatted floppy disk can be accessed by using the following command:
mount -t msdos /dev/fd0 /mnt/fd
Do not forget to unmount the floppy disk drive
umount /mnt/fd.

Restarting the computer

To correctly restart the computer, it is sufficient to use the command "shutdown". For most Linux distributions, the keystroke sequence <CTRL> <ALT> <DEL> has been programmed as the equivalent of the command shutdown.
To quickly restart the computer, it is sufficient to type in "shutdown -r now".

Forcing recognition of the SCSI controller

In case the controllers have no bios, they are generally not detected by Linux, in which case detection can be forced by typing in the following at the LILO prompt:
boot: linux tmx8xx=<IRQ>,<adress>
tmx8xx represents a TMC-8xx controller; in case you have a different controller, you must know its name. IRQ represents the interruption of the controller and "addresses" the adress of its shared memory.

Creating an alias

First of all, what is an alias?
An alias is a shortcut which makes it possible to execute another command. The term may also cover other concepts, and an alias may also refer to a shortcut to an email.
The commands under Linux to mount a peripheral device are (as you have seen above) very long to type in.

Instead of typing the command:
"mount -t iso9660 /dev/cdrom /mnt/cdrom"
it is therefore sufficient to type in:
alias cdrom='mount -t iso9660 /dev/cdrom /mnt/cdrom'
it is therefore sufficient to type in "cdrom" to mount this peripheral device.

However, if you ask: Why should I type in this command if I have to declare it every time that I reinitialize the system?
It is actually sufficient to edit the file "/etc/bashrc" and add the following line:
alias cdrom='mount -t iso9660 /dev/cdrom /mnt/cdrom'

Last update on Thursday October 16, 2008 02:43:15 PM.This document entitled « Linux Tricks » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Linux - The Vi editor Introduction to Vi Despite its very limited ergonomics, Vi i is one of the most popular text editors texte under Unix type systems (with Emacs and pico). Under Linux, there is a free version of Vi called Vim (Vi Improved). Vi (pronounced vee-eye)... en.kioskea.net/contents/linux/linvi.php3
Linux commands Table of main Linux commands Command Description DOS equivalent ls lists the content of a directory dir cd change directory cd cd .. parent directory cd.. mkdir creates a new... en.kioskea.net/contents/linux/lincomm.php3
Linux - Compiling the kernel Compiling the kernel In this article, compiling the kernel under Linux is explained. The following explanations are based on version 2.4.20 of kernel, i.e. the most recent version of the kernel at the time this article was written (March 2003).... en.kioskea.net/contents/linux/linkernel.php3
Print Screen (Windows, Mac OS X and Unix/Linux)How to make a Print Screen (Windows, Mac OS X and Unix/Linux) What is a Print Screen? How to make a Print Screen (Windows) How to make a Print Screen (Mac OS X) How to make a Print Screen (Unix/Linux) Screen Capture Softwares What is a... en.kioskea.net/faq/sujet-141-print-screen-windows-mac-os-x-and-unix-linux
Log in remotely with SSH (Linux)Log in remotely with SSH (Linux) The commands below are relevant only if you have an existing account on the PC you want to connect and that a SSH server is installed. When using Linux the syntax is quite simple as the client part is... en.kioskea.net/faq/sujet-604-log-in-remotely-with-ssh-linux
[Linux]Restarting the network interface using command lines[Linux]Restarting the network interface using command lines When setting up a network, specially if you need to verify that a DHCP server assigns IP addresses correctly, restarting the network interface using command lines rather than the... en.kioskea.net/faq/sujet-1141-linux-restarting-the-network-interface-using-command-lines
Free Linux OS CD (Solved)Hello, Plz Post The Free Linux CD.My address Is mayani Road Petrol Pump Saraswati Lab Vita.Dist Sangali,Tal Khanapur. en.kioskea.net/forum/affich-50853-free-linux-os-cd
How to format linux and install xpHello, i would like to know if there is any way that i can get rid of inux fedora core 2 and instal windows xp instead? xp cd will just not boot no matter what? I have tried to get rid of fedora by going to linux command prompt. but fdisk does not... en.kioskea.net/forum/affich-29081-how-to-format-linux-and-install-xp
Download Damn Small LinuxWhat does it happen of your ancient PC when you think it is obsolete? Here is the resolution which will enrapture the unhappy possessors of the old processors, "Damn Small".It is a distribution of Linux conceived to be light because she can work on... en.kioskea.net/telecharger/telecharger-304-damn-small-linux
Download Avira AntiVir Personal free for Linux / FreeBSD / OpenBSD / SolarisFor Linux / FreeBSD / OpenBSD / Solaris Avira AntiVir PersonalEdition Classic is a very good and free antivirus which reliably protects your private computer against dangerous viruses, worms, Trojans, rootkits and costly dialers. en.kioskea.net/telecharger/telecharger-110-avira-antivir-personal-free-for-linux-freebsd-openbsd-solaris
Download DiskInternals Linux ReaderDiskInternals Linux Reader is a tool for Windows users to access their Linux partitions in read-only. Indeed, Linux provides access to Windows FAT 32 (reading and writing) or NTFS (reading and writing), but not the reverse. The program takes the form... en.kioskea.net/telecharger/telecharger-1817-diskinternals-linux-reader
Linux - Tree structure of filesFile hierarchy under Linux To ensury compatibility and portability, Linux systems comply with the sole FHS (File Hierarchy Standard) standard. The basic hierarchy is as follows: /the root, containing the main directories /bincontains... en.kioskea.net/contents/linux/linarb.php3
Introduction to LinuxHistory and genesis of Linux This entirely free operating system is the brainchild of Linus B.Torvalds. At the beginning of the 90s, Torvalds wanted to create his own operating system for his graduate project. Linus Torvalds intended to develop a... en.kioskea.net/contents/linux/linintro.php3
Linux: Preparation of the system prior to installationRequired hardware Linux does not require a state-of-the-art computer in minimal configuration: a 386SX processor or higher 4 MB of RAM (8 MB recommended) a hard disk controller and a hard disk with 20 MB of free space (100 MB recommended) (in... en.kioskea.net/contents/linux/lininstpre.php3