[Çözüldü] /boot bölümünde yer sıkıntısı

Başlatan utdmr, 11 Ekim 2009 - 11:13:15

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

utdmr

Arkadaşlar, bugün Karmic'e güncelleme yapmaya karar verdiğimde, /boot noktasının alanının yeterli olmadığını gördüm. Bölümleme sırasında gereksiz bir şekilde /boot için ayrı bir ext2 partisyonu oluşturmuştum(daha ext4 yeni çıkmıştı, belki GRUB sorun çıkarır diye). Şimdi de bana o bölümün yeterli olmadığı söyleniyor. Düzeltmek için benim fikrim, boot parçasını bağlamayarak, sda6'da bir boot oluşturmak. Bunun için sistemimde yapmam gereken değişiklikler nelerdir?

Sanki sırasıyla;

Yeni bir boot1 klasörü oluşturulacak
Eski sda1 in içeriği bu klasöre kopyalanacak
boot umount edilecek
boot klasörünün içine boot1 dekiler konulacak
/etc/fstab düzenlenecek
menu.lst düzenlenecek

Başka yapmam gereken bir şey var mı, sorun yaşayabileceğim yerler?

Gerekebilecek çıktılar aşağıda(biraz abartmış olabilirim :)).

"fdisk -l" çıktım:
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcb94cb94

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           5       40131   83  Linux
/dev/sda2               6       31737   254887290    5  Extended
/dev/sda3   *       31738       38912    57633187+   7  HPFS/NTFS
/dev/sda5               6         127      979933+  82  Linux swap / Solaris
/dev/sda6             128       31737   253907293+  83  Linux


"mount" çıktım:
/dev/sda6 on / type ext4 (rw,relatime,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)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
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)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.28-14-generic/volatile type tmpfs (rw,mode=755)
/dev/sda1 on /boot type ext2 (rw,relatime)


"df -h" çıktısı:Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6             239G  177G   51G  78% /
tmpfs                 501M     0  501M   0% /lib/init/rw
varrun                501M  132K  501M   1% /var/run
varlock               501M     0  501M   0% /var/lock
udev                  501M  168K  501M   1% /dev
tmpfs                 501M  180K  501M   1% /dev/shm
lrm                   501M  2.2M  499M   1% /lib/modules/2.6.28-14-generic/volatile
/dev/sda1              37M   31M  4.0M  89% /boot
/dev/sdb1             1.4T  816G  490G  63% /media/DEPO1


"/etc/fstab" içeriği:
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' 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>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda6 during installation
UUID=3d15edcf-6323-41a7-81fc-25cdf956d16c /               ext4    relatime,errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=d6e62c50-3911-4d15-bd5b-922fbecae84a /boot           ext2    relatime        0       2
# swap was on /dev/sda5 during installation
UUID=ae97b615-0e83-4b4d-aa56-eef6ca93fbe1 none            swap    sw              0       0
/dev/scd1       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
utdmr@utdmr-ubuntu:~/Downloads$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' 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>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda6 during installation
UUID=3d15edcf-6323-41a7-81fc-25cdf956d16c /               ext4    relatime,errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=d6e62c50-3911-4d15-bd5b-922fbecae84a /boot           ext2    relatime        0       2
# swap was on /dev/sda5 during installation
UUID=ae97b615-0e83-4b4d-aa56-eef6ca93fbe1 none            swap    sw              0       0
/dev/scd1       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0


"/boot/grub/menu.lst" içeriği
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=3d15edcf-6323-41a7-81fc-25cdf956d16c ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=d6e62c50-3911-4d15-bd5b-922fbecae84a

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-14-generic
uuid d6e62c50-3911-4d15-bd5b-922fbecae84a
kernel /vmlinuz-2.6.28-14-generic root=UUID=3d15edcf-6323-41a7-81fc-25cdf956d16c ro quiet splash
initrd /initrd.img-2.6.28-14-generic
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

title Microsoft Windows
rootnoverify (hd0,2)
savedefault
makeactive
chainloader +1


Kişisel Blogum: Çoğunlukla Zararsız - cogunluklazararsiz.org
--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -and a lot of courage- to move in the opposite direction.

bytan

Sda6'daki boot klasörünün içine, sda1'deki boot klasörünün içindekileri aktarırsan, Sda1'i sistemden ayırırsan, yeniden grub kurulumu da yaparsan, şayet grub-grub2 geçiş sırasında bir sorun çıkartmazsa, işe yarar diye düşünüyorum.

Umut en büyük kötülüktür; işkenceyi uzatır. - F.N.


Bir şey ne ise odur, bu kadar. Öyleyse, iki şey arasında bağdaşıklık varsa, bu aralarında iletişim kuruyorlar demek değildir.
"... kavrayışını bilgi ile derinleştir ..."
PF @ ST

utdmr

Alıntı yapılan: bytan - 11 Ekim 2009 - 13:09:53
Sda6'daki boot klasörünün içine, sda1'deki boot klasörünün içindekileri aktarırsan, Sda1'i sistemden ayırırsan, yeniden grub kurulumu da yaparsan, şayet grub-grub2 geçiş sırasında bir sorun çıkartmazsa, işe yarar diye düşünüyorum.

menu.lst'yi düzenlemem gerekir mi?
Kişisel Blogum: Çoğunlukla Zararsız - cogunluklazararsiz.org
--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -and a lot of courage- to move in the opposite direction.

bytan

Alıntı Yap
kernel  /boot/vmlinuz-2.6.28-14-generic root=UUID=3d15edcf-6323-41a7-81fc-25cdf956d16c ro quiet splash
initrd /boot/initrd.img-2.6.28-14-generic

