LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-23-2004, 02:09 PM   #1
GoatKing
LQ Newbie
 
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Rep: Reputation: 15
Finding another partition on another drive


Hello,

I'm using RH9 right now, but I can also boot into Windows XP. I used partition magic 8 in windows to create an ext3 partition on a separate hard drive, to be used as a backup storage for when I'm in linux. When I boot into rh9, I can't find it. I'm confused because I know Linux uses a single root file system, so I don't know where to look to access this new partition.

Can anybody point me in the right direction?

Thanks in advance.
 
Old 01-23-2004, 02:19 PM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You'll have to create a mount point and mount it first.......
 
Old 01-23-2004, 02:28 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
I'm guessing it's IDE, otherwise the examples below would be a little different.

If you know what drive it is in the system (primary- / secondary- / -master / -slave), you can find it pretty easily. As root, run "fdisk -l /dev/hdX", replacing the X as follows...

primary-master = a
primary-slave = b
secondary-master = c
secondary-slave = d

So, if it's the primary-slave, the device is /dev/hdb. The fdisk -l command will list all partitions on the drive specified. My output on my Linux-only laptop is...
Code:
# fdisk -l /dev/hda

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        16    128488+  83  Linux
/dev/hda2            17      1321  10482412+  83  Linux
/dev/hda3          1322      1337    128520   82  Linux swap
/dev/hda4          1338      7296  47865667+  83  Linux
If it's the only Linux partition on the drive, it will stick out in the "System" column.

To find where it might be automagic'ly mounted, look in the file /etc/fstab. This will list all the partitions Linux knows about on your system. Let's pretend you found a Linux partition at /dev/hdb2 with the fdisk command. Then, you look for the entry in your fstab with that partition. It might look like...
Code:
/dev/hdb2     /mnt/storage     ext3     defaults     1 2
The first column is the partition, the second is the mount-point. In this fake case, the partition is mounted as /mnt/storage. You could then see what was in that partition with "ls /mnt/storage".

<<EDIT>>

Almost forgot... If you don't find it listed in the fstab, then you will have to create a mount-point and manually mount the partition.
Code:
# mkdir /mnt/storage
# mount -t ext3 /dev/hdb4 /mnt/storage
# ls /mnt/storage
Copy over whatever you want to back-up, then unmount the partition with...
Code:
# umount /mnt/storage

Last edited by ranger_nemo; 01-23-2004 at 02:33 PM.
 
Old 01-23-2004, 02:40 PM   #4
GoatKing
LQ Newbie
 
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Original Poster
Rep: Reputation: 15
I'm good to go, thanks guys.
 
  


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
Arson Not Finding CD-RW Drive br00tal Mandriva 2 04-20-2005 07:02 PM
problems finding floppy drive Irianae Slackware 12 02-11-2005 09:56 AM
Finding Partition Magic table in FC3install kiwibird Fedora - Installation 0 02-02-2005 05:26 PM
finding a window hard drive greek Linux - Hardware 0 06-17-2004 07:18 PM
RH 9 installation not finding Hard Drive avdicmon Linux - Newbie 1 08-18-2003 02:08 PM


All times are GMT -5. The time now is 12:21 PM.

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