LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Which drive is which? (https://www.linuxquestions.org/questions/linux-newbie-8/which-drive-is-which-530869/)

Calab 02-20-2007 07:00 PM

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?

:)

Lenard 02-20-2007 07:11 PM

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.

cgjones 02-20-2007 07:12 PM

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

MensaWater 02-20-2007 07:13 PM

/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?


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