我有这个:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1217 9775552 83 Linux
/dev/sda2 1218 60801 478608480 83 Linux
我想把sda2缩小10倍,让sda1有更多的空间。sda2是LVM上的一个PV,但是VG中有一些空闲空间,所以我不必担心文件系统萎缩。
我如何告诉我的LVM将数据从sda2的前10 it中移出,然后重做我的分区表以
我的笔记本电脑上有Ubuntu,在启动过程中我无法引导os,我收到一条消息说
[ 0.079681] Ignoring BGRT: invalid status 0 (expected 1)
fsck from util-linux 2.26.2
/dev/sda2 contains a file system with errors, check forced.
/dev/sda2: Inodes that were part of a corrupted orphanlinked list found.
/dev/sda2: UNEXPECTED INCONSISTENCY; RU
在我的GRUB 2配置中,我的系统启动良好:
linux /bzImage root=/dev/sda2 init=/usr/lib/systemd/systemd ro
但是,如果我用相应的UUID替换/dev/sda2:
linux /bzImage root=UUID=666c2eee-193d-42db-a490-4c444342bd4e init=/usr/lib/systemd/systemd ro
然后在引导过程中失败:
kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,
我想增加Ubuntu12.04.5LTS服务器上的主分区大小。我在试着遵循这家伙的教程。
http://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk
在“增加逻辑卷”步骤(我使用的是sda2而不是sda3):
root@Ubuntu:~# pvcreate /dev/sda2
Physical volume "/dev/sda2" successfully created
root@Ubuntu:~# vgdisplay
No vo
因此,我试图将物理本机CentOS 4.6安装移动到CentOS 5.5服务器上的DomU实例。我遵循了教程@ CentOs - WIki提供的内容,但在运行xm时遇到了以下问题。
📷
Traceback (most recent call last):
File "/usr/bin/pygrub", line 691, in ?
data = fs.open_file(chosencfg["ramdisk"],).read()
IOError: [Errno 2] No such file or directory
No handlers coul
我知道已经提出了类似的问题(http://askubuntu.com/questions/35303/linux-swap-partition-is-in-extended-drive),但是分区对齐警告也有类似的问题。
我使用全磁盘/自动分区选项在640 GB的磁盘上安装了Ubuntu10.04。Ubiquity创建了以下模式:
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 76353 613297152 83 Linux
/dev/s
我的磁盘结构如下:
sda1 : Windows
sda2 : an old Linux distribution
sda3 : a new Linux distribution
sda4 : data partition
我已经安装了grub,并在启动时选择了系统。我现在只在sda3上使用新的Linux发行版,它运行得很好。我在设置/etc/fstab文件时做了一些修改,以便在启动时安装CDROM和数据分区。
我最近看到了新Linux系统(sda3)中的/etc/fstab文件如下所示:
/dev/sda2 / ext4 errors=remount-ro 0 1 #NOTE
我从一个可引导的Ubuntu USB棒上做了一次检查,然后运行
sudo fsck -y /dev/sda2
在计算机的主Linux分区上。输出类似于
...
Pass 1B: Rescanning for multiply-claimed blocks
Error while scanning inodes (207...): Inode checksum does not match inode
/dev/sda2: **** FILE SYSTEM WAS MODIFIED ***
e2fsck: aborted
/dev/sda2: **** FILE SYSTEM WAS MO