Fedora :: Fix Grub /boot Is On A Standalone Partition
Sep 5, 2011
I'm using fc14, and put the /boot directory on a standalone partition. Now, there's something changed in MBR, and the grub has been overwrote, now I wants to fix the grub by another bootable usb-disk with grub, to use 'setup (hd1)' to fix it. but the situation cause the /boot has nothing and the partition contain essential files does not under the directory 'boot'. then setup failed.
I have fedora 12 installed on a laptop with an LVM partition, /dev/hda5 logiacal partion in the /dev/hda4 one, a boot partition on /dev/hda3 and a FAT on /dev/hda2 for win data. There was also a 10GB free partion left from older works on /dev/hda1. Now the /boot partition was set to only 0,2GB and this conflicts with the kernel updates. I freed the 10GB section, formatted it to ext 4 and copied all stuff from the /boot sector on it. now the old /boot is mounted in the grub.conf on a UUID and not the /dev/hda3 as it comes up on fdisk.
I would now like to swith the boot from the small /dev/hda1 partiotn to the larger /dev/hda3 one, but don't know how to manage it with grub (fedora, i understand it's grub-legacy).
I somehow recalled a rule re the location of the boot partitions with LILO being required to be in the first part of the drive (1024 cylinders, it seems) and I found it indeed in an old doc:
Boot Partition: Your boot partition ought to be a primary partition, not a logical partition. This will ease recovery in case of disaster, but it is not technically necessary. It must be of type 0x83 "Linux native". If you are using lilo, your boot partition must be contained within the first 1024 cylinders of the drive. (Typically, the boot partition need only contain the kernel image.) Is this still valid in GRUB, esp in Fedora 10?
Where can I install grub? I know it can be installed to the mbr of a hard drive. I also know it can be installed to a /boot partition. Can I install it to a lvm partition? Does it have to be /boot? grub-install --root-directory=/boot /dev/hda Does this command install grub to a partition and link it to a separate /boot? I have fedora, but this is a live cd. I need to learn where I can install grub2 to boot
I got ubuntu 10.04 lucid lynx along with windows (dual boot) and using Grub. On my computer, I have my C:/ (programs) and D:/ (data). I've never used my D:/ before that day that I've lost my windows partition on my grub menu. I usually use my D:/ with windows. The first time I used my D:/ to store data with linux, I lost my windows option in my grub menu. I'm not sure what I did wrong but I do want to restore my windows option in my grub menu.
After "fdisk -l",
I checked in /boot/grub and there is no menu.lst to modify. how I can get back my windows option in my grub menu ?
I having a problem getting my grub loader to see one of my hard drives. I added a drive, and my grub loader lost track of where everything was. I couldn't get my old linux (Red Hat 9) so I installed SuSe on my new hard drive. But I need my be able to boot from my old hard drive because it has apps that only run on the earlier version. From /proc/partitions the old hard drive is sdd
major minor #blocks name 8 0 976762584 sda 8 1 2104483 sda1 8 2 20972857 sda2
I have 2 identical disks originally configured as a pair for a server. Each of the disks has 2 partitions dev/sdb1,dev/sdb2. The sdb1 partitions I had configured as a raid1 mirror. The sdb2 partitions were non-raid and used as extra misc. Space. Further, the raid setup is also encrypted using dm-crypt luks. Now I want to redeploy each of the disks for new purposes. One of the disks i want to deploy exactly as before (keeping the partitions and content), however without being part of a raid array.
I've successfully deployed this disk into a new system and I am mounting the dev/sdb1 partition as dev/md0 because the disk is set to autodetect raid. Actually I am using cryptsetup and mounting with mapper. Can I get rid of the setting for auto detect on this partition without losing the data, or breaking the encryption? I just want to mount the partition as a standalone encrypted disk. Is it as simple as doing crypt setup luksOpen /dev/sdb1 then mounting it with mapper? Or do I need to change the partition in some way. Or do I simply continue to operate it as a 'broken' raid array?
is it possible to use a Windows-based recovery partition on a dual-boot computer to overwrite the Ubuntu partition and remove the GRUB loader? For instance, if you booted up your computer, accessed the hidden recovery partition and used it to reset the computer to it's factory default settings, would that effectively remove the Ubuntu partition and the GRUB loader? Would a completely new installation of Windows overwrite/uninstall Ubuntu and GRUB automatically?
a windows installation on a fake-raid, /dev/mapper/ddf1_AR01p1 and an xtra penguinFS on ddf1_AR01p2. I simply tried to boot "Super Grub Virus" from a usb stick ... and the $%!($ER hosed the array. Luckily, my day to day OS and important data is on a different set of disks ... but my BIOS boot target is set to the fake-raid, so it did not kill anything genuinely important ... I just got lucky.
I would really like to restore the windoZe partition as it WAS. I actually use it a couple of times each year. I would just reinstall the OS ... really NOTHING important on those 2 disks, but I have no idea where my XP disk can be found ... but I know the xp installation is hiding in /dev/null ....
Doing some research I was leaning towards buying an inexpensive laptop and either install linux or buy one already installed (maybe Debian or Ubunutu). The uses for this laptop would be for developing linux device drivers and having the option to control the OS for any customized applications which I could develop. Didn't want to go the dual boot with Windows approach.
I am currently running a dual boot machine with Ubuntu 11.04 and Windows Vista.Is there any way I can delete the Linux partition and Grub boot loader without affecting the Windows partition at all?I would also like to be able to repartition all of the space that was previously occupied by Linux.
Apart from the fact firef*x gets confused when my laptop is not connected to the internet... (Please click here grrr)Have you figured out a way to load a separate hosts file when booting in standalone? Presently I swap one host file for the other, usually after boot. Restart apache. Running LAMP on laptop now. It practically grinds to a halt when it isn't connected to my server
I am new to Debian but have some basic experience with Linux and am currently trying to triple boot Windows 7, Fedora 16, and Debian on an HP Pavilion dv7. I have the Windows Boot Loader on my MBR because I've heard that Windows updates can cause boot issues if GRUB is installed there. This means that I've been installing GRUB in the /boot partition for each Linux distro and creating corresponding entries in the Windows boot menu.
This has worked in the past with both Fedora and Ubuntu, but I have not been able to work around it with Debian. When I choose my Debian option in the Windows boot loader, it loads GRUB but hangs after it prints "Welcome to GRUB!", and I have to restart the computer. I would like to hear what more experienced Linux users have to say both about why this isn't working for Debian and about if keeping the WIndows boot loader is the right way to go.
Also, here is my partition layout:
Partition 1: SYSTEM (HP pre-installed) (209 MB) Partition 2: Windows Partition (472 GB) Partition 3: Extended (160 GB) 1: /boot for Fedora (524 MB) 2: Physical Volume for other Fedora partitions (79 GB) 3: /boot for Debian (749 MB) 4: Physical Volume for other Debian partitions (80 GB) 118 GB free space Partition 4: HP_TOOLS (HP pre-installed) (108 MB)
I'm trying to install MS Windows from my Linux box. Because I have no CD drives nor USB ports, I can't use any live media to boot the computer and install Windows from the installation disk. So I've created a FAT partition and copy DOS files on that, so that I can boot this partition and install Windows from there. But the problem is I still haven't able to get it to boot.
Here's the output of fdisk -l code...
I created the partition by using cfdisk to format it as type 0B: WIN95 FAT32, and made dos filesystem on it using:
Code: mkfs.msdos /dev/hda1 But when I reboot and select the DOS entry in GRUB, it tells me that: "This is not a bootable disk. Please insert a bootable floppy and press any key to try again."
what I'm missing or doing wrong here? Do I need to change something on the MBR of hda1 etc...
GRUB (0.97) won't boot the XFS partition that holds my new Arch Linux install, instead giving an error 21. I am able to boot my system using GRUB on the Arch Linux install CD - having to manually edit the commands each time.
This holds even after I updated all software and then reran setup from the grub shell. I made sure to install to the MBR not the partition (the latter I believe trashes XFS).
Googling has found some mentions of trouble, but nothing that seems to clear on how to resolve the issue.
Changing filesystem is not an option - I installed Arch on a drive that already contained all my data. (Which is all fine, I made sure not to format it
I need to move a Linux boot partition which uses grub into some unallocated space to its left on a hard disk in order to make more room for the partition after it. The boot code is not in the MBR but in its own partition. I have a multi-boot program which currently correctly boots the partition. The partition order will not change.
I have non-Linux software that can move the partition. The software suggests I have to run some Linux command after the move, but does not say what to do for grub. I would be glad to move the partition within Linux if that makes it easier, perhaps with gparted or kparted.
Can someone tell me if there is anything I have to do for grub if I move the partition to its left ? My multi-boot loader will find the partition to boot once I move it. If I move it with gparted or kparted do I have to do anything after that to make sure grub works correctly once my multi-boot program boots the partition ?
I had a dual boot system(WinXP and Ubuntu). But something happened and I was not able to boot into my Ubuntu partition. It gave GRUB missing error. I tried reformatting the dedicated 40 GB ubuntu partition to NTFS and again try to reinstall ubuntu. But now, when I install ubuntu through boot time install, it shows that my whole hard disk is empty( but I have windows XP on whole hdd at the moment) and do not give any other option but to use whole hdd.
Alternatively when I try to install it inside windows, then after rebooting it shows, no root file system defined error and neither gives any option to do so also ( this method worked earlier o my PC). At the moment, It still shows ubuntu and windowsXP at OS choice menu at boot time but when booting in ubuntu, it shows GRUB missing. (I don't have any ubuntu installation on my hard disk at the moment).
While installing with a separate /boot partition I cannot get two distinct copies of ubu installed on one machine and be able to choose between them. Each is installed on a different hard drive. x64 versions. I've had this issue both ways:
Stepsinstall mythbuntu install ubuntu Result
Two entries in grub. Both cause ubuntu to boot
Stepsinstall ubuntu install mythbuntu Result
Two entries in grub. Both cause mythbuntu to boot Grub 2 is so unfriendly for fixing these things. I don't know where to make changes. Ok, Grub 2 is very powerful, maybe it's the lagging documentation, or lack of tutorials that is the problem. But I don't know how to fix this. Do I start over without the /boot partition? Do I bail on ubu?
I want install 10.10 Maverick on a new partition alongside my OS X and 10.04 Lucid installs to see if it works on my machine. I'm a little unsure about some things.
1)Do I need to install the GRUB boot loader on this new partition?
2)Can I use the same swap space or is recommended to create a new swap?
I have a dual boot drive, one is WinXp the other Ubuntu 10.04. I don't know why, but my ubuntu partition became corrupted (booting from live cd and inputing fdisk -l in the terminal, shoes my partition as unknown type) My Grub was on this partition, and therefore I cannot boot neither one of my two OSs. I would like to recover my linux partition, I figure I can do that only from my WinXp partition, but I don't know where and how to install Grub.
Also, If anyone knows how I could recover from the live CD without booting Windows, please speak up, that would make everything much easier. Another thing, it would be just super if I could recover my whole partition, not just the data, because I would hate to reinstall all the stuff that I had on my Ubuntu.
I'm dual boot with Vista(TM) and UBUNTU(tm) and ran out of space on Ubuntu partition:I booted Ubuntu 10.04LTS live CD and shrank the VISTA. It would NOT let me grow the extended partition? So now I have:
sda1 ntfs /media/TOSHIBA_SYSTEM_VOLUME 1.46GB sda2 ntfs /media/SQ004588V03 88GB sda4 ext3 THIS IS MY NEW PARTITION 15GB
I have a netbook that dual-boots Win XP and Ubuntu 10.04 and accidentally hit the Win recovery mode in GRUB today, but quickly restarted without formatting or proceeding with any recovery. But upon reboot I just see: error: no such partition. grub rescue>
What I have tried so far: Boot to USB Live Disk... It won't, just goes straight to grub rescue.I do ls and it gives me (hd0) (hd0,4) (hd0,3) (hd0,2) (hd0,1) (fd0) error: fd0 cannot get C/H/S values.
set gives me prefix=(hd0,5)/boot/grub root=hd0,5
but if I try to boot it says unknown command so I figured I needed to find the right partition to boot from but I went through all of them with ls (hd0,4)/boot, ls (hd0,3)/boot etc. and every partition comes back "unknown filesystem".
I set up my Dell Inspiron Laptop as Dual Boot -> Xp / Ubuntu 10.04. - all worked well. I had 2 installations of XP on this machine and I removed one - all worked well. I then went into XP and deleted the partion (4) that the old XP had resided on (using Easeus Partition Master) All NOT working well !! Now when booting the machine I get grub rescue> I did ls and got ....
Here's what I want to do. I have two separate HDD HDD 1 : 160 GB (dedicated to windows, already working) HDD 2 : 500 GB Will be using dedicated to ubuntu (not partitioned yet)
I want to use the HDD two only for linux and this HDD is not partitioned yet. What I want to do is - A dedicated Grub partition (/boot) on HDD 2 (Do I really need it when I am using just two os? Will it work on second HDD?) - / root partition - /home partition - /swap partition - /fat32 partition (do I need it to share files with win?)
I did it long time with LFS but I don't remember how. the "root" option of the kernel in grub except only the partition. How do I set the "root" as a directory in a partition?
I just did a fresh install of 11.4 and I LOVE IT!!! One of the little issues I am having though, is that there is no login screen. No matter what settings I change it still auto-logs me in.
I am using GRUB and the Boot Loader Location has both "Boot from MBR" and "Boot from Root Partition". Is this right? I would think that I should just boot from the MBR.