LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2008, 10:03 AM   #1
Crystal_Bits
LQ Newbie
 
Registered: Dec 2008
Location: Grand Rapids Michigan
Distribution: PC/OS
Posts: 5

Rep: Reputation: 1
How do I mount a second hard drive? (PC/OS : Ubuntu)


I have FreeDOS installed on a second internal hard drive that is recognized (/dev/sdb) but not mounted. My primary hard drive is 20G Linux ext3 and swap. The second is 5 different partitions, all fat16 or fat32.

I cannot access the second drive without a live CD (win 98 or FreeDOS). I am sure there is a simple way I can mount it and run my DOS programs from the console if I can figure out how to mount it and change my fstab file so it will always be available.

Who has the knowledge to help me out?

Last edited by Crystal_Bits; 12-22-2008 at 10:25 AM.
 
Old 12-22-2008, 11:05 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,121

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
First of all, you do not mount a hard drive. You mount a file system. You need to know the devices that represent the partitions on sdb. They will be, for example, sdb1 sdb5 sdb6 etc.

You can run the 'df' command to find out the devices.

You need a mount point. Decide where in your linux system you want to see each partition. You make a mount point with mkdir command.

Then you issue a mount command for each partition. If you want this to happen each time you boot linux, then as root edit the /etc/fstab file and add an entry for each partition.

Dos programs will not run under linux. You might be able to get some, or all to run under wine, or some other environment, but they will not run directly on linux.

Here is a sample of a fat file system that mounts in my fstab file.

Quote:
/dev/sdb1 /mnt/pictures vfat defaults 0 0
The first part is the partition. Next is the mount point. Next is the file system type. The rest is the defaults, that work for me.

Hope this helps.
 
Old 12-22-2008, 01:02 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,061

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
the linux kernal is pretty good at guessing file system types. this should get you started:
Code:
mkdir part1 part2 part3 part4 part5
sudo mount /dev/sdb1 part1
sudo mount /dev/sdb2 part2
sudo mount /dev/sdb3 part3
sudo mount /dev/sdb4 part4
sudo mount /dev/sdb5 part5
man mount to learn how to mess with read/write options and the such...

Last edited by schneidz; 12-22-2008 at 01:03 PM.
 
Old 12-23-2008, 11:34 AM   #4
Crystal_Bits
LQ Newbie
 
Registered: Dec 2008
Location: Grand Rapids Michigan
Distribution: PC/OS
Posts: 5

Original Poster
Rep: Reputation: 1
Thanks to both of you. I just switched over to PC/OS from Kubuntu. I used Kubuntu for a couple of years and had installed Dosemu to run my database programs. I think I will like using the apt-get system once I figure out how to check for dependencies, but your comments stirred my memory for another go. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
manual mount - External usb hard drive (in ubuntu) tripled2006 Ubuntu 10 10-10-2011 03:36 PM
The correct syntax to mount a Windows hard drive in Ubuntu mariuslestat Linux - Newbie 1 06-30-2008 06:44 PM
Mount problems for hard drive partition in ubuntu 6.06 krishghosh Ubuntu 3 03-29-2007 04:03 AM
Hard Drive wou't mount after resizing - gParted; Ubuntu 6.06 pr0gr4mm3r Linux - Software 1 08-24-2006 10:52 PM
Ubuntu will not mount my other hard drive Trance56k Linux - Newbie 6 02-26-2005 01:08 PM


All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration