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 03-06-2006, 03:03 PM   #1
CyberLord_7
Member
 
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.

CyberLord
 
Old 03-06-2006, 03:59 PM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 416

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, 09:22 AM   #3
CyberLord_7
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks, Wells.

I've added that to my cheat sheet.
 
  


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


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