Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3083  / 3 Years ago, sat, august 21, 2021, 7:22:39

I was doing an update and it said that the drive was full.



Here is df -h:



Filesystem            Size  Used Avail Use% Mounted on
78G 2.7G 72G 4% /
none 242M 184K 242M 1% /dev
none 247M 0 247M 0% /dev/shm
none 247M 48K 247M 1% /var/run
none 247M 0 247M 0% /var/lock
none 247M 0 247M 0% /lib/init/rw
/dev/sda1 228M 225M 0 100% /boot


Here is fdisk -l:



Disk /dev/sda: 85.9 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 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: 0x00035711

Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 249855 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 32 1045 8136705 5 Extended
/dev/sda3 1045 10444 75498496 83 Linux
/dev/sda5 32 1045 8136704 8e Linux LVM


Here is mount:



/dev/mapper/sprintsftp-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda1 on /boot type ext2 (rw)


Here is /etc/fstab:



# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/mapper/machine-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=08ddfaa4-0da2-405e-95b2-b228a95dc761 /boot ext2 defaults $
/dev/mapper/machine-swap_1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


How can I fix /dev/sda1 being mounted on /boot?


More From » mount

 Answers
7

As I said in my comment, perhaps your only issue a full /boot partition. Since you're using LVM, the output you posted in fstab, mount, etc look fine.



And the best way to free space in /boot is to remove old kernel versions. If you're new to this, I suggest using Software Center:




  • Search for "linux-image". Take a note on the most recent one (your current kernel), and delete all the previous ones. Only remove the ones with version numbers like linux-image-3.2.0-xx-server, do not delete the "main" linux-image-server or linux-image. Be sure to keep your current version number.


  • Do the same with "linux-headers"




You're good to go!



Also, as a side-note... you may reconsider administering an Ubuntu Server if you still need tutorials for managing disk space and kernel versions. Have you tried Ubuntu Desktop?


[#35453] Sunday, August 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
itutejagua

Total Points: 89
Total Questions: 124
Total Answers: 113

Location: British Indian Ocean Territory
Member since Sun, Feb 13, 2022
2 Years ago
;