Page 1 of 1 [ 5 posts ] 

rat1953
Butterfly
Butterfly

User avatar

Joined: 21 Feb 2010
Gender: Male
Posts: 11

25 Feb 2010, 8:51 am

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?



Orwell
Veteran
Veteran

User avatar

Joined: 8 Aug 2007
Age: 36
Gender: Male
Posts: 12,518
Location: Room 101

25 Feb 2010, 11:04 am

To create a directory type "mkdir foo" without the quotes and with foo being the name of the directory.


_________________
WAR IS PEACE
FREEDOM IS SLAVERY
IGNORANCE IS STRENGTH


lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 77
Gender: Male
Posts: 9,798
Location: Somerset UK

25 Feb 2010, 3:03 pm

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


scubasteve
Veteran
Veteran

User avatar

Joined: 17 Dec 2009
Gender: Male
Posts: 1,001
Location: San Francisco

26 Feb 2010, 10:50 am

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
Veteran

User avatar

Joined: 26 Jul 2008
Age: 61
Gender: Male
Posts: 3,884
Location: Victoria, Australia

27 Feb 2010, 3:12 am

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