Now, computers do not store any state across reboots. Hard drives can be mounted in multiple locations, so doing that will not invalidate the default mount in the /mnt folder. Type mount to mount the hard drive with the specified label at the specified path. We can now mount the hard drive while referring to it by name. Run df again to verify the hard disk is now named: Once you've named your hard disk that name is also shown in the hard disk's tooltip. For most programs that need an address you can abbreviate the address, as long as it's still unique among the other components connected to the computer. Note that the 92a in the screen shot is the beginning of the hard drive's address. Run the program with the desired parameters, i.e. We'll use the -a option here, but you could also label it by providing the path to its default mount point in the /mnt folder. Run label to get the usage information of the labeling program. What we want to do now, is to assign a name to our hard drive, so we don't have to reference it by address all the time. That should be the address you saw in the tooltip, earlier. Among them you'll notice one that's only known by address (unlike the ROM and temporary file system). This program lists all present file systems and their current mount points. You don't have to remember that, it's just there for reference. You'll notice in the tooltip of the hard drive that it has been assigned an address (that shortened, alpha-numeric string). ![]() ![]() Note: all concepts in this tutorial also apply to floppy disks.įirst, insert a fresh hard drive into a computer: This tutorial will introduce the concept of labeling and mounting hard drives. While this may be enough for experimenting, you'll want more flexibility and comfort after a while. When you put a hard drive into a computer it will be automatically mounted in the /mnt folder, named after the first letters of its address. When writing programs you'll usually want to have your programs stick around, so the /tmp folder is no long-term solution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |