Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ubuntu:~$ sudo e2fsck -f /dev/mapper/ubuntu-root
- e2fsck 1.42.5 (29-Jul-2012)
- /dev/mapper/ubuntu-root is mounted.
- e2fsck: Cannot continue, aborting.
- ubuntu@ubuntu:~$ ^C
- ubuntu@ubuntu:~$ sudo e2fsck -f /dev/mapper/ubuntu-root
- e2fsck 1.42.5 (29-Jul-2012)
- Pass 1: Checking inodes, blocks, and sizes
- Pass 2: Checking directory structure
- Pass 3: Checking directory connectivity
- Pass 4: Checking reference counts
- Pass 5: Checking group summary information
- /dev/mapper/ubuntu-root: 501461/60522496 files (0.4% non-contiguous), 33989921/242074624 blocks
- ubuntu@ubuntu:~$ sudo resize2fs -p /dev/mapper/ubuntu-root 915g
- resize2fs 1.42.5 (29-Jul-2012)
- Resizing the filesystem on /dev/mapper/ubuntu-root to 239861760 (4k) blocks.
- Begin pass 2 (max = 1)
- Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- Begin pass 3 (max = 7388)
- Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- Begin pass 4 (max = 62184)
- Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- The filesystem on /dev/mapper/ubuntu-root is now 239861760 blocks long.
- ubuntu@ubuntu:~$ sudo e2fsck -f /dev/mapper/ubuntu-root
- e2fsck 1.42.5 (29-Jul-2012)
- Pass 1: Checking inodes, blocks, and sizes
- Pass 2: Checking directory structure
- Pass 3: Checking directory connectivity
- Pass 4: Checking reference counts
- Pass 5: Checking group summary information
- /dev/mapper/ubuntu-root: 501461/59965440 files (0.4% non-contiguous), 33954969/239861760 blocks
- ubuntu@ubuntu:~$ sudo lvdisplay
- --- Logical volume ---
- LV Path /dev/ubuntu/root
- LV Name root
- VG Name ubuntu
- LV UUID cdEpxc-1l4Z-jRvz-166K-7Yzb-m3y3-0kr3T7
- LV Write Access read/write
- LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
- LV Status available
- # open 0
- LV Size 923.44 GiB
- Current LE 236401
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:1
- --- Logical volume ---
- LV Path /dev/ubuntu/swap_1
- LV Name swap_1
- VG Name ubuntu
- LV UUID y3a2aq-CYA7-19sY-lwvv-a79w-tXix-PcoN1c
- LV Write Access read/write
- LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
- LV Status available
- # open 0
- LV Size 7.79 GiB
- Current LE 1993
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:2
- ubuntu@ubuntu:~$ sudo lvreduce
- Please specify either size or extents but not both.
- Run `lvreduce --help' for more information.
- ubuntu@ubuntu:~$ sudo lvreduce --help
- lvreduce: Reduce the size of a logical volume
- lvreduce
- [-A|--autobackup y|n]
- [-d|--debug]
- [-f|--force]
- [-h|--help]
- {-l|--extents [-]LogicalExtentsNumber[%{VG|LV|FREE|ORIGIN}] |
- -L|--size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
- [-n|--nofsck]
- [--noudevsync]
- [-r|--resizefs]
- [-t|--test]
- [-v|--verbose]
- [-y|--yes]
- [--version]
- LogicalVolume[Path]
- ubuntu@ubuntu:~$ pvdisplay
- File descriptor 3 (/usr/share/bash-completion/completions) leaked on pvdisplay invocation. Parent PID 5408: bash
- /dev/mapper/control: open failed: Permission denied
- Failure to communicate with kernel device-mapper driver.
- WARNING: Running as a non-root user. Functionality may be unavailable.
- /run/lock/lvm/P_global:aux: open failed: Permission denied
- Unable to obtain global lock.
- ubuntu@ubuntu:~$ sudo pvdisplay
- --- Physical volume ---
- PV Name /dev/mapper/crypt1
- VG Name ubuntu
- PV Size 931.27 GiB / not usable 2.00 MiB
- Allocatable yes
- PE Size 4.00 MiB
- Total PE 238405
- Free PE 11
- Allocated PE 238394
- PV UUID ABE4O3-gKjs-b2dY-s5Ff-jwGh-uRsN-aeQdB3
- ubuntu@ubuntu:~$ lvremove /dev/ubuntu/swa_1
- File descriptor 3 (/usr/share/bash-completion/completions) leaked on lvremove invocation. Parent PID 5408: bash
- /dev/mapper/control: open failed: Permission denied
- Failure to communicate with kernel device-mapper driver.
- WARNING: Running as a non-root user. Functionality may be unavailable.
- /run/lock/lvm/V_ubuntu:aux: open failed: Permission denied
- Can't get lock for ubuntu
- Skipping volume group ubuntu
- ubuntu@ubuntu:~$ sudo lvremove /dev/ubuntu/swa_1
- One or more specified logical volume(s) not found.
- ubuntu@ubuntu:~$ sudo lvremove /dev/ubuntu/swap_1
- Do you really want to remove active logical volume swap_1? [y/n]: y
- Logical volume "swap_1" successfully removed
- ubuntu@ubuntu:~$ sudo pvresize --setphysicalvolumesize 914G /dev/mapper/crypt1
- /dev/mapper/crypt1: cannot resize to 233983 extents as 236401 are allocated.
- 0 physical volume(s) resized / 1 physical volume(s) not resized
- ubuntu@ubuntu:~$ sudo pvresize --setphysicalvolumesize 915G /dev/mapper/crypt1
- /dev/mapper/crypt1: cannot resize to 234239 extents as 236401 are allocated.
- 0 physical volume(s) resized / 1 physical volume(s) not resized
- ubuntu@ubuntu:~$ sudo lvdisplay
- --- Logical volume ---
- LV Path /dev/ubuntu/root
- LV Name root
- VG Name ubuntu
- LV UUID cdEpxc-1l4Z-jRvz-166K-7Yzb-m3y3-0kr3T7
- LV Write Access read/write
- LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
- LV Status available
- # open 0
- LV Size 923.44 GiB
- Current LE 236401
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:1
- ubuntu@ubuntu:~$ sudo lvreduce -L -10G /dev/ubuntu/root
- WARNING: Reducing active logical volume to 913.44 GiB
- THIS MAY DESTROY YOUR DATA (filesystem etc.)
- Do you really want to reduce root? [y/n]: y
- Reducing logical volume root to 913.44 GiB
- Logical volume root successfully resized
- ubuntu@ubuntu:~$ sudo pvdisplay
- --- Physical volume ---
- PV Name /dev/mapper/crypt1
- VG Name ubuntu
- PV Size 931.27 GiB / not usable 2.00 MiB
- Allocatable yes
- PE Size 4.00 MiB
- Total PE 238405
- Free PE 4564
- Allocated PE 233841
- PV UUID ABE4O3-gKjs-b2dY-s5Ff-jwGh-uRsN-aeQdB3
- ubuntu@ubuntu:~$ sudo pvresize --setphysicalvolumesize 915G /dev/mapper/crypt1
- Physical volume "/dev/mapper/crypt1" changed
- 1 physical volume(s) resized / 0 physical volume(s) not resized
- ubuntu@ubuntu:~$ sudo pvchange -x y /dev/mapper/crypt1
- Physical volume "/dev/mapper/crypt1" is already allocatable
- 1 physical volume changed / 0 physical volumes not changed
- ubuntu@ubuntu:~$ sudo lvcreate -L 7.79G -n swap_1 ubuntu
- Rounding up size to full physical extent 7.79 GiB
- Volume group "ubuntu" has insufficient free space (398 extents): 1995 required.
- ubuntu@ubuntu:~$ sudo lvcreate -L 7.78G -n swap_1 ubuntu
- Rounding up size to full physical extent 7.78 GiB
- Volume group "ubuntu" has insufficient free space (398 extents): 1992 required.
- ubuntu@ubuntu:~$ sudo lvcreate -L 7.7G -n swap_1 ubuntu
- Rounding up size to full physical extent 7.70 GiB
- Volume group "ubuntu" has insufficient free space (398 extents): 1972 required.
- ubuntu@ubuntu:~$ sudo lvcreate -L 7G -n swap_1 ubuntu
- Volume group "ubuntu" has insufficient free space (398 extents): 1792 required.
- ubuntu@ubuntu:~$ sudo lvcreate -L 512m -n swap_1 ubuntu
- Logical volume "swap_1" created
- ubuntu@ubuntu:~$ sudo mkswap -L swap_1 /dev/ubuntu/swap1
- /dev/ubuntu/swap1: No such file or directory
- ubuntu@ubuntu:~$ sudo mkswap -L swap_1 /dev/ubuntu/swap1
- /dev/ubuntu/swap1: No such file or directory
- ubuntu@ubuntu:~$ ^C
- ubuntu@ubuntu:~$ sudo mkswap -L swap_1 /dev/ubuntu/
- root swap_1
- ubuntu@ubuntu:~$ sudo mkswap -L swap_1 /dev/ubuntu/swap_1
- mkswap: /dev/ubuntu/swap_1: warning: don't erase bootbits sectors
- on whole disk. Use -f to force.
- Setting up swapspace version 1, size = 524284 KiB
- LABEL=swap_1, UUID=83b307cb-8be9-4b71-9c88-46a0b2183ef0
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ sudo mount /dev/
- Display all 221 possibilities? (y or n)
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/
- root swap_1
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root
- mount: can't find /dev/ubuntu/root in /etc/fstab or /etc/mtab
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ dmesg | tail
- [ 494.914759] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
- [ 496.027794] IPv6: wlan0: IPv6 duplicate address fe80::c685:8ff:fe04:9e35 detected!
- [ 741.411599] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
- [ 889.796950] Btrfs loaded
- [ 890.236179] JFS: nTxBlock = 8192, nTxLock = 65536
- [ 890.553838] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
- [ 1057.957720] cfg80211: Found new beacon on frequency: 5765 MHz (Ch 153) on phy0
- [ 4359.628384] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 4469.577451] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 4635.098884] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ dmesg | tail
- [ 496.027794] IPv6: wlan0: IPv6 duplicate address fe80::c685:8ff:fe04:9e35 detected!
- [ 741.411599] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
- [ 889.796950] Btrfs loaded
- [ 890.236179] JFS: nTxBlock = 8192, nTxLock = 65536
- [ 890.553838] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
- [ 1057.957720] cfg80211: Found new beacon on frequency: 5765 MHz (Ch 153) on phy0
- [ 4359.628384] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 4469.577451] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 4635.098884] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 6412.035822] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- ubuntu@ubuntu:~$ sudo sfdisk -d /dev/sda5
- Warning: start=501760 - this looks like a partition rather than
- the entire disk. Using fdisk on it is probably meaningless.
- [Use the --force option if you really want this]
- ubuntu@ubuntu:~$ sudo mount /dev/u
- ubuntu/ uinput urandom usb/
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/
- root swap_1
- ubuntu@ubuntu:~$ sudo lvdisplay
- --- Logical volume ---
- LV Path /dev/ubuntu/root
- LV Name root
- VG Name ubuntu
- LV UUID cdEpxc-1l4Z-jRvz-166K-7Yzb-m3y3-0kr3T7
- LV Write Access read/write
- LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
- LV Status available
- # open 0
- LV Size 913.44 GiB
- Current LE 233841
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:1
- --- Logical volume ---
- LV Path /dev/ubuntu/swap_1
- LV Name swap_1
- VG Name ubuntu
- LV UUID 5kh1vA-r32f-rPBI-2eWp-qJ56-zIdT-7jy8Yf
- LV Write Access read/write
- LV Creation host, time ubuntu, 2013-04-12 05:14:43 +0000
- LV Status available
- # open 0
- LV Size 512.00 MiB
- Current LE 128
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:2
- ubuntu@ubuntu:~$ sudo mount /dev/mapper/
- control crypt1 ubuntu-root ubuntu-swap_1
- ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /mnt
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ sudo mount /dev/mapper/crypt1 /mnt
- mount: unknown filesystem type 'LVM2_member'
- ubuntu@ubuntu:~$ ^C
- ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /mnt
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ dmeg | tail
- No command 'dmeg' found, did you mean:
- Command 'dreg' from package 'emboss' (universe)
- Command 'dmesg' from package 'util-linux' (main)
- dmeg: command not found
- ubuntu@ubuntu:~$ dmesg | tail
- [ 889.796950] Btrfs loaded
- [ 890.236179] JFS: nTxBlock = 8192, nTxLock = 65536
- [ 890.553838] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
- [ 1057.957720] cfg80211: Found new beacon on frequency: 5765 MHz (Ch 153) on phy0
- [ 4359.628384] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 4469.577451] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 4635.098884] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 6412.035822] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 7354.326565] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 7566.810845] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- ubuntu@ubuntu:~$ sudo lvdisplay
- --- Logical volume ---
- LV Path /dev/ubuntu/root
- LV Name root
- VG Name ubuntu
- LV UUID cdEpxc-1l4Z-jRvz-166K-7Yzb-m3y3-0kr3T7
- LV Write Access read/write
- LV Creation host, time ubuntu, 2012-11-18 04:36:11 +0000
- LV Status available
- # open 0
- LV Size 913.44 GiB
- Current LE 233841
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:1
- --- Logical volume ---
- LV Path /dev/ubuntu/swap_1
- LV Name swap_1
- VG Name ubuntu
- LV UUID 5kh1vA-r32f-rPBI-2eWp-qJ56-zIdT-7jy8Yf
- LV Write Access read/write
- LV Creation host, time ubuntu, 2013-04-12 05:14:43 +0000
- LV Status available
- # open 0
- LV Size 512.00 MiB
- Current LE 128
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:2
- ubuntu@ubuntu:~$ ls /dev/mapper
- control crypt1 ubuntu-root ubuntu-swap_1
- ubuntu@ubuntu:~$ sudo cryptsetup status crypt1
- /dev/mapper/crypt1 is active and is in use.
- type: LUKS1
- cipher: aes-xts-plain64
- keysize: 512 bits
- device: /dev/sda5
- offset: 4096 sectors
- size: 1953017856 sectors
- mode: read/write
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/sda5 crypt1
- Device crypt1 already exists.
- ubuntu@ubuntu:~$ df -h
- Filesystem Size Used Avail Use% Mounted on
- /cow 3.8G 315M 3.5G 9% /
- udev 3.8G 12K 3.8G 1% /dev
- tmpfs 1.6G 892K 1.6G 1% /run
- /dev/sr0 763M 763M 0 100% /cdrom
- /dev/loop0 717M 717M 0 100% /rofs
- tmpfs 3.8G 48K 3.8G 1% /tmp
- none 5.0M 4.0K 5.0M 1% /run/lock
- none 3.8G 176K 3.8G 1% /run/shm
- none 100M 60K 100M 1% /run/user
- ubuntu@ubuntu:~$ sudo pvchange -x y /dev/mapper/crypt1
- Physical volume "/dev/mapper/crypt1" is already allocatable
- 1 physical volume changed / 0 physical volumes not changed
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /home/Home/
- mount: mount point /home/Home/ does not exist
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /home/ubuntu
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ sudo mount /dev/m /home/ubuntu
- mapper/ mcelog mei mem
- ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /home/ubuntu
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ sudo mkdir /mylvm
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mylvm
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /mylvm
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ dmesg | tail
- [ 4635.098884] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 6412.035822] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 7354.326565] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 7566.810845] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [ 9063.340925] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [10386.359386] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [10486.489123] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [10553.568036] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [11286.617499] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- [11415.613576] EXT4-fs (dm-1): bad geometry: block count 239861760 exceeds size of device (239453184 blocks)
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mylvm
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ vgchange -a y
- File descriptor 3 (/usr/share/bash-completion/completions) leaked on vgchange invocation. Parent PID 5408: bash
- /dev/mapper/control: open failed: Permission denied
- Failure to communicate with kernel device-mapper driver.
- WARNING: Running as a non-root user. Functionality may be unavailable.
- No volume groups found
- ubuntu@ubuntu:~$ sudo vgchange -a y
- 2 logical volume(s) in volume group "ubuntu" now active
- ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mylvm
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ sudo mount /dev/mapper/ubuntu-root /mylvm
- mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
- missing codepage or helper program, or other error
- In some cases useful info is found in syslog - try
- dmesg | tail or so
- ubuntu@ubuntu:~$ fsck.ext3 -C 0 -f /dev/mapper/ubuntu-root
- e2fsck 1.42.5 (29-Jul-2012)
- fsck.ext3: Permission denied while trying to open /dev/mapper/ubuntu-root
- You must have r/w access to the filesystem or be root
- ubuntu@ubuntu:~$ sudo fsck.ext3 -C 0 -f /dev/mapper/ubuntu-root
- e2fsck 1.42.5 (29-Jul-2012)
- The filesystem size (according to the superblock) is 239861760 blocks
- The physical size of the device is 239453184 blocks
- Either the superblock or the partition table is likely to be corrupt!
- Abort<y>? yes
- ubuntu@ubuntu:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement