You are not logged in.
Pages: 1
hi
i just installed arch on my machine this morning and i was quite happy with it, when i was all done setting it up the way i wanted it to be i thought i'd install debian alongside when i need to do other stuff, i didn't want to clog up my arch with all sorts of things i never use
when selecting my partitions debian informed me that there are some errors on my boot partition and i confirmed taht it's ok to delete them (seamed like a good idea at the time), but now i can't access my arch anymore
can anyone tell me what to do ?
Last edited by red-guy (2011-03-21 15:12:37)
Offline
For a kick-off - at least tell us your partition layout and on what partitions you installed arch and debian.
Your post above is less than helpful - it's like: "I've done something wrong - please help"
Offline
Sigh, what can I do for you now? At least tell us what files did you deleted?
tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ
Offline
Formating your boot partition isn't really a good move, now you won't be able to boot at all. You'll have too reinstall GRUB. Worst case is that you'll have to reinstall your whole system (which is a worst choice ever when you can't manage all other options).
Take a look at the wiki:
https://wiki.archlinux.org/index.php/GRUB
Also info about grub at the debian site:
http://grub.enbug.org/Debian
And make sure you rebuild your initramfs.
http://kernel-handbook.alioth.debian.or … ramfs.html
Last edited by lives2evil (2011-03-21 15:09:59)
tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ
Offline
perhaps i wasn't too clear, i CAN boot into debian, when installing debian i formatted the boot partition, and yes, it wasn't a good idea but debian said it had errors so the only thing i could do was either to quit or format it
if i run update-grub i get
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found Arch on /dev/sda5
done
but it doesn't add arch to the debian grub file
Offline
Oh, I did misunderstand you. I thought you formated /boot partition while running debian.
So while you're installing debian, it format your boot partition. Then your kernel26.img was no more of course it won't boot . So can you try this. I'm not very sure but I think it should work.
- Restart and boot from your archlinux live cd.
then run these with root:
mount /dev/sda5 /mnt
cd /mnt
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
mount /dev/sda1 boot/
chroot . /bin/bash
mkinitcpio -p kernel26
exit
reboot
then boot to your debian system, run update-grub.
tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ
Offline
i just tried that
everything went well according to the arch output, i rebooted, update-grub gives me the same output but now i just have 2 entries on my fstab, both are debian instead of just one debian
ones's debian normal and the other is debian (on sda5) but that debian on sda5 should be arch
any other idea?
Offline
menuentry Debian Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 6b84906a-9ea0-4c1d-a882-c2a3c75e6bf3
linux /vmlinuz-2.6.32-5-686 root=UUID=ea772f9c-58bb-4e55-b14a-8cdc3990581e ro quiet splash
initrd /initrd.img-2.6.32-5-686
}
menuentry "Debian Linux, with Linux 2.6.32-5-686 (on /dev/sda5)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 6b84906a-9ea0-4c1d-a882-c2a3c75e6bf3
linux /vmlinuz-2.6.32-5-686 root=UUID=ea772f9c-58bb-4e55-b14a-8cdc3990581e ro quiet splash
initrd /initrd.img-2.6.32-5-686
}
/dev/sda1 = 6b84906a-9ea0-4c1d-a882-c2a3c75e6bf3
/dev/sda5 = ff5f0ad5-c280-4665-a2e3-5b182082e085
/dev/sda6 = ea772f9c-58bb-4e55-b14a-8cdc3990581e
i guess step 1 would be to change the "root=UUID=ea772f9c-58bb-4e55-b14a-8cdc3990581e ro quiet splash" from the second entry to the correct uuid and initrd to /kernel26.img but what about the other variables?
Last edited by red-guy (2011-03-21 14:45:51)
Offline
how can i get the vmlinuz26 that was originally there?
update: i took it from a previous arch install on my external drive
any help would still be appreciated
Last edited by red-guy (2011-03-21 14:53:14)
Offline
try running "ls /boot" see if there's a kernel26.img file there.
if so Add a new menuentry to grub.lst
# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,1)
linux /vmlinuz26 root=/dev/sda5 ro
initrd /kernel26.img
}
if there's no kernel26.img, try "ls /home/arch/boot/", see if it's there also tell me if /home/arch/boot is not existed.
tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ
Offline
currently my grub looks like
menuentry "Arch Linux" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 6b84906a-9ea0-4c1d-a882-c2a3c75e6bf3
linux /vmlinuz root=UUID=ff5f0ad5-c280-4665-a2e3-5b182082e085 ro quiet splash
initrd /kernel26.img
}
and i get a "must load kernel first" error
i'll try your menu entry
update
your solution works, i'm now trying to make it a little more specific making it load the uuid and not the device name
Last edited by red-guy (2011-03-21 15:02:58)
Offline
Glad it worked. mark this as [solve] then.
tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ
Offline
thanks again
and to mount by uuid i used
linux /vmlinuz26 root=/dev/disk/by-uuid/ff5f0ad5-c280-4665-a2e3-5b182082e085 ro
Offline
Pages: 1