我知道已经提出了类似的问题(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 system reserved (created automatically by windows os) -> PRIMARY
sda2 -> Win 8.1 -> PRIMARY
sda3 -> Ubuntu -> PRIMARY
sda5 -> swap as a logical partition, marked as 'Beginning'
sda6 -> home partition as a logical partition, mark
我有一个1TB的外部硬盘,我最近在上面安装了Ubuntu。在我有一些备份之前,我不想失去。因此,我为Ubuntu创建了一个新的分区。在此过程中,我一定是以某种方式将备份分区的类型从ext4更改为交换(虽然我不记得这么做,但这就是G以来向我展示的)。这个新的交换分区从未被新安装的Ubuntu使用过,它有自己的交换分区。尽管我认为可能性很大:有什么方法可以从备份(现在是交换)分区中取回数据吗?
为了澄清这种情况,下面是设备的当前分区表:
Partition Start End Size in sectors
1 * Linux Sw
使用CentOS 8.5
我在一个没有数据或分区表的新磁盘上尝试了这种方法。
GPT fdisk (gdisk) version 1.0.3
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
Command (? for help): n
Partition number (1-128, default 1):
First sector (34-4194270, default = 2048
在试图解决Windows问题时,我使用的工具删除了一些分区。我使用TestDisk来恢复分区。
虽然它成功地恢复了我的所有数据分区,但它无法恢复我的交换分区。通常,这并不是什么大问题,因为创建另一个交换分区很容易。但是,在这种情况下,它也找不到扩展分区,所以所有恢复的分区都是主分区,而不是逻辑分区。现在,我不能再创造了。
我想重新创建事件前fstab中显示的布局:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> No boot loader is installed in the MBR of /dev/sda.
sda8: __________________________________________________________________________
File system: ext4
我在Ubuntu的双引导下安装了Windows来玩Skyrim,这最终导致了GRUB的崩溃。在尝试了大量的东西来修复它(包括使用引导修复)之后,我将Ubuntu安装在一个新的分区中,与旧的Ubuntu和XP并行。之后,GRUB又起作用了,我现在可以访问我以前的Ubuntu和XP了,但是现在我有了两个Ubuntus,我想放弃新的Ubuntus。我怎么才能做到这一点而又不破坏食物呢?
以下是sudo fdisk -l的结果:
Device Boot Start End Blocks Id System
/dev/sda1 *
我有3个分区(linux、extended ),我需要将我的活动分区(linux)扩展到这些分区之后可用的空间。
更多信息:
#fdisk /dev/vda
Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/vda: 164 GiB, 176093659136 bytes, 3
在输入lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT时,我得到以下输出:
NAME SIZE FSTYPE TYPE MOUNTPOINT
sda 3.7T disk
├─sda1 1M part
├─sda2 512M swap part [SWAP]
├─sda3 3.6T linux_raid_member part
│ └─md2 3.6T ext4 raid1 /d