Portal Home > Knowledgebase > Articles Database > Mount second harddisk
Mount second harddisk
Posted by darkink, 04-10-2009, 08:57 PM |
I tried to mount second harddisk, but i faced error "mount: you must specify the filesystem type", please help, see below
|
Posted by quad3datwork, 04-10-2009, 10:09 PM |
The FS type is "8E", which as it stated, is Linux LVM (Logical Volume Manager).
Try "pvscan", "vgscan", or "lvscan". What outputs from lvscan can be treated as a block device and you can mount it that way.
|
Posted by darkink, 04-11-2009, 07:47 AM |
Hi, I cant get you, can you be more specific and detail, thanks
|
Posted by quad3datwork, 04-11-2009, 03:34 PM |
You see how that works? Try to read up on LVMs!
|
Posted by darkink, 04-11-2009, 08:40 PM |
sorry, once i type !335, putty closed, and when i do lvscan, it only list out the current harddisk, no the second harddisk i attached
|
Posted by PCS-Chris, 04-11-2009, 08:52 PM |
Run vgscan
Once you've got the Volume group name, run ls /dev/VolumeGroupName and you can see the LV's in there.
Find the one you want and you can then mount that
i.e. mount /dev/VolGroup00/lv_name /mnt/tmp
|
Posted by darkink, 04-11-2009, 10:37 PM |
root@s ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
Found volume group "VolGroup00" using metadata type lvm2
i found two VolGroup00
|
Posted by technical_staff, 04-12-2009, 01:59 AM |
Step1)
Convert LVM partition to Physical volume,
pvcreate /dev/sdb2
Step2)
Create Volume group called vg0
vgcreate -s 16M vg0 /dev/sdb2
Step3)
Create a logical volume called lv0 on volume group vg0:
lvcreate -L 1000M -n lv0 vg0
Format the LV into ext3 filesystem:
mkfs -t ext3 -m 1 -v /dev/vg0/lv0
Step4)
Mount it:
mount /dev/vg0/lv0 /mnt/hd2
Regards,
We3cares tech
We3cares.com
|
Posted by PCS-Chris, 04-12-2009, 06:51 AM |
If you have data on your second disk, do not try the above.
If you don't then its probably easier for you to convert the partition type to ext3, format it and mount it straight up.
|
Posted by darkink, 04-13-2009, 12:01 PM |
Hi,
I have data there, and need to transfer the data there to first harddrive, what shall i do now? my purpose is to transfer data from attached harddisk
Regards
|
Posted by quad3datwork, 04-13-2009, 12:08 PM |
Please paste back result from following command,
|
Posted by darkink, 04-13-2009, 12:11 PM |
Thanks
|
Posted by quad3datwork, 04-13-2009, 12:17 PM |
Paste the ouput from following,
|
Posted by quad3datwork, 04-13-2009, 12:20 PM |
Or... you can mount the listed LVs see what's in it.
Those two LVs should be mounted under /mnt/LogVol00 and /mnt/LogVol01.
|
Posted by darkink, 04-13-2009, 12:33 PM |
Hi Thanks, got these
|
Posted by quad3datwork, 04-13-2009, 01:25 PM |
or
you shall see data.
|
Posted by darkink, 04-14-2009, 09:15 AM |
i did
mount /dev/VolGroup00/LogVol01 /mnt/hd2
but after i check, the LogVol01 seems does not belong to the attached harddisk, but the current harddisk
|
Posted by darkink, 04-14-2009, 02:13 PM |
please help
i did
mount /dev/VolGroup00/LogVol00 /mnt/hd2
but after i check, the LogVol01 seems does not belong to the attached harddisk, but the current harddisk.
attached harddisk should be /dev/sdb2,and only 160g
|
Add to Favourites Print this Article
Also Read