In the process, we might have to tell Linux what kind of filesystem to
look for.
Example: Mounting a CD-ROM
As a simple demonstration, we'll go through mounting a CD-ROM, such as the
one you may have used to install Debian. You'll need to be root to do
this, so be careful; whenever you're root, you have the power to
manipulate the whole system, not just your own files. Also, these commands
assume there's a CD in your drive; you should put one in the drive now.
Then start with the following command:
su
If you haven't already, you need to either log in as root or gain root
privileges with the su (super user) command. If you use su, enter the root
password when prompted.
ls /cdrom
Use this command to see what's in the /cdrom directory before you start.
If you don't have a /cdrom directory, you may have to make one using
mkdir /cdrom.
mount
Simply typing mount with no arguments lists the currently mounted
filesystems.
mount -t iso9660 CD-device /cdrom
For this command, you should substitute the name of your CD-ROM device for
CD-device in the above command line.
Pages:
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171