ubuntu@ubuntu:~$ sudo -s -H
root@ubuntu:/home/ubuntu# sudo fdisk -l
Disk /dev/sda: 1000.1 GB, 1000137752576 bytes
255 heads, 63 sectors/track, 121593 cylinders, total 1953394048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005d25d
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 1953392639 976445441 5 Extended
/dev/sda5 501760 1953392639 976445440 8e Linux LVM
root@ubuntu:/home/ubuntu# apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
watershed
The following NEW packages will be installed:
lvm2 watershed
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 422 kB of archives.
After this operation, 1,048 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1
http://archive.ubuntu.com/ubuntu/ precise/main watershed amd64 6 [11.8 kB]
Get:2
http://archive.ubuntu.com/ubuntu/ precise/main lvm2 amd64 2.02.66-4ubuntu7 [410 kB]
Fetched 422 kB in 1s (372 kB/s)
Selecting previously unselected package watershed.
(Reading database ... 147516 files and directories currently installed.)
Unpacking watershed (from .../archives/watershed_6_amd64.deb) ...
Selecting previously unselected package lvm2.
Unpacking lvm2 (from .../lvm2_2.02.66-4ubuntu7_amd64.deb) ...
Processing triggers for man-db ...
Setting up watershed (6) ...
update-initramfs is disabled since running on read-only media
Setting up lvm2 (2.02.66-4ubuntu7) ...
update-initramfs is disabled since running on read-only media
root@ubuntu:/home/ubuntu# lvm pvscan
PV /dev/sda5 VG NNP-S1 lvm2 [931.21 GiB / 0 free]
Total: 1 [931.21 GiB] / in use: 1 [931.21 GiB] / in no VG: 0 [0 ]
root@ubuntu:/home/ubuntu# lvm vgscan
Reading all physical volumes. This may take a while...
Found volume group "NNP-S1" using metadata type lvm2
root@ubuntu:/home/ubuntu# lvm lvchange -ay /dev/NNP-S1/root
root@ubuntu:/home/ubuntu# lvm lvscan
ACTIVE '/dev/NNP-S1/root' [907.22 GiB] inherit
inactive '/dev/NNP-S1/swap_1' [23.99 GiB] inherit
root@ubuntu:/home/ubuntu# fsck -yvf /dev/NNP-S1/root
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
Pass 1: Checking inodes, blocks, and sizes
The bad block inode looks invalid. Clear? yes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/NNP--S1-root: ***** FILE SYSTEM WAS MODIFIED *****
114416 inodes used (0.19%)
32 non-contiguous files (0.0%)
48 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 1/0/0
Extent depth histogram: 110311/11
4800273 blocks used (2.02%)
0 bad blocks
1 large file
97617 regular files
11521 directories
55 character device files
25 block device files
0 fifos
6 links
5189 symbolic links (4004 fast symbolic links)
0 sockets
--------
114413 files
Пользователь решил продолжить мысль 13 Августа 2012, 20:44:32:
root@ubuntu:/home/ubuntu# sudo mount -ro /dev/NNP-S1/root /mnt
mount: can't find /mnt in /etc/fstab or /etc/mtab