Advertisement
Guest User

Untitled

a guest
Apr 12th, 2013
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.51 KB | None | 0 0
  1. ubuntu@ubuntu:~$ sudo e2fsck -f /dev/mapper/ubuntu-root
  2. e2fsck 1.42.5 (29-Jul-2012)
  3. /dev/mapper/ubuntu-root is mounted.
  4. e2fsck: Cannot continue, aborting.
  5.  
  6.  
  7. ubuntu@ubuntu:~$ ^C
  8. ubuntu@ubuntu:~$ sudo e2fsck -f /dev/mapper/ubuntu-root
  9. e2fsck 1.42.5 (29-Jul-2012)
  10. Pass 1: Checking inodes, blocks, and sizes
  11. Pass 2: Checking directory structure
  12. Pass 3: Checking directory connectivity
  13. Pass 4: Checking reference counts
  14. Pass 5: Checking group summary information
  15. /dev/mapper/ubuntu-root: 501461/60522496 files (0.4% non-contiguous), 33989921/242074624 blocks
  16. ubuntu@ubuntu:~$ sudo resize2fs -p /dev/mapper/ubuntu-root 915g
  17. resize2fs 1.42.5 (29-Jul-2012)
  18. Resizing the filesystem on /dev/mapper/ubuntu-root to 239861760 (4k) blocks.
  19. Begin pass 2 (max = 1)
  20. Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  21. Begin pass 3 (max = 7388)
  22. Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  23. Begin pass 4 (max = 62184)
  24. Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  25. The filesystem on /dev/mapper/ubuntu-root is now 239861760 blocks long.
  26.  
  27. ubuntu@ubuntu:~$ sudo e2fsck -f /dev/mapper/ubuntu-root
  28. e2fsck 1.42.5 (29-Jul-2012)
  29. Pass 1: Checking inodes, blocks, and sizes
  30. Pass 2: Checking directory structure
  31. Pass 3: Checking directory connectivity
  32. Pass 4: Checking reference counts
  33. Pass 5: Checking group summary information
  34. /dev/mapper/ubuntu-root: 501461/59965440 files (0.4% non-contiguous), 33954969/239861760 blocks
  35. ubuntu@ubuntu:~$ sudo lvdisplay
  36. --- Logical volume ---
  37. LV Path /dev/ubuntu/root
  38. LV Name root
  39. VG Name ubuntu
  40. LV UUID cdEpxc-1l4Z-jRvz-166K-7Yzb-m3y3-0kr3T7
  41. LV Write Access read/write
  42. LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
  43. LV Status available
  44. # open 0
  45. LV Size 923.44 GiB
  46. Current LE 236401
  47. Segments 1
  48. Allocation inherit
  49. Read ahead sectors auto
  50. - currently set to 256
  51. Block device 252:1
  52.  
  53. --- Logical volume ---
  54. LV Path /dev/ubuntu/swap_1
  55. LV Name swap_1
  56. VG Name ubuntu
  57. LV UUID y3a2aq-CYA7-19sY-lwvv-a79w-tXix-PcoN1c
  58. LV Write Access read/write
  59. LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
  60. LV Status available
  61. # open 0
  62. LV Size 7.79 GiB
  63. Current LE 1993
  64. Segments 1
  65. Allocation inherit
  66. Read ahead sectors auto
  67. - currently set to 256
  68. Block device 252:2
  69.  
  70. ubuntu@ubuntu:~$ sudo lvreduce
  71. Please specify either size or extents but not both.
  72. Run `lvreduce --help' for more information.
  73. ubuntu@ubuntu:~$ sudo lvreduce --help
  74. lvreduce: Reduce the size of a logical volume
  75.  
  76. lvreduce
  77. [-A|--autobackup y|n]
  78. [-d|--debug]
  79. [-f|--force]
  80. [-h|--help]
  81. {-l|--extents [-]LogicalExtentsNumber[%{VG|LV|FREE|ORIGIN}] |
  82. -L|--size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
  83. [-n|--nofsck]
  84. [--noudevsync]
  85. [-r|--resizefs]
  86. [-t|--test]
  87. [-v|--verbose]
  88. [-y|--yes]
  89. [--version]
  90. LogicalVolume[Path]
  91.  
  92. ubuntu@ubuntu:~$ pvdisplay
  93. File descriptor 3 (/usr/share/bash-completion/completions) leaked on pvdisplay invocation. Parent PID 5408: bash
  94. /dev/mapper/control: open failed: Permission denied
  95. Failure to communicate with kernel device-mapper driver.
  96. WARNING: Running as a non-root user. Functionality may be unavailable.
  97. /run/lock/lvm/P_global:aux: open failed: Permission denied
  98. Unable to obtain global lock.
  99. ubuntu@ubuntu:~$ sudo pvdisplay
  100. --- Physical volume ---
  101. PV Name /dev/mapper/crypt1
  102. VG Name ubuntu
  103. PV Size 931.27 GiB / not usable 2.00 MiB
  104. Allocatable yes
  105. PE Size 4.00 MiB
  106. Total PE 238405
  107. Free PE 11
  108. Allocated PE 238394
  109. PV UUID ABE4O3-gKjs-b2dY-s5Ff-jwGh-uRsN-aeQdB3
  110.  
  111. ubuntu@ubuntu:~$ lvremove /dev/ubuntu/swa_1
  112. File descriptor 3 (/usr/share/bash-completion/completions) leaked on lvremove invocation. Parent PID 5408: bash
  113. /dev/mapper/control: open failed: Permission denied
  114. Failure to communicate with kernel device-mapper driver.
  115. WARNING: Running as a non-root user. Functionality may be unavailable.
  116. /run/lock/lvm/V_ubuntu:aux: open failed: Permission denied
  117. Can't get lock for ubuntu
  118. Skipping volume group ubuntu
  119. ubuntu@ubuntu:~$ sudo lvremove /dev/ubuntu/swa_1
  120. One or more specified logical volume(s) not found.
  121. ubuntu@ubuntu:~$ sudo lvremove /dev/ubuntu/swap_1
  122. Do you really want to remove active logical volume swap_1? [y/n]: y
  123. Logical volume "swap_1" successfully removed
  124. ubuntu@ubuntu:~$ sudo pvresize --setphysicalvolumesize 914G /dev/mapper/crypt1
  125. /dev/mapper/crypt1: cannot resize to 233983 extents as 236401 are allocated.
  126. 0 physical volume(s) resized / 1 physical volume(s) not resized
  127. ubuntu@ubuntu:~$ sudo pvresize --setphysicalvolumesize 915G /dev/mapper/crypt1
  128. /dev/mapper/crypt1: cannot resize to 234239 extents as 236401 are allocated.
  129. 0 physical volume(s) resized / 1 physical volume(s) not resized
  130. ubuntu@ubuntu:~$ sudo lvdisplay
  131. --- Logical volume ---
  132. LV Path /dev/ubuntu/root
  133. LV Name root
  134. VG Name ubuntu
  135. LV UUID cdEpxc-1l4Z-jRvz-166K-7Yzb-m3y3-0kr3T7
  136. LV Write Access read/write
  137. LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
  138. LV Status available
  139. # open 0
  140. LV Size 923.44 GiB
  141. Current LE 236401
  142. Segments 1
  143. Allocation inherit
  144. Read ahead sectors auto
  145. - currently set to 256
  146. Block device 252:1
  147.  
  148. ubuntu@ubuntu:~$ sudo lvreduce -L -10G /dev/ubuntu/root
  149. WARNING: Reducing active logical volume to 913.44 GiB
  150. THIS MAY DESTROY YOUR DATA (filesystem etc.)
  151. Do you really want to reduce root? [y/n]: y
  152. Reducing logical volume root to 913.44 GiB
  153. Logical volume root successfully resized
  154. ubuntu@ubuntu:~$ sudo pvdisplay
  155. --- Physical volume ---
  156. PV Name /dev/mapper/crypt1
  157. VG Name ubuntu
  158. PV Size 931.27 GiB / not usable 2.00 MiB
  159. Allocatable yes
  160. PE Size 4.00 MiB
  161. Total PE 238405
  162. Free PE 4564
  163. Allocated PE 233841
  164. PV UUID ABE4O3-gKjs-b2dY-s5Ff-jwGh-uRsN-aeQdB3
  165.  
  166. ubuntu@ubuntu:~$ sudo pvresize --setphysicalvolumesize 915G /dev/mapper/crypt1
  167. Physical volume "/dev/mapper/crypt1" changed
  168. 1 physical volume(s) resized / 0 physical volume(s) not resized
  169. ubuntu@ubuntu:~$ sudo pvchange -x y /dev/mapper/crypt1
  170. Physical volume "/dev/mapper/crypt1" is already allocatable
  171. 1 physical volume changed / 0 physical volumes not changed
  172. ubuntu@ubuntu:~$ sudo lvcreate -L 7.79G -n swap_1 ubuntu
  173. Rounding up size to full physical extent 7.79 GiB
  174. Volume group "ubuntu" has insufficient free space (398 extents): 1995 required.
  175. ubuntu@ubuntu:~$ sudo lvcreate -L 7.78G -n swap_1 ubuntu
  176. Rounding up size to full physical extent 7.78 GiB
  177. Volume group "ubuntu" has insufficient free space (398 extents): 1992 required.
  178. ubuntu@ubuntu:~$ sudo lvcreate -L 7.7G -n swap_1 ubuntu
  179. Rounding up size to full physical extent 7.70 GiB
  180. Volume group "ubuntu" has insufficient free space (398 extents): 1972 required.
  181. ubuntu@ubuntu:~$ sudo lvcreate -L 7G -n swap_1 ubuntu
  182. Volume group "ubuntu" has insufficient free space (398 extents): 1792 required.
  183. ubuntu@ubuntu:~$ sudo lvcreate -L 512m -n swap_1 ubuntu
  184. Logical volume "swap_1" created
  185. ubuntu@ubuntu:~$ sudo mkswap -L swap_1 /dev/ubuntu/swap1
  186. /dev/ubuntu/swap1: No such file or directory
  187. ubuntu@ubuntu:~$ sudo mkswap -L swap_1 /dev/ubuntu/swap1
  188. /dev/ubuntu/swap1: No such file or directory
  189. ubuntu@ubuntu:~$ ^C
  190. ubuntu@ubuntu:~$ sudo mkswap -L swap_1 /dev/ubuntu/
  191. root swap_1
  192. ubuntu@ubuntu:~$ sudo mkswap -L swap_1 /dev/ubuntu/swap_1
  193. mkswap: /dev/ubuntu/swap_1: warning: don't erase bootbits sectors
  194. on whole disk. Use -f to force.
  195. Setting up swapspace version 1, size = 524284 KiB
  196. LABEL=swap_1, UUID=83b307cb-8be9-4b71-9c88-46a0b2183ef0
  197. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
  198. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  199. missing codepage or helper program, or other error
  200. In some cases useful info is found in syslog - try
  201. dmesg | tail or so
  202.  
  203. ubuntu@ubuntu:~$ sudo mount /dev/
  204. Display all 221 possibilities? (y or n)
  205. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/
  206. root swap_1
  207. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root
  208. mount: can't find /dev/ubuntu/root in /etc/fstab or /etc/mtab
  209. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
  210. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  211. missing codepage or helper program, or other error
  212. In some cases useful info is found in syslog - try
  213. dmesg | tail or so
  214.  
  215. ubuntu@ubuntu:~$ dmesg | tail
  216. [ 494.914759] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
  217. [ 496.027794] IPv6: wlan0: IPv6 duplicate address fe80::c685:8ff:fe04:9e35 detected!
  218. [ 741.411599] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
  219. [ 889.796950] Btrfs loaded
  220. [ 890.236179] JFS: nTxBlock = 8192, nTxLock = 65536
  221. [ 890.553838] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
  222. [ 1057.957720] cfg80211: Found new beacon on frequency: 5765 MHz (Ch 153) on phy0
  223. [ 4359.628384] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  224. [ 4469.577451] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  225. [ 4635.098884] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  226. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
  227. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  228. missing codepage or helper program, or other error
  229. In some cases useful info is found in syslog - try
  230. dmesg | tail or so
  231.  
  232. ubuntu@ubuntu:~$ dmesg | tail
  233. [ 496.027794] IPv6: wlan0: IPv6 duplicate address fe80::c685:8ff:fe04:9e35 detected!
  234. [ 741.411599] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
  235. [ 889.796950] Btrfs loaded
  236. [ 890.236179] JFS: nTxBlock = 8192, nTxLock = 65536
  237. [ 890.553838] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
  238. [ 1057.957720] cfg80211: Found new beacon on frequency: 5765 MHz (Ch 153) on phy0
  239. [ 4359.628384] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  240. [ 4469.577451] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  241. [ 4635.098884] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  242. [ 6412.035822] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  243. ubuntu@ubuntu:~$ sudo sfdisk -d /dev/sda5
  244. Warning: start=501760 - this looks like a partition rather than
  245. the entire disk. Using fdisk on it is probably meaningless.
  246. [Use the --force option if you really want this]
  247. ubuntu@ubuntu:~$ sudo mount /dev/u
  248. ubuntu/ uinput urandom usb/
  249. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/
  250. root swap_1
  251. ubuntu@ubuntu:~$ sudo lvdisplay
  252. --- Logical volume ---
  253. LV Path /dev/ubuntu/root
  254. LV Name root
  255. VG Name ubuntu
  256. LV UUID cdEpxc-1l4Z-jRvz-166K-7Yzb-m3y3-0kr3T7
  257. LV Write Access read/write
  258. LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
  259. LV Status available
  260. # open 0
  261. LV Size 913.44 GiB
  262. Current LE 233841
  263. Segments 1
  264. Allocation inherit
  265. Read ahead sectors auto
  266. - currently set to 256
  267. Block device 252:1
  268.  
  269. --- Logical volume ---
  270. LV Path /dev/ubuntu/swap_1
  271. LV Name swap_1
  272. VG Name ubuntu
  273. LV UUID 5kh1vA-r32f-rPBI-2eWp-qJ56-zIdT-7jy8Yf
  274. LV Write Access read/write
  275. LV Creation host, time ubuntu, 2013-04-12 05:14:43 +0000
  276. LV Status available
  277. # open 0
  278. LV Size 512.00 MiB
  279. Current LE 128
  280. Segments 1
  281. Allocation inherit
  282. Read ahead sectors auto
  283. - currently set to 256
  284. Block device 252:2
  285.  
  286. ubuntu@ubuntu:~$ sudo mount /dev/mapper/
  287. control crypt1 ubuntu-root ubuntu-swap_1
  288. ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /mnt
  289. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  290. missing codepage or helper program, or other error
  291. In some cases useful info is found in syslog - try
  292. dmesg | tail or so
  293.  
  294. ubuntu@ubuntu:~$ sudo mount /dev/mapper/crypt1 /mnt
  295. mount: unknown filesystem type 'LVM2_member'
  296. ubuntu@ubuntu:~$ ^C
  297. ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /mnt
  298. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  299. missing codepage or helper program, or other error
  300. In some cases useful info is found in syslog - try
  301. dmesg | tail or so
  302.  
  303. ubuntu@ubuntu:~$ dmeg | tail
  304. No command 'dmeg' found, did you mean:
  305. Command 'dreg' from package 'emboss' (universe)
  306. Command 'dmesg' from package 'util-linux' (main)
  307. dmeg: command not found
  308. ubuntu@ubuntu:~$ dmesg | tail
  309. [ 889.796950] Btrfs loaded
  310. [ 890.236179] JFS: nTxBlock = 8192, nTxLock = 65536
  311. [ 890.553838] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
  312. [ 1057.957720] cfg80211: Found new beacon on frequency: 5765 MHz (Ch 153) on phy0
  313. [ 4359.628384] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  314. [ 4469.577451] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  315. [ 4635.098884] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  316. [ 6412.035822] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  317. [ 7354.326565] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  318. [ 7566.810845] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  319. ubuntu@ubuntu:~$ sudo lvdisplay
  320. --- Logical volume ---
  321. LV Path /dev/ubuntu/root
  322. LV Name root
  323. VG Name ubuntu
  324. LV UUID cdEpxc-1l4Z-jRvz-166K-7Yzb-m3y3-0kr3T7
  325. LV Write Access read/write
  326. LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
  327. LV Status available
  328. # open 0
  329. LV Size 913.44 GiB
  330. Current LE 233841
  331. Segments 1
  332. Allocation inherit
  333. Read ahead sectors auto
  334. - currently set to 256
  335. Block device 252:1
  336.  
  337. --- Logical volume ---
  338. LV Path /dev/ubuntu/swap_1
  339. LV Name swap_1
  340. VG Name ubuntu
  341. LV UUID 5kh1vA-r32f-rPBI-2eWp-qJ56-zIdT-7jy8Yf
  342. LV Write Access read/write
  343. LV Creation host, time ubuntu, 2013-04-12 05:14:43 +0000
  344. LV Status available
  345. # open 0
  346. LV Size 512.00 MiB
  347. Current LE 128
  348. Segments 1
  349. Allocation inherit
  350. Read ahead sectors auto
  351. - currently set to 256
  352. Block device 252:2
  353.  
  354. ubuntu@ubuntu:~$ ls /dev/mapper
  355. control crypt1 ubuntu-root ubuntu-swap_1
  356. ubuntu@ubuntu:~$ sudo cryptsetup status crypt1
  357. /dev/mapper/crypt1 is active and is in use.
  358. type: LUKS1
  359. cipher: aes-xts-plain64
  360. keysize: 512 bits
  361. device: /dev/sda5
  362. offset: 4096 sectors
  363. size: 1953017856 sectors
  364. mode: read/write
  365. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
  366. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  367. missing codepage or helper program, or other error
  368. In some cases useful info is found in syslog - try
  369. dmesg | tail or so
  370.  
  371. ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/sda5 crypt1
  372. Device crypt1 already exists.
  373. ubuntu@ubuntu:~$ df -h
  374. Filesystem Size Used Avail Use% Mounted on
  375. /cow 3.8G 315M 3.5G 9% /
  376. udev 3.8G 12K 3.8G 1% /dev
  377. tmpfs 1.6G 892K 1.6G 1% /run
  378. /dev/sr0 763M 763M 0 100% /cdrom
  379. /dev/loop0 717M 717M 0 100% /rofs
  380. tmpfs 3.8G 48K 3.8G 1% /tmp
  381. none 5.0M 4.0K 5.0M 1% /run/lock
  382. none 3.8G 176K 3.8G 1% /run/shm
  383. none 100M 60K 100M 1% /run/user
  384. ubuntu@ubuntu:~$ sudo pvchange -x y /dev/mapper/crypt1
  385. Physical volume "/dev/mapper/crypt1" is already allocatable
  386. 1 physical volume changed / 0 physical volumes not changed
  387. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
  388. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  389. missing codepage or helper program, or other error
  390. In some cases useful info is found in syslog - try
  391. dmesg | tail or so
  392.  
  393. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /home/Home/
  394. mount: mount point /home/Home/ does not exist
  395. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /home/ubuntu
  396. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  397. missing codepage or helper program, or other error
  398. In some cases useful info is found in syslog - try
  399. dmesg | tail or so
  400.  
  401. ubuntu@ubuntu:~$ sudo mount /dev/m /home/ubuntu
  402. mapper/ mcelog mei mem
  403. ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /home/ubuntu
  404. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  405. missing codepage or helper program, or other error
  406. In some cases useful info is found in syslog - try
  407. dmesg | tail or so
  408.  
  409. ubuntu@ubuntu:~$ sudo mkdir /mylvm
  410. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mylvm
  411. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  412. missing codepage or helper program, or other error
  413. In some cases useful info is found in syslog - try
  414. dmesg | tail or so
  415.  
  416. ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /mylvm
  417. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  418. missing codepage or helper program, or other error
  419. In some cases useful info is found in syslog - try
  420. dmesg | tail or so
  421.  
  422. ubuntu@ubuntu:~$ dmesg | tail
  423. [ 4635.098884] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  424. [ 6412.035822] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  425. [ 7354.326565] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  426. [ 7566.810845] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  427. [ 9063.340925] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  428. [10386.359386] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  429. [10486.489123] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  430. [10553.568036] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  431. [11286.617499] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  432. [11415.613576] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
  433. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mylvm
  434. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  435. missing codepage or helper program, or other error
  436. In some cases useful info is found in syslog - try
  437. dmesg | tail or so
  438.  
  439. ubuntu@ubuntu:~$ vgchange -a y
  440. File descriptor 3 (/usr/share/bash-completion/completions) leaked on vgchange invocation. Parent PID 5408: bash
  441. /dev/mapper/control: open failed: Permission denied
  442. Failure to communicate with kernel device-mapper driver.
  443. WARNING: Running as a non-root user. Functionality may be unavailable.
  444. No volume groups found
  445. ubuntu@ubuntu:~$ sudo vgchange -a y
  446. 2 logical volume(s) in volume group "ubuntu" now active
  447. ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mylvm
  448. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  449. missing codepage or helper program, or other error
  450. In some cases useful info is found in syslog - try
  451. dmesg | tail or so
  452.  
  453. ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /mylvm
  454. mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
  455. missing codepage or helper program, or other error
  456. In some cases useful info is found in syslog - try
  457. dmesg | tail or so
  458.  
  459. ubuntu@ubuntu:~$ fsck.ext3 -C 0 -f /dev/mapper/ubuntu-root
  460. e2fsck 1.42.5 (29-Jul-2012)
  461. fsck.ext3: Permission denied while trying to open /dev/mapper/ubuntu-root
  462. You must have r/w access to the filesystem or be root
  463. ubuntu@ubuntu:~$ sudo fsck.ext3 -C 0 -f /dev/mapper/ubuntu-root
  464. e2fsck 1.42.5 (29-Jul-2012)
  465. The filesystem size (according to the superblock) is 239861760 blocks
  466. The physical size of the device is 239453184 blocks
  467. Either the superblock or the partition table is likely to be corrupt!
  468. Abort<y>? yes
  469. ubuntu@ubuntu:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement