How to read /data
Ubuntu 12.04 desktop 64bit
I have 2 HDs, both with Ubuntu12.04 desktop 64bit running, connected in the same PC.
HD-1 traditional partitoning
HD-2 LVM volume partitioning.
On running the OS on HD-1, HD-2 can't be viewed automatically
On running the OS on HD-2, HD-1 can be viewed automatically.
On running the OS on HD-1, I have to mount HD-2 with LVM volume partitions. Then I can view HD-2. But I can't view the content of /data partition.
# ls -ald /mnt/data
# ls -al /mnt/data
drwxr-xr-x 2 root root 4096 Dec 28 13:11 /mnt/data
However I can read other folders/directories;
drwxr-xr-x 2 root root 4096 Dec 28 13:11 .
drwxr-xr-x 25 root root 4096 Jan 2 10:11 ..
# ls /mnt/
I can't resolve why? Pls help. TIA
bin etc initrd.img.old media root srv var
boot folder lib mnt run sys vmlinuz
data home lib64 opt sbin tmp vmlinuz.old
dev initrd.img lost+found proc selinux usr
post the output of the following commands as root:
Partitions of Logical Volume Manager can not be mounted like other ext2/3/4 or vfat/ntfs partitions. First of all, install lvm2 package in Ubuntu. I am not sure if its pre-installed.
Execute pvs command and it will list available Volume Group(s). Execute lvmdisplay command to check available Logical Volumes inside Volume Group. Execute mount command to mount Logical Volume after that.
sudo apt-get install lvm2
In my test machine, pvs command lists VolGroup01 and lvmdisplay /dev/VolGroup01 lists /dev/VolGroup01/LogVol00.
Execute mount command to mount Logical Volume
sudo mkdir /media/data
sudo mount /dev/VolGroup01/LogVol00 /media/data
lvm2 already installed.
Originally Posted by devils casper
Performed following steps;
$ sudo mkdir /media/data
[sudo] password for satimis:
$ sudo -i
# lvdisplay /dev/LVM1.5D | grep 'LV Name'
PV VG Fmt Attr PSize PFree
/dev/sdb1 lvm2 a- 243.00m 243.00m
/dev/sdb5 LVM1.5D lvm2 a- 1.36t 0
# mount /dev/LVM1.5D/data /media/data
LV Name /dev/LVM1.5D/root
LV Name /dev/LVM1.5D/swap
LV Name /dev/LVM1.5D/data
# ls /media/data/
I got it done. Thanks.
lost+found OVA Satimis_Document VirtualBox VirtualBox VMs
Previously I made a mistake running;
$ sudo mount /dev/LVM1.5D/data /mnt
$ ls -al /mnt
Now I found;
# ls /mnt/ # ls -al /mnt/remoteserver/
An empty directory. I have no idea what is it?
drwxr-xr-x 2 satimis root 4096 Sep 21 2011 .
drwxr-xr-x 3 root root 4096 Sep 21 2011 ..