You are not logged in.
So, the update of mkinitcpio broke my system. I know what the problem is from reading the posts here:
https://bbs.archlinux.org/viewtopic.php?id=134024
http://mailman.archlinux.org/pipermail/ … 24124.html
I was able to boot another distro's (puppy linux) live cd and add the "shutdown" and "fsck" hooks to /etc/mkinitcpio.conf
Now it seems that I need to recreate initramfs after changing mkinitcpio.conf.
I have no idea how to do this. Anybody have an idea, hopefully in noob language to do this?
Thanks v much.
Last edited by leberyo (2012-01-29 02:47:11)
Offline
It says:
Building image from preset: 'default'.
...
>Error: Specified kernel image does not exist: '/boot/vmliuz-linux'
...
...
/usr/bin/mkinitcpio: line 123: cannot create temp file for here-document: Read-only file system.
Error: Specified kernel image does not exist: '/boot/vmlinuz-linux
Any idea?
Offline
I think I screwed my system now@#%@%
Typed mount /boot
then mkinitcpio -p linux
now it won't let me get to command line.
freezes at initrd /kernel26.img
Offline
As I understand, you might need to boot live arch and chroot to your system and sudo mkinitcpio -p linux (as you already changed mkinitcpio.conf)
Offline
Running mkinitcpio -p linux without mounting all the filesystem changed my mtab file. So I think I need to fix my mtab file first.
I found an old post of mine with my mtab in it:
#UUID=8C6085FC6085ED70 /mnt/windows ntfs-3g defaults,noatime 0 0
/dev/sda2 /boot ext3 defaults 0 1
/dev/sda3 / ext4 defaults,noatime 0 1
/dev/sda5 /tmp ext4 defaults,nosuid,nodev 0 1
/dev/sda6 /var ext4 defaults,nosuid,nodev 0 1
/dev/sda7 /usr ext4 defaults,noatime,rw,nodev 0 1
/dev/sda8 swap swap defaults 0 0
/dev/sda9 /home ext4 defaults,noatime,nosuid,nodev 0 1
So, with my Puppy Linux LiveCd, I'll edit the mtab with these settings. Then,
mount /dev/sda2 /boot
mount /dev/sda3 /
mount /dev/sda5 /tmp
mount /dev/sda6 /var
mount /dev/sda7 /usr
mount /dev/sda8 swap
mount /dev/sda9 /home
After that, I should be able to reboot and have command prompt again, at which point I run
chroot /mnt
Then
mkinitcpio -p linux
Anything I'm missing??? Really appreciate all the help guys.
Offline
Offline
So, skip the mtab modification?
Just mount the partitions and then continue
chroot /mnt
mkinitcpio -p linux
Offline
chroot includes 4 steps (three mounts before chroot) and you have to mount everything as your original system had.
make executable script of this for chrooting
sudo mount -t proc proc $1/proc
sudo mount -t sysfs sys $1/sys
sudo mount -o bind /dev $1/dev
sudo chroot $1 /bin/bashexample filename "mychroot"
then if you put it in the path
you can anywhere use
mychroot /mnt
But before that, mount everything like it is in your os
And miniticpio whould work withou editing mtab. (I never touched mtab in my life..)
(This is safest way. but there are faster ones..)
Offline
I was able to mount my previous partitions and chrooted.
I did mount /dev/sda3 /mnt
mount /dev/sda2/ /mnt/boot
mount /dev/sda7 /mnt/usr
chroot /mnt
Now do I just do
Mkinitcpio -k /boot/your-kernel -c /etc/mkinitcpio.conf -g /boot/your-initramfs-image
Can you please give me an example of this? Do I have to know what kernel version and inert it in "your-kernel"?
or do I just
mkinitcpio -p ???
Thx I'm almost there...
Offline
In my case it works by
sudo mkinitcpio -p linuxOffline
mkinitcpio -p linux
>
bash: mkinitcpio: command not found
Offline
I guess in needs
sudo pacman -S mkinitcpio --noconfirmOffline
I guess in needs
sudo pacman -S mkinitcpio --noconfirm
Tried that as well:
bash: sudo: command not found
took out sudo.
bash: pacman: command not found
Offline
Chroot by this
sudo chroot /dir /bin/bashor use myscript to get binds
script is up here
edit:::!
I forgot to change the dir.
I think yours is /mnt
Last edited by akumixx (2012-01-28 23:16:12)
Offline
Do you mean:
sudo chroot /mnt /bin/bash ???
Offline
yes
Offline
Still the same.
sudo > command not found
mkinicpio > command not found
??
Offline
Use the three mounts
edit:::
It is also possible to run chroot this way
d='/mnt';sudo mount -t proc proc $d/proc;sudo mount -t sysfs sys $d/sys;sudo mount -o bind /dev $d/dev;sudo chroot $1 /bin/bashas a one command
Last edited by akumixx (2012-01-28 23:29:28)
Offline
Use the three mounts
I don't really know what you mean or how to do that...
Offline
now you can see my edited post, use the line as a one command
Offline
Fixed. Thank you all for the help.
/Usr was actually /dev/sda9, causing the problems. It seems that it changed from my initial installation.
Offline