Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Locked out of Windows Partition with Grub

  1. #11
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Locked out of Windows Partition with Grub

    Quote Originally Posted by Enlightened Shadow View Post
    Haha yes I should have mentioned that I'm running Grub 2.
    It was always clear that you were running grub2. The fact that you had set up entries in 40_custom and had disabled 30_os-prober was relevant to the advice given, and would have helped if you had mentioned it. Disabling os-prober means that update-grub no longer autoupdates grub menu entries for other OSs. Using 30_os-prober is easier because it will detect the new UUID and sort everything out for you. Using 40_custom, you have to change the UUID yourself. There's no need to post your 40_custom - grub.cfg in your boot script output makes clear what is in it.

    Instead of this stanza:

    Code:
    menuentry "Windows XP Ultimate" {
    	insmod ntfs
    	set root=(hd0,2)
    	drivemap -s (hd0) ${root}
    	chainloader +1
    }
    This should do the trick:

    Code:
    menuentry "Windows XP Ultimate" {
    	insmod ntfs
    	set root=(hd0,2)
    	search --no-floppy --fs-uuid --set 2e3857fb8cc54bfb
    	chainloader +1
    }
    One other thing to note. You have this is your /etc/fstab:

    Code:
    # /windows was on /dev/sda6 during installation
    UUID=D1B4-28B3  /windows        vfat    utf8,umask=007,gid=46 0       1
    You do not have a /dev/sda6, nor a partition with the UUID D1B4-28B3. I guess you will be getting a "cannot mount" error on bootup.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  2. #12
    Join Date
    Oct 2009
    Location
    North Carolina US
    Beans
    54
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Locked out of Windows Partition with Grub

    Wow thanks for the quick reply. I'll go and switch back over to Ubuntu and update Grub. As for the not having a sda6 (which makes sense lol), should I remove that line from fstab? Or is that possible lol. Sorry for sounding like a newb, I just have basic knowledge of Grub. I am still in the learning process.
    Another day has passed and I'm just a little bit smarter.

  3. #13
    Join Date
    Oct 2009
    Location
    North Carolina US
    Beans
    54
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Locked out of Windows Partition with Grub

    Thank you very much. I replaced the line and it worked perfectly. As for the cannot mount error on bootup you mentioned I may be getting, I haven't encountered to date. If I do I will see if I can't fix it.

    Thanks for that Bootscript btw. it's very useful.
    Another day has passed and I'm just a little bit smarter.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •