Sada je: 20 ruj 2019, 12:40.
Diskusije usko vezane uz Arch Linux i srodne distribucije.

Moderator/ica: Moderatori/ce

mkinitcpio -p linux dok si u chrootu
ne bi bilo lose da ponovno reinstaliras grub nakon toga tj grub-mkconfig > /boot/grub/grub.conf i onda grub-install
Slamd64
Slamd64
Kada trebam napraviti mkinitcpio:
Kod: Označi sve
[root@archbang /]# mkinitcpio -p linux
==> ERROR: /proc must be mounted!

rijesen mkinitcpio!
ali, "HOOK "block" cannot be found".
Zadnja izmjena: PunkBastard; 21 tra 2013, 23:37; ukupno mijenjano 1 put/a.
I don't want to be a human. I want to see gamma rays, I want to hear x-rays and I want to smell dark matter. I want to reach out with something other than this prehensile paws and feel the solar wind of a super nova flowing over me.
Avatar
Postovi: 1975
Postovi: 1975
Pridružen/a: 19 srp 2011, 22:39
Lokacija: wonderland
Podijelio/la zahvalu: 8 puta
Primio/la zahvalu: 38 puta
Spol: M
OS: Debian 7 Wheezy
ako nisi isao arch-chroot onda moras uraditi slijedece osim mount /dev/sda1 /mnt :
# mount -t proc none /mnt/proc
# mount --rbind /sys /mnt/sys
# mount --rbind /dev /mnt/dev
chroot /mnt /bin/bash
Slamd64
Slamd64
ma mountao sam to sve, sredio sam si grub, pokušao prema ovome:
https://wiki.archlinux.org/index.php/In ... _a_USB_key
gdje je using on multiple machines, napravio sam menu.lst i prebacio ga u grub.cfg, problem je što nije mogao naći kernel pa sam pokušao vratiti normalan cfg ali nema backupa, za backup sam mislio da je example ali kada sam pogledao to je bio example a ne backup, i tako kada sam pokušao generirati grub.cfg sa "grub-mkconfig" davao mi je "failed to get canonical path" i za to nisam našao rješenje. Probao reinstalirati ali bezuspješno, grub se ne da instalirati, vraća mi "/boot/grub" is not readable on boot iako je na particiji boot flag uključen.

Sada ću opet pokušati CrunchBang sa "dd" ali ne znam kako treba biti formatiran USB da bi to radilo.
I don't want to be a human. I want to see gamma rays, I want to hear x-rays and I want to smell dark matter. I want to reach out with something other than this prehensile paws and feel the solar wind of a super nova flowing over me.
Avatar
Postovi: 1975
Postovi: 1975
Pridružen/a: 19 srp 2011, 22:39
Lokacija: wonderland
Podijelio/la zahvalu: 8 puta
Primio/la zahvalu: 38 puta
Spol: M
OS: Debian 7 Wheezy
jesi li ti provjerio sa smartctl "zdravlje" tog diska. mozda je u pitanju nesto drugo.
znaci smartctl -t short /dev/sda1 ili pod kojim je vec imenom
smartctl -H /dev/sda1 pokreni to nakon 2 min nakon sto zavrsi test (nece ti javiti da je zavrsio, vec moras gledati na sat).

ja sam jednom pokusao instalirati debian na usb i bilo je sporo ko vjecnost.
Slamd64
Slamd64
USB je ok, chromeOS se s njega bootao normalno (bio je live ali nebitno), crunchbang isto imao problema s bootom.
I don't want to be a human. I want to see gamma rays, I want to hear x-rays and I want to smell dark matter. I want to reach out with something other than this prehensile paws and feel the solar wind of a super nova flowing over me.
Avatar
Postovi: 1975
Postovi: 1975
Pridružen/a: 19 srp 2011, 22:39
Lokacija: wonderland
Podijelio/la zahvalu: 8 puta
Primio/la zahvalu: 38 puta
Spol: M
OS: Debian 7 Wheezy
Opet aktivno.
Update: GRUB se uspješno diže sa USB-a, kernel uredno prepoznat. Kernel ne prepoznaje USB uređaje pri bootanju i samim time korisnik biva bačen u "rootfs" okruženje. Pomnijim kopanjem po sjećanju o instalaciji došao sam do zaključka da se problem javlja zbog "block" HOOK-a u kernelu za koji je "mkinitcpio" rekao da ga ne prepoznaje.
Ima li tko ideja što bih mogao staviti u HOOKS ? usb HOOK je stavljen svuda, ne prepoznaje ga. Sada još "usbinput" HOOK koji ne bi trebao imati veze sa USB-om sa kojega se boota ali ne škodi probati.

Update_2: Ispis "mkinitcpio -p linux":
Kod: Označi sve
mkinitcpio -p linux
==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.6.8-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
==> ERROR: Hook 'block' cannot be found
  -> Running build hook: [autodetect]
  -> Running build hook: [pata]
  -> Running build hook: [scsi]
  -> Running build hook: [sata]
  -> Running build hook: [filesystems]
  -> Running build hook: [usbinput]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.6.8-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
==> ERROR: Hook 'block' cannot be found
  -> Running build hook: [pata]
  -> Running build hook: [scsi]
  -> Running build hook: [sata]
  -> Running build hook: [filesystems]
  -> Running build hook: [usbinput]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
I don't want to be a human. I want to see gamma rays, I want to hear x-rays and I want to smell dark matter. I want to reach out with something other than this prehensile paws and feel the solar wind of a super nova flowing over me.
Avatar
Postovi: 1975
Postovi: 1975
Pridružen/a: 19 srp 2011, 22:39
Lokacija: wonderland
Podijelio/la zahvalu: 8 puta
Primio/la zahvalu: 38 puta
Spol: M
OS: Debian 7 Wheezy
A da ipak probas s Archom?

Gesendet von meinem MT11i mit Tapatalk 2
Slamd64
Slamd64
Slamd64 je napisao/la:A da ipak probas s Archom?

Gesendet von meinem MT11i mit Tapatalk 2


slika
I don't want to be a human. I want to see gamma rays, I want to hear x-rays and I want to smell dark matter. I want to reach out with something other than this prehensile paws and feel the solar wind of a super nova flowing over me.
Avatar
Postovi: 1975
Postovi: 1975
Pridružen/a: 19 srp 2011, 22:39
Lokacija: wonderland
Podijelio/la zahvalu: 8 puta
Primio/la zahvalu: 38 puta
Spol: M
OS: Debian 7 Wheezy
Aha!
Kod: Označi sve
[punkbastard@archbang ~]$ mount -l | grep sdb
/dev/sdb3 on / type ext4 (rw,relatime,data=ordered)
/dev/sdb2 on /boot type ext4 (rw,relatime,data=ordered)
[punkbastard@archbang ~]$ sudo parted -l
Model: ATA WDC WD7500BPVT-2 (scsi)
Disk /dev/sda: 750GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  537GB  537GB  primary  ext4
 2      537GB   750GB  213GB  primary  ext4


Model: ADATA USB Flash Drive (scsi)
Disk /dev/sdb: 4052MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  1007kB  990kB                      bios_grub
 2      1007kB  512MB   511MB   ext4               boot
 3      512MB   4000MB  3488MB  ext4

Ide ArchBang, htio, ne htio.
I don't want to be a human. I want to see gamma rays, I want to hear x-rays and I want to smell dark matter. I want to reach out with something other than this prehensile paws and feel the solar wind of a super nova flowing over me.
Avatar
Postovi: 1975
Postovi: 1975
Pridružen/a: 19 srp 2011, 22:39
Lokacija: wonderland
Podijelio/la zahvalu: 8 puta
Primio/la zahvalu: 38 puta
Spol: M
OS: Debian 7 Wheezy

Na mreži
Trenutno korisnika/ca: / i 1 gost.