LinuxQuestions.org
Review your favorite Linux distribution.
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 02-20-2007, 07:00 PM   #1
Calab
Member
 
Registered: Oct 2003
Location: Calgary, AB, Canada
Distribution: CentOS, Ubuntu
Posts: 56

Rep: Reputation: 2
Question Which drive is which?


I've got two USB hard drive attached to my SuSE 10.2 system. I want to copy an image of one drive to the other, but I can't identify which is which.

Output from mount:

/dev/hda6 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda7 on /home type reiserfs (rw,acl,user_xattr)
/dev/hda1 on /windows/C type ntfs (ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sdf1 on /media/disk-1 type ext3 (rw,nosuid,nodev,sync,data=ordered)
/dev/sda2 on /media/disk-2 type ext3 (rw,nosuid,nodev,sync,data=ordered)
/dev/sdg1 on /media/disk type ext3 (rw,nosuid,nodev,sync,data=ordered)
/dev/sdg2 on /media/disk-4 type ext3 (rw,nosuid,nodev,sync,data=ordered)
/dev/sdh2 on /media/disk-3 type ext3 (rw,nosuid,nodev,sync,data=ordered)
/dev/sdh1 on /media/disk-5 type ext3 (rw,nosuid,nodev,sync,data=ordered)


hda1 = My windows partition
hda6 = My SuSE 10.2 partition
hda7 = My /home partition

I assume that sdf1 is my floppy drive?

So that leaves me with sda2, sdg1, sdg2, sdh1, sdh2. None of these appear to be my ATA DVDRW drive.

Both of my USB drives were formatted with my Linksys NSLU2 NAS device. One drive is a 60gig Maxtor, containing my NSLU2 unslung system. The other drive is a 40gig Toshiba that has a fresh format by the NSLU2.

Help?


Last edited by Calab; 02-20-2007 at 07:02 PM.
 
Old 02-20-2007, 07:11 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Do it the easy way; fdisk -l

You know which is the 60-GB and which is the 40-GB

FYI: I seriously doubt your floppy drive is sdf1 as floppy drives do not have partitions. The sda2 partition is on the same drive as your other sdaX partitions.
 
Old 02-20-2007, 07:12 PM   #3
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
sdf1 shouldn't be your floppy drive. Normally, the floppy drive is fd0.

Do you have any other external devices attached? It looks like you've got 4 devices (sda, sdf, sdg, sdh) attached, or they could be SATA drives.

Try the following. This might help you figure out what is what.
Code:
fdisk -l
 
Old 02-20-2007, 07:13 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
/dev/sd? should be a scsi drive so I wouldn't think sdf1 is a floppy but is rather the first partition of a drive called sdf. (Floppy is usually /dev/fd0 - I've never heard of a SCSI floppy drive.)

Type "fdisk -l /dev/sdf" to see what it tells you about partitions on that drive.

You can do the same on each of the drive letters:

fdisk -l /dev/hda

fdisk -l /dev/sdg

etc...

Seeing the partition information for each drive may give you an idea of which is which.

/dev/hda is probably your (boot) first IDE/ATA drive.

It's interesting you have sdf but no sdb, sdc, sdd or sde - perhaps this is changing each time you switch USB drives?
 
  


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
cannot delete drive from root desktop - cannot mount usb flash drive - openSuSE 10.2 bluecog6 Linux - General 6 01-29-2007 03:18 PM
Installed GRUB on 3rd hard drive, how do I boot 1st drive? jesusphreak Linux - Newbie 4 04-06-2005 09:34 AM
Installing SuSE on an external FireWire drive: YaST can't edit partitions on drive kivimaki Linux - Distributions 2 09-13-2004 08:52 PM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 06:23 PM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:36 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
Open Source Consulting | Domain Registration