You are not logged in.
Pages: 1
Several weird things have just happened.
I just removed my Fedora partition. I was just some logical partition in extended with swap. That was pretty normal. Getting rid of Fedora is the only sane thing to do with it. anyway, Gparted got rid of it, I gave a little more space to the Debian partition, shrunk extended, grew /home. That all exited fine.
Then I rebooted and Arch wouldn't load. I thought it might have something to do with the bootloader (which was stupid, cause the bootloader actually did it's job fine, it was actually something about diskcheck failure), I reninstalled grub2 to my Ubuntu partition with a LiveCD. This didn't fix the problem.
Anyway, then I went try and fix the disk check problem in Arch. It only let me log in as root for some kind of rescue mode thing. Anyway, the only partitions that didn't check out were the ones with Ubuntu and Debian (which I mount into Arch as well for mantinance, since Debina is Sid, and Ubuntu is the current beta). I don't actually know how to fix disk check failures, so I tried the next best thing, having them not be checked at boot. I couldn't do it from the rescue console. It told me I was trying to edit a read-only drive (and I was root). I logged into debian and tried. This worked, though I still don't know why they can't be checked, nor why I couldn't edit the file from the rescue console.
Anyway, now I'm in arch, but I'm booting through the Ubuntu boot loader. I want my arch bootloader back. I tried to reistall it with...
# grub_bios-install --boot-directory=/boot --no-floppy --recheck --force /dev/sda1... but it says "rm: cannot remove `/boot/grub/core.img`: Operation not permitted"
And yes, I'm running it as root, before anyone asks.
So what's up?
Last edited by ninjaaron (2011-10-01 15:07:18)
Offline
The permissions say it's writable, by the way. However, Debian isn't allowed to remove the file either as a mounted partition.
I'm thinking about backing up the contents of the partition, deleting it, recreating it, and copying the files back, and then trying again to reinstall grub2.
Thoughts?
Last edited by ninjaaron (2011-09-30 21:41:38)
Offline
Anyway, now I'm in arch, but I'm booting through the Ubuntu boot loader. I want my arch bootloader back. I tried to reistall it with...
# grub_bios-install --boot-directory=/boot --no-floppy --recheck --force /dev/sda1... but it says "rm: cannot remove `/boot/grub/core.img`: Operation not permitted"
And yes, I'm running it as root, before anyone asks.
So what's up?
Run
# chattr -i /boot/grub/core.img
# grub_bios-install --boot-directory=/boot --no-floppy --recheck --force /dev/sda1
# chattr +i /boot/grub/core.imgAnyway as said in the wiki, its better to install grub2 bios to the MBR rather than the partition boot sector.
Last edited by skodabenz (2011-10-01 11:02:04)
My new forum user/nick name is "the.ridikulus.rat" .
Offline
Wait, what? Am I supposed to run those commands?
Also. I was following the wiki. I didn't know there was another way to install the bootloader besides to the MBR.
Help me understand what's going on here.
Last edited by ninjaaron (2011-10-01 11:36:10)
Offline
Aright, thanks. It worked. I did change one thing, however. I made /dev/sda1 just /dev/sda, since, as you say, it's better to install it to the MBR.
Offline
I updated the wiki with proper info on how it works.
My new forum user/nick name is "the.ridikulus.rat" .
Offline
Awesome. Thread solved
Offline
Pages: 1