Dumb newbie question: mounting additional drive
Alma J Wetzker
almaw
Mon May 17 12:00:08 PDT 2004
Harry G wrote:
> 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
I think I can take a swat at this one.
#mount -t xfs /dev/hdd3 /mnt/<wherever>
should do the trick. (from $man mount) It looks like the drive is setup as
the slave on the second IDE controller in the system and the system is reading
the existing partition table. The three primary partitions are addressed as:
/dev/hdd1 (boot partition - ext2)
/dev/hdd2 (swap partition)
/dev/hdd3 (root partition - xfs)
Just create a mount point in some directory (I assume /mnt) and mount the
partition. The data will then look just like a directory in your root file
system. If you are going to use it for a while, it may make sense to include
it in your /etc/fstab file. ($man mount, again)
If this don't work we will need to get one of the certifiable geniuses to give
an answer.
-- Alma
More information about the Linux-users
mailing list