Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-22-2008, 10:03 AM   #1
LQ Newbie
Registered: Dec 2008
Location: Sun City Center Florida
Distribution: LXLE
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
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,813

Rep: Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734
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.

/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
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,290

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
the linux kernal is pretty good at guessing file system types. this should get you started:
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
LQ Newbie
Registered: Dec 2008
Location: Sun City Center Florida
Distribution: LXLE
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!


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:52 PM.

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