Open main menu

CDOT Wiki β

Changes

OPS235 Lab 1 - Fedora17

211 bytes added, 15:11, 2 September 2010
Instructions
# At the command prompt, enter the command pwd and press return. This command shows the so-called present working directory or current working directory. Record the present working directory of the shell running on the terminal window. As we have not yet changed directories this should also be your users home directory. (Also indicated by the ~ character in the prompt)
{{Admon/important|Using Superuser Privilege|Throughout this course, you may need to execute commands using the privileges of the the administrative user (username "root", also called the "superuser"). To switch from your account to the root account, type the command: <code>su -</code>
After switching user notice and make note of the change in your shell prompt. Also note the difference in output for the <code>whoami</code> and <code>pwd</code> commands.
}}
{{Admon/noteimportant|Disabling the Auto-mounting of Devices|At Normally, when a storage device such as a USB drive is inserted, the system will automatically detect the storage device and use it. However, for this point lab, we need to disable the ability for our linux Fedora system to automatically detect and mount removeable media. This storage devices; this would interfere with the learning objectives of the rest of the lab. To do disable auto-detection of devices, this enter the command: <code>killall devkit-disks-daemon</code>. '''You will need to do this again if you reboot during this lab.'''}}
=== Investigation 1: How does Linux enable you to access two different drives without using a drive designator? ===
{{Admon/importanttip|NTFS Flash Drives|Most flash drives are formatted using the FAT (or "VFAT" or "FAT32") filesystem for compatibility with a wide range of computer systems. However, some drives may be formatted with another filesystem type such as NTFS (primarily used on Windows systems). If, in the following steps, your drive does not mount with the type "vfat", try again with type "ntfs".}}
# Type the command mount. Describe the output of the command in your lab log. What do the fields of data represent? Use the man page for the mount command and google searches to find this information
=== Investigation 2: How do you create a vfat or ext3 filesystem? ===
{{Admon/tip | Flash drives with no partition table | If your device name ends in a letter (for example, it is <code>/dev/sdb</code> instead of <code>/dev/sdb1</code>), add <code>-I</code> to the <code>mkfs</code> commands in this section. This is because your USB flash drive does not have a partition table, which normally causes an error; the <code>-I</code> option tells mkfs to proceed anyways.}}
# Unmount your USB flash drive.
===Investigation 3: How do you create an ext3 filesystem on a USB flash drive with a volume label?===
{{Admon/tip | Tip: manpage| Check the man page manpage for <code>dumpe2fs</code> using the command: <code>man dumpe2fs</code>.}}
# Shutdown your computer. (Under the "System" menu)
# Insert your removable SATA hard disk, remove your USB flash drive and restart the computer. (Leave your "Live CD" in the computer)
* Review the man page for the fdisk command.
{{Admon/caution | Important/warning! | The following operation will erase the contents of your hard disk. If you have any useful data stored on your disk, you must back it up first or use another hard disk that does not contain useful data on it.|Do not plan on sharing the hard disk with the Windows course! You will be doing lots of tasks that may cause you to lose your data.}}
# Enter the command fdisk /dev/sda to start the hard disk partition program.
# At the fdisk command prompt, enter the letter '''p''' to print out the current partition table of the hard disk. If there are any partitions, use the '''d''' option to delete all of them, starting with the highest partition number first.