Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
How to use another hard disk?

How to use another hard disk?

2004-02-06       - By Pete Nesbitt

 Back
Reply:     1     2     3     4     5     6  

On February 5, 2004 04:33 pm, Edward King wrote:
> I have two hard disk.I installed Red Hat 7.2 into the first hard disk,then
> I want to visited the data of second hard disk,I know I need to use command
> like follow : #mount /dev/sda /mnt/seconddisk
>
> But I don 't know the device number of second disk:
> #mount /dev/??? /mnt/seconddisk
>
> How to know it? What commands to use?
> Any idea will be appreciated!
>
> Edward


Hi Edward,
You imply both drives are scsi.
To see what drives and partitions are on the system use:
fdisk -l

You should see something like:
(as root)# fdisk -l
<snip... >
Device Boot Start End Blocks Id System
/dev/hdg1 * 1 203 102280+ 83 Linux
/dev/hdg2 204 38144 19122264 83 Linux
/dev/hdg3 38145 39704 786240 82 Linux swap
<snip... >
Device Boot Start End Blocks Id System
/dev/hde1 * 1 13 104391 83 Linux
/dev/hde2 14 2624 20972857+ 83 Linux
/dev/hde3 2625 4582 15727635 83 Linux
/dev/hde4 4583 9729 41343277+ f Win95 Ext 'd (LBA)
/dev/hde5 4583 4713 1052226 83 Linux
/dev/hde6 4714 4815 819283+ 82 Linux swap


That shows I have 2 ide drives (/dev/hdg & /dev/hde). If you have two scsi
drives you 'll see something containing similar to:
/dev/sda & /dev/sdb
(the last letter (a, b, c...) may vary if you have other, non-disk, devises.)
The next digit is the partition, starting at 1.
so /dev/hda2 is the second partition on the first physical disk.

If they are both scsi, to access the second disks first partition from
/mnt/disk2, and if it is ext3, you would want to try:
mount -t ext3 /dev/sdb1 /mnt/disk2

As long as the mount point directory exists (/mnt/disk2 in the example) and
the filesystem is correct (try with no -t option if your not sure or if it is
ext3), then that should work. You 'll need to be root.

Once it is working, you can add it to fstab.

Hope that helps
--
Pete Nesbitt, rhce


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list