Help answer threads with 0 replies.
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 03-06-2006, 04:03 PM   #1
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 69

Rep: Reputation: 15
How to read outside of your Linux partitions.

I have just solved this problem for myself and thought I would post a little "How To" of my own in the hopes that I could help someone else.

I have a dual boot system, a USB drive, and a PCMCIA drive that I wanted to access from within Linux. Before you can attempt to do what I did I suggest you create two new folders from within your /mnt directory: removable, and windows. It doesn't really matter what you call them just make sure you have two folders reserved for mounting strange stuff.

One other thing, you must be root to mount these devices. Make sure you know how to do this BEFORE you attempt the following.

USB drive
the command is mount -t vfat /dev/sda1 /mnt/removable

Windows partition
the command is mount -t auto /dev/hda1 /mnt/windows

PCMCIA drive
the command is mount -t vfat /dev/hde1 /mnt/removable

If the above don't work for you try this:

plug in the device you want to use and then type the following in the Command Line Interface

dmesg > (wherever you want it).txt

The above will post a text file with a read out of your machine. Open this file with whatever text editor you like. Look for hda. This is your regular hard drive. You should then see a list of partitions labeled hda1, hda2, etc...
hda1 is probably your Windows "C" drive.
Now do the same thing for your USB drive, this time looking for sda, and then sda1.
Once you've located that try looking for hde if you have a PCMCIA drive.
If you are unable to locate an sda or hde listing, you need more help than I can provide, but at least you will be able to tell others that you can't find those things and that might help them help you.

Good luck.

Old 03-06-2006, 04:59 PM   #2
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
An added thought to this that will make listing out those different partitions a LOT easier:

$ cat /proc/partitions

Taking a look at this will give a nice neat listing of the different partitions that the kernel has detected upto that point. You can work from there exactly what you want to do with them.
Old 03-07-2006, 10:22 AM   #3
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks, Wells.

I've added that to my cheat sheet.


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
NEEDED NOW : How to read Linux RAID partitions ? johnlefevre Mandriva 19 10-10-2005 06:31 AM
NEEDED NOW : How to read Linux RAID partitions ? johnlefevre Linux - Newbie 4 10-08-2005 07:41 PM
How to get XP to read Linux partitions? XxAndyxX General 14 02-06-2005 10:15 PM
Linux can read NTFS Quew Linux - Newbie 4 12-28-2003 05:32 PM
Read multi partitions in Windows NTFS from linux java8964 Linux - General 5 11-19-2003 12:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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