Saya sudah mulai menggunakan mesin yang memiliki Debian dan Windows 7 diinstal. Namun, setelah menginstal beberapa program saya mulai mendapatkan pesan bahwa tidak ada cukup ruang. Saya tahu bahwa sistem memiliki total lebih dari 1TB ruang hard disk dan melakukan riset. Tampaknya partisi root hanya 5GB.
Apakah ada cara untuk mengalokasikan lebih banyak ruang disk ke partisi tertentu tanpa menginstal ulang Linux?
Di bawah ini Anda dapat menemukan hasil dari beberapa perintah yang saya jalankan:
fdisk -l
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4a47e2fd
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 53507 429687500 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 53507 77826 195340289 5 Extended
Partition 3 does not end on cylinder boundary.
/dev/sda5 53507 53537 243712 83 Linux
/dev/sda6 53538 77826 195095552 8e Linux LVM
Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4a47e2fe
Device Boot Start End Blocks Id System
/dev/sdb1 2 62261 500097657+ f W95 Ext'd (LBA)
/dev/sdb5 2 62261 500097656+ 7 HPFS/NTFS
Disk /dev/dm-0: 4999 MB, 4999610368 bytes
255 heads, 63 sectors/track, 607 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 1996 MB, 1996488704 bytes
255 heads, 63 sectors/track, 242 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 20.0 GB, 19998441472 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-2 doesn't contain a valid partition table
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/HU-root 4.6G 4.4G 32M 100% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
udev 2.0G 220K 2.0G 1% /dev
tmpfs 2.0G 356K 2.0G 1% /dev/shm
/dev/sda5 231M 22M 198M 10% /boot
/dev/mapper/HU-home 19G 751M 17G 5% /home
Edit (info tambahan berdasarkan komentar):
# mount
/dev/mapper/HU-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda5 on /boot type ext3 (rw)
/dev/mapper/HU-home on /home type ext3 (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
# pvdisplay
--- Physical volume ---
PV Name /dev/sda6
VG Name HU
PV Size 186.06 GiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 47630
Free PE 41194
Allocated PE 6436
PV UUID wmEFAc-eSb6-r3qo-jIjy-vuKH-v9JK-eQfJFZ
Sebagai sidenote, saya juga akan menghargai saran untuk buku bagus yang menjelaskan subjek ini secara mendalam (sistem file, bagaimana berbagai sistem operasi memahami sistem file, dll).
/usr
, dan pindahkan Anda saat ini / usr di sana.
/
? (Posting outputmount
atau konten/etc/fstab
jika Anda tidak tahu.) Juga outputpvdisplay
(sebagai root) akan menarik karena Anda tampaknya menggunakan LVM.