Dumb newbie question: mounting additional drive

Harry G hg57
Mon May 17 12:00:08 PDT 2004


On Tue, 2004-03-02 at 20:55, Net Llama! wrote:
> On 03/02/04 17:45, Harry G wrote:
> 
> > I have added a drive to my system (which is a Libranet box).  The drive
> > has an old Suse 8.1 install on it.  
> > 
> > My question is how can I mount the drive so I can copy data from it?  I
> > need to get the old docs off of it.
> 
> Depends on where you've attached it physically to the system:
> hda = primary master IDE drive
> hdb = primary slave IDE drive
> hdc = secondary master IDE drive
> hdd = secondary slave IDE drive
> 
> SCSI drives start with sda, and just go down the list of letters in the 
> alphabet.   Look at the output from dmesg to see how the drive was 
> detected if you're unsure.  Then its as simple as mounting the partition:
> mount -t <FS> /dev/whatever /mnt/foo

OK, I ask you to please be patient with me on this.  (Hey, I don't even
know what foo stands for!)

I used gpart to find the info on the drive.  It returned:

root at libranet:/home/harry# gpart /dev/hdd

Begin scan...
Possible partition(Linux ext2), size(47mb), offset(0mb)
Possible partition(Linux swap), size(502mb), offset(47mb)
Possible partition(SGI XFS filesystem), size(37608mb), offset(549mb)
End scan.

Checking partitions...
Partition(Linux ext2 filesystem): primary
Partition(Linux swap or Solaris/x86): primary
Partition(Linux ext2 filesystem): primary
Ok.

Guessed primary partition table:
Primary partition(1)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 47mb #s(96326) s(63-96388)
   chs:  (0/1/1)-(5/254/62)d (0/1/1)-(5/254/62)r

Primary partition(2)
   type: 130(0x82)(Linux swap or Solaris/x86)
   size: 502mb #s(1028160) s(96390-1124549)
   chs:  (6/0/1)-(69/254/63)d (6/0/1)-(69/254/63)r

Primary partition(3)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 37608mb #s(77022072) s(1124550-78146621)
   chs:  (70/0/1)-(1023/254/63)d (70/0/1)-(4864/102/36)r

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Now, I know for a fact the partition #1 was for boot.  #2 was for swap. 
#3 is the data, which is xfs filesystem.

How do I :

1.  Give the proper command to mount.

2.  Do I do a cd / or what to get into the partion #3?  

3.  Or, can I try to edit grub to try and launch this Suse install?  If
so, how?  (I believe it was using kernel 2.4.19).


Thanks for your patience and help.

Harry G




More information about the Linux-users mailing list