Article View: pl.comp.os.linux.sprzet
Article #74399Re: boot by-id, by-uuid - niby działa ale nie do końca.
From: K
Date: Wed, 22 Feb 2012 08:14
Date: Wed, 22 Feb 2012 08:14
109 lines
4211 bytes
4211 bytes
W dniu 20-02-2012 16:15, Servant pisze:
> Servant<freinag@rcs.cy> napisał(a) w wiadomosci do grupy dyskusyjnej
>
>> poniższe lilo wykonał bez szemrania.
>>> root= "UUID=85c285c3-7e2f-4956-abe2-0e5bf1c33544"
>>
> Ale uruchomić system się nie chciał. Napisało, że ta linia jest błędna.
>
> Jednak problem pokonałem. Dla potomności:
> Dystrybucja Slackware 13.37 z jądrem 2.6.37.6-smp
> Utworzyłem initrd.gz poleceniem
> mkinitrd -c -k 2.6.37.6-smp -m ext3 -f ext3 -r UUID="85c285c3-7e2f-
> 4956-abe2-0e5bf1c33544"
>
> W lilo.conf mam tak:
>
> -------------------------------------------
> boot="/dev/disk/by-id/ata-ST3250620A_3QF0FJKZ"
> message = /boot/boot_message.txt
> prompt
> timeout = 200
> change-rules
> reset
> vga = 769
> lba32
> append="vt.default_utf8=1"
> # End LILO global section
>
> # Linux bootable partition config begins
> image = /boot/vmlinuz
> initrd = /boot/initrd.gz
> root = /dev/disk/by-uuid/85c285c3-7e2f-4956-abe2-0e5bf1c33544
> label = Linux
> read-only
> -------------------------------------------
>
> Ponieważ na tym dysku są dwie zwykłe partycje i swap
> mój /etc/fstab wygląda następująco:
>
> -------------------------------------------
> UUID="85c285c3-7e2f-4956-abe2-0e5bf1c33544"<--->/ ext3 defaults 1
> 1
> UUID="2e110cf5-0b93-4143-ad9c-a59ae51c5222"<--->/dane2 ext3
> noatime,nodiratime,rw 1 2
> UUID="69a8704d-ba17-4cc7-afa6-647ed1b2c0f0"<--->swap swap
> defaults 0 0
> -------------------------------------------
>
> System się uruchomił.
> Po podpięciu nowego dysku SATA, - również działa.
> /bin/df jednak pokazuje, że teraz partycje dysku systemowego to
> /dev/sdeX
> a nowo podpięty dysk /dev/sdd (poprzednio /dev/sdd był dyskiem
> systemowym).
>
> Zatem wszystko działa.
> Oczywiście UUID-y to konkretnie moje partycje. Chyba nikomu
> nie przyjdzie do glowy tego bezmyślnie kopiować. :-)
>
>
>
>
witam,
zrobilem:
# mkinitrd -c -k 3.2.7-xxx -m ext4 -f ext4 -r
UUID="e4fc0b12-df7f-4254-8740-5509f7343c24"
5732 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
# lilo
Added Linux
Added 3.2.7-xx
Warning: The initial RAM disk is too big to fit between the kernel and
the 15M-16M memory hole. It will be loaded in the highest memory as
though the configuration file specified "large-memory" and it will
be assumed that the BIOS supports memory moves above 16M.
Added 3.2.7-xxx ? *
One warning was issued.
lilo wyglada tak:
lba32
append=" vt.default_utf8=1"
boot = "/dev/disk/by-id/ata-WDC_WD800JB-00JJC0_WD-WCAM9S536040-part1"
prompt
timeout = 50
change-rules
reset
vga = normal
default = 3.2.7-xxx
image = /boot/vmlinuz
root = /dev/sdf1
label = Linux
read-only
image = /boot/3.2.7-xx
root = /dev/sdf1
label = 3.2.7-r0x
read-only
image = /boot/3.2.7-xxx
initrd = /boot/initrd.gz
root = /dev/disk/by-uuid/e4fc0b12-df7f-4254-8740-5509f7343c24
label = 3.2.7-xxx
read-only
Technical Details
Message-ID:
<ji2865$ig$1@mx1.internetia.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.internetia.pl!not-for-mailReferences:
<Xns9FE7D0856B985freinagrcscy@127.0.0.1> <87r4ykjju2.fsf@alfa.kjonca> <Xns9FE8C8C8AB2DDfreinagrcscy@127.0.0.1> <87pqe3aaq1.fsf@alfa.kjonca> <Xns9FE8D286342F4freinagrcscy@127.0.0.1> <Xns9FFFA559CE37freinagrcscy@127.0.0.1>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.internetia.pl!not-for-mail From: K <a@b.c> Newsgroups: pl.comp.os.linux.sprzet Subject: Re: boot by-id, by-uuid - niby działa ale nie do końca. Date: Wed, 22 Feb 2012 09:14:32 +0100 Organization: Netia S.A. Lines: 109 Message-ID: <ji2865$ig$1@mx1.internetia.pl> References: <Xns9FE7D0856B985freinagrcscy@127.0.0.1> <87r4ykjju2.fsf@alfa.kjonca> <Xns9FE8C8C8AB2DDfreinagrcscy@127.0.0.1> <87pqe3aaq1.fsf@alfa.kjonca> <Xns9FE8D286342F4freinagrcscy@127.0.0.1> <Xns9FFFA559CE37freinagrcscy@127.0.0.1> NNTP-Posting-Host: ip-83-238-41-98.vccsystems.pl Mime-Version: 1.0 X-Trace: mx1.internetia.pl 1329898501 592 83.238.41.98 (22 Feb 2012 08:15:01 GMT) X-Complaints-To: abuse@inetia.pl NNTP-Posting-Date: Wed, 22 Feb 2012 08:15:01 +0000 (UTC) In-Reply-To: <Xns9FFFA559CE37freinagrcscy@127.0.0.1> X-Tech-Contact: usenet@internetia.pl User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 X-Server-Info: http://www.internetia.pl/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit