![Linux 및 Windows 이중 부팅 파티션을 확장하는 방법은 무엇입니까? 파티션 확장 후 Grub을 다시 빌드하는 방법은 무엇입니까?](https://linux55.com/image/190758/Linux%20%EB%B0%8F%20Windows%20%EC%9D%B4%EC%A4%91%20%EB%B6%80%ED%8C%85%20%ED%8C%8C%ED%8B%B0%EC%85%98%EC%9D%84%20%ED%99%95%EC%9E%A5%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%20%ED%8C%8C%ED%8B%B0%EC%85%98%20%ED%99%95%EC%9E%A5%20%ED%9B%84%20Grub%EC%9D%84%20%EB%8B%A4%EC%8B%9C%20%EB%B9%8C%EB%93%9C%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
듀얼 부팅 Linux(Kali Linux)와 Windows를 사용하고 있는데 Linux 저장 공간이 부족하여 Windows 파티션을 축소하고 Linux 파티션을 확장하고 싶습니다.
이에 대한 게시물이 많다는 것을 알고 있으며 대부분을 확인했지만 제 경우에는 시작 섹터에서 Linux 파티션(/dev/sda8)을 확장해야 했고 대부분의 게시물에서는 파티션 크기를 조정하는 방법을 설명했지만 그들은 지정되지 않았습니다Linux 파티션 확장 후 Grub을 다시 빌드하는 방법
첫 번째 이미지는 디스크의 현재 상태입니다.
두 번째 그림은 내가 원하는 확장 방법입니다(Kali Linux -LIVE USB에서).
/dev/sda8 ==>> 리눅스 파티션
/dev/sda6 ==>> 창 파티션(E 드라이브:)
/dev/sda8을 확장하고 싶고 오른쪽/시작 섹터에서 확장하고 있으므로 Grub을 재구성해야 합니다. 그렇죠?Linux 파티션을 확장한 후 grub을 다시 빌드하는 방법은 무엇입니까?
저는 Debian Linux 배포판을 사용하고 있습니다.Kali Linux
, 내 노트북에 관한 도움이 될 수 있는 주요 정보는 다음과 같습니다.
fdisk -l
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: TOSHIBA MQ04ABF1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A60A71DD-D86F-4DB5-9A7A-915AE5991E42
Device Start End Sectors Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 314778396 314211101 149.8G Microsoft basic data
/dev/sda4 314779648 316571647 1792000 875M Windows recovery environment
/dev/sda5 316571648 1083027455 766455808 365.5G Microsoft basic data
/dev/sda6 1134227456 1848948735 714721280 340.8G Microsoft basic data
/dev/sda7 1951885312 1953523711 1638400 800M Windows recovery environment
/dev/sda8 1848948736 1942423551 93474816 44.6G Linux filesystem
/dev/sda9 1942423552 1951885311 9461760 4.5G Linux swap
Partition table entries are not in disk order.
df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.8G 0 1.8G 0% /dev
tmpfs 376M 2.0M 374M 1% /run
/dev/sda8 44G 39G 3.2G 93% /
tmpfs 1.9G 104M 1.8G 6% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/sda1 256M 26M 231M 11% /boot/efi
tmpfs 376M 88K 376M 1% /run/user/0
mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1880636k,nr_inodes=470159,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=384424k,mode=755)
/dev/sda8 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14743)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=384420k,nr_inodes=96105,mode=700)
gvfsd-fuse on /run/user/0/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda8 during installation
UUID=c1b32d6c-34a5-4628-b126-862be53fc9de / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=E06C-6211 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda9 during installation
UUID=9a8a2b86-53c5-4667-8e07-9e4304a2191d none swap sw 0 0