{"id":16999269,"url":"https://github.com/the1riddle/grub-rescue","last_synced_at":"2025-03-22T07:47:00.199Z","repository":{"id":212370386,"uuid":"730245883","full_name":"the1Riddle/grub-rescue","owner":"the1Riddle","description":"How to fix no such partition, entering rescue mode.. error.","archived":false,"fork":false,"pushed_at":"2024-01-02T13:21:15.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T08:11:30.329Z","etag":null,"topics":["error-reporting","good-first-issue","grub-rescue","linux","partitions","solutions","windows"],"latest_commit_sha":null,"homepage":"https://the1riddle.github.io/grub-rescue/","language":"Markdown","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/the1Riddle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-11T14:09:14.000Z","updated_at":"2024-12-22T02:44:56.000Z","dependencies_parsed_at":"2024-01-02T14:53:14.730Z","dependency_job_id":null,"html_url":"https://github.com/the1Riddle/grub-rescue","commit_stats":null,"previous_names":["the1riddle/grub-rescue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the1Riddle%2Fgrub-rescue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the1Riddle%2Fgrub-rescue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the1Riddle%2Fgrub-rescue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the1Riddle%2Fgrub-rescue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the1Riddle","download_url":"https://codeload.github.com/the1Riddle/grub-rescue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244924753,"owners_count":20532873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error-reporting","good-first-issue","grub-rescue","linux","partitions","solutions","windows"],"created_at":"2024-10-14T04:07:57.083Z","updated_at":"2025-03-22T07:47:00.179Z","avatar_url":"https://github.com/the1Riddle.png","language":"Markdown","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Error: no such partition, grub rescue.\n\n- Error no such partition entering rescue mode grub rescue is common after Ubuntu Linux is removed from dual boot PC or when the partition on which a Linux distro was installed is tampered with. The error occurs mainly out of a misconfigured bootloader or wrong active partition.\n\n## How to fix no such partition, entering rescue mode.. error.\n\nIf you encounter the dreaded \"No Such Partition\" error and find yourself stuck in rescue mode, don't worry! Follow these steps to get your system back on track:\n\nStep 1: Identify Available Partitions\n----------------------------------\n\nStart by listing all available partitions using the ls command:\n\n```\nls\n```\nThis will display a list of partitions similar to the following image:\n\n![image](https://github.com/the1Riddle/grub-rescue/assets/125451537/fbda19bc-0f79-4187-93f2-546a894c06ea)\n\non your case it would be ***grub rescue\u003e*** instead of ***grub\u003e***\n\nStep 2: Check File Type\n------------------------------------\n\nTo identify the file type within a specific partition, use the following command:\n\n```\nls (partition name)\n```\n\n**Note:** If you encounter a `'Filesystem is unknown'` error, it means there's no ***operating system*** installed on that partition. Continue searching until you find a different output, as shown in the image below:\n\n![img2](https://github.com/the1Riddle/grub-rescue/assets/125451537/e09ec3f0-d16b-4ddd-afb3-5d8fec14d60d)\n\nStep 3: Set the Boot Partition\n----------------------------------------\n\nOnce you've identified the partition you want to boot from, set it using the following commands. Adjust the partition name accordingly; use the commands:\n\n```\nset boot=(hd1,msdos5)\nset prefix=(hd1,msdos5)/boot/grub\ninsmod normal\n```\nThe setup should look like this:\n\n![111](https://github.com/the1Riddle/grub-rescue/assets/125451537/70e1df2d-e004-4c19-8099-555ca8ec236c)\n\nIf you encounter an error, redo it again as you double-check the partition name and ensure you've used the correct commands.\n\nStep 4: Restore Normal Boot\n------------------------------------------\n\nTo complete the process, enter the following command:\n\n```\nnormal\n```\nThis should bring your system back to normal, and you should no longer see the \"No Such Partition\" error. If you still have issues, please go ahead and revisit the partition identification and setting steps.\n\n![ma](https://github.com/the1Riddle/grub-rescue/assets/125451537/fea3d6db-df8e-4da6-9982-bb4863df6366)\n\nOther posible challenges\n--------------------------------------------\n\n### Windows Not Showing in GRUB Menu\n\nYou will need to boot into your Linux distro and use `Ctrl` + `alt` + `t` to open the terminal, then check Windows Partition: Confirm where your Windows is stored using commands like ```lsblk``` or ```fdisk -l```. It might be `/dev/sda1` or any other.\n\nUpdate GRUB for Windows: Add a special Windows option in the /etc/grub.d/40_custom file. Here's an example:\n\n```\nmenuentry \"Windows 10\" {\n    insmod ntfs\n    set root=(hd0,msdos5)\n    chainloader +1\n}\n```\n**Replace (hd0,msdos5) with your Windows partition info.**\n\nEnable os-prober: In `/etc/default/grub`, make sure **GRUB_DISABLE_OS_PROBER** is set to `false` for automatic detection of bootable partitions.\n\nUpdate GRUB: Run ```sudo update-grub``` to refresh the GRUB configuration.\n\nOption 2\n-------------------\n\nAre you getting grub rescue every time you reboot your system? Fear not! Here's your escape plan in a few easy steps:\n### bypass grub rescue\n\nOpen your Linux terminal with the command provided on option one then run the following commands:\n\n```\nsudo add-apt-repository ppa:yannubuntu/boot-repair\nsudo apt-get update\nsudo apt-get install -y boot-repair \u0026\u0026 boot-repair\n```\na new window will open where you will be required to select your preferred repair option and then Patiently wait for the repair process to reach successful completion.\nUpon successful repair, you will witness the following confirmation:\n\n![image](https://github.com/the1Riddle/grub-rescue/assets/125451537/515cfe04-a09c-42ee-8754-a29030491328)\n\nTo finalize the process, reboot your system using the following command:\n```\nsudo reboot\n```\n\nand you'll be done!\n\nAfter these steps, you will be able to boot into your windows.\n\n\u003e [!NOTE]\u003cbr\u003e\n\u003e Conclusion: If Windows isn't appearing in GRUB, check its location, set up a custom GRUB entry, and enable `os-prober`. This should fix the issue and restore dual-boot.\n\n## Do you have some ideas or queries?\n\nIf you have questions or suggestions on improving the information on this page, you can always write to [issues](https://github.com/the1Riddle/grub-rescue/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe1riddle%2Fgrub-rescue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe1riddle%2Fgrub-rescue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe1riddle%2Fgrub-rescue/lists"}