help wih linux terminal
Page 1 of 1 [ 5 posts ]
rat1953 wrote:
I have Ubuntu Linux 8.04 and I got Dosbox. I know how to mount a drive if you were in Windows but I don't know how to in Linux. Every time I try to create a directory from the terminal it say that no such file or folder exists. Can anyone help with this?
Curiously, I am still running Hardy Heron (Ubuntu 8.04) myself (due to some issues with the graphics card in this machine) and I have DOSBox installed. I don't have any of the front-ends installed, though.
Basically, Windows doesn't ever "mount a drive". What it does it to map a partition (within a drive) to one of its DOS "drive letters". You don't get to see the drive itself.
Conversely, under Linux, there is no equivalent of the drive letters.
http://en.wikipedia.org/wiki/Mount_point
If you just want to see what's in the partitions, they are probably already auto-mounted, somewhere under the /media directory. If they are not, you should be able to mount them by clicking on "Places", "Removable Media". If you are unclear about what exactly a drive looks like, "System", "Administration", "Partition Editor" is your friend (GPartEd).
Also, in a shell, just type "df" to see what you have got mounted.
Linux accesses the drives themselves via the /dev directory (structure). They are there, as things like /dev/sda, where the a(b,c,d) says which drive it is. The partitions are addressed as /dev/sda1, i.e. a digit (or more than one digit) is added to select the partition. The first four (1, 2, 3 and 4) are the "primary partitions". One of those may be the "extended partition", which can then have a chain of "secondary partitions" linked from it, which are given the numbers 5 onward, by sequential location within that chain. Linux NEVER deviates from this pattern. (The same sort of pattern is used within the GRUB bootloader system, but you must subtract one from the /dev/sda<number> partition numbers, as GRUB's system is the same, but starts counting at zero.)
===========
As for creating a directory, Orwell answered that question. That is, unless you meant something else?
_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer
Do you mean the DosBox "terminal"? If so, you need to create a folder for your "c" drive in your home directory, and use the "mount" command in dosbox to mount it as c. The syntax is "mount <driveletter> <directory>", so it should look something like "mount c /home/yourname/cdrive/". If you want dosbox to do this automatically every time it loads, find the "dosbox.conf" file, and enter the mount command under [autoexec].
DentArthurDent
Veteran
Joined: 26 Jul 2008
Age: 61
Gender: Male
Posts: 3,884
Location: Victoria, Australia
Hey Lau, thanks for the informative reply to the OP, it answered quite a few questions I have never asked.
_________________
"I'd take the awe of understanding over the awe of ignorance anyday"
Douglas Adams
"Religion is the impotence of the human mind to deal with occurrences it cannot understand" Karl Marx