Yukarıdaki gibi düzenledikten sonra dikkat edeceğin iki kısımdan birisi uuid değerleri, diğeri ise gerçekten vmlinuz-xxxxxxxxx-generic dosyasının ve initrd.img-xxxxxx dosyasının /boot klasörünün altında olup olmadığı durumu. Gözden kaçırdığımız birşey varsa, zaten hata verir; gerekli düzenlemeyi yapmaya çalışırız.
Umut en büyük kötülüktür; işkenceyi uzatır. - F.N.


Bir şey ne ise odur, bu kadar. Öyleyse, iki şey arasında bağdaşıklık varsa, bu aralarında iletişim kuruyorlar demek değildir.
"... kavrayışını bilgi ile derinleştir ..."
PF @ ST

utdmr

Alıntı yapılan: bytan - 11 Ekim 2009 - 18:17:09
Alıntı Yap
kernel  /boot/vmlinuz-2.6.28-14-generic root=UUID=3d15edcf-6323-41a7-81fc-25cdf956d16c ro quiet splash
initrd /boot/initrd.img-2.6.28-14-generic

Yukarıdaki gibi düzenledikten sonra dikkat edeceğin iki kısımdan birisi uuid değerleri, diğeri ise gerçekten vmlinuz-xxxxxxxxx-generic dosyasının ve initrd.img-xxxxxx dosyasının /boot klasörünün altında olup olmadığı durumu. Gözden kaçırdığımız * bir şey varsa, zaten hata verir; gerekli düzenlemeyi yapmaya çalışırız.

uuid hakkında bilgi verebilir misiniz, diskimin uuid bilgisini hangi komutla öğrenebilirim? root=/dev/sdax şeklinde belirlemenin bir dezavantajı var mıdır?
Kişisel Blogum: Çoğunlukla Zararsız - cogunluklazararsiz.org
--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -and a lot of courage- to move in the opposite direction.

heartsmagic

Normalde
blkid ama Karmic'te sudo gerekiyor olabilir.
UUID ile de yaparsın normal sdaX şeklinde de, bir fark olmaz. Ancak dağıtımlar artık UUID ile iş görmeye başladılar.

Benim daha kısa bir önerim var :) /boot altındaki eski kernelleri güzelce sildiğinde yer açılıyor olması lazım. Böylece ayrı bir /boot bölümü için uğraşmamış olursun.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

utdmr

Alıntı yapılan: heartsmagic - 11 Ekim 2009 - 18:53:03
Benim daha kısa bir önerim var :) /boot altındaki eski kernelleri güzelce sildiğinde yer açılıyor olması lazım. Böylece ayrı bir /boot bölümü için uğraşmamış olursun.
İşime gelir o yöntem :).
abi-2.6.28-11-generic  config-2.6.28-11-generic  grub                          lost+found                    System.map-2.6.28-14-generic  vmcoreinfo-2.6.28-14-generic  vmlinuz-2.6.28-14-generic
abi-2.6.28-14-generic  config-2.6.28-14-generic  initrd.img-2.6.28-11-generic  memtest86+.bin                System.map-2.6.28-15-generic  vmcoreinfo-2.6.28-15-generic  vmlinuz-2.6.28-15-generic
abi-2.6.28-15-generic  config-2.6.28-15-generic  initrd.img-2.6.28-14-generic  System.map-2.6.28-11-generic  vmcoreinfo-2.6.28-11-generic  vmlinuz-2.6.28-11-generic

hangi dosyaları silebilirim?
Kişisel Blogum: Çoğunlukla Zararsız - cogunluklazararsiz.org
--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -and a lot of courage- to move in the opposite direction.

heartsmagic

Son kernel haricinde diğer kernelleri ve ilgili dosyaları silebilirsin. Örneğin orada sadece 2.6.28.15'e ait dosyalar kalsın. Diğerlerini -tedbir için- /home dizinine al.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

utdmr

Alıntı yapılan: heartsmagic - 11 Ekim 2009 - 19:38:03
Son kernel haricinde diğer kernelleri ve ilgili dosyaları silebilirsin. Örneğin orada sadece 2.6.28.15'e ait dosyalar kalsın. Diğerlerini -tedbir için- /home dizinine al.
Teşekkürler, sizin verdiğiniz yöntemle sorun çözüldü, etiketi yerleştiriyorum.

Ancak şimdilik kilitlemeyelim sorunu da, belki bilgisayarı yeniden başlatınca bir problem çıkar :).
Kişisel Blogum: Çoğunlukla Zararsız - cogunluklazararsiz.org
--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -and a lot of courage- to move in the opposite direction.

bytan

O kadar da dosya düzenleme anlatmıştım. :P
Umut en büyük kötülüktür; işkenceyi uzatır. - F.N.


Bir şey ne ise odur, bu kadar. Öyleyse, iki şey arasında bağdaşıklık varsa, bu aralarında iletişim kuruyorlar demek değildir.
"... kavrayışını bilgi ile derinleştir ..."
PF @ ST

utdmr

#10
Alıntı yapılan: bytan - 11 Ekim 2009 - 20:42:18
O kadar da dosya düzenleme anlatmıştım. :P

Hepsini düzeltmiştim, sonra @heartsmagic'in önerisiyle geri çevirdim :). En azından benzeri sorunlara kaynak olur :).

Sorun tamamen çözülmüştür. Teşekkürler.
Kişisel Blogum: Çoğunlukla Zararsız - cogunluklazararsiz.org
--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -and a lot of courage- to move in the opposite direction.