{"id":5208,"date":"2012-03-28T12:46:54","date_gmt":"2012-03-28T07:16:54","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=5208"},"modified":"2016-12-19T15:06:27","modified_gmt":"2016-12-19T09:36:27","slug":"forgot-root-password-in-linux-how-to-reset-root-password","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/","title":{"rendered":"Forgot Root Password in Linux, How to Reset Root Password through GRUB?"},"content":{"rendered":"<p>Hi,<br \/>\n&nbsp;<br \/>\nIt is a major problem when we forgot our root password in linux. But don&#8217;t know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back our root password in few minutes. I used it on ubuntu 11.10 it work fine for me. Some people might know about this method, but I thought i share with you all for those who don&#8217;t know.<br \/>\n&nbsp;<br \/>\n<strong><em>Caution : But please don&#8217;t play with this for fun, only use it when in need.<\/em><\/strong><br \/>\n&nbsp;<br \/>\nHere are the steps to get back your password :<br \/>\n1. Reboot your system.<br \/>\n2. When Grub Loads, Either move arrow to stop clock\/timer.<br \/>\n3. Select Ubuntu Kernel, and then Press &#8216;e&#8217; key to open it in Edit Mode.<br \/>\n&nbsp;<\/p>\n<p>&nbsp;<br \/>\n4. In edit mode, screen will look like this in Ubuntu&#8230;<br \/>\n&nbsp; <\/p>\n<p>&nbsp;<br \/>\nIf you see the 2nd line from bottom, that says info about kernel add &#8216;1&#8217; in end of command as given below,<br \/>\n<strong>linux \/boot\/vmlinuz-2.6.31.9 root=UUID=904bf39-9234 ro quiet splash <strong>1<\/strong><\/strong><br \/>\n&nbsp;<br \/>\n5. Then Press Ctrl + b to boot kernel in single user mode.<br \/>\n6. By using passwd command reset your root password,<br \/>\n    root# passwd<br \/>\n    New UNIX Password:<br \/>\n    Retype UNIX Password:<br \/>\n    passwd updated successfully<br \/>\n&nbsp;<br \/>\n7. Now reboot the machine, machine will reboot with your new password.<br \/>\n&nbsp;<br \/>\nI hope it helps. \ud83d\ude09<br \/>\n&nbsp;<br \/>\nThanks,<br \/>\nTarun Pareek<br \/>\ntarun@intelligrape.com<\/p>\n<p><a href=\"https:\/\/tothenewco.pro\/blog\/author\/tarun\/\">More Blogs by Me<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, &nbsp; It is a major problem when we forgot our root password in linux. But don&#8217;t know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":11,"footnotes":""},"categories":[1],"tags":[779,260,781,780,8],"class_list":["post-5208","post","type-post","status-publish","format-standard","hentry","category-technology","tag-grub","tag-linux","tag-password","tag-root","tag-ubuntu"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hi, It is a major problem when we forgot our root password in linux. But don&#039;t know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tarun Pareek\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Hi, It is a major problem when we forgot our root password in linux. But don&#039;t know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hi, It is a major problem when we forgot our root password in linux. But don&#039;t know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#article\",\"name\":\"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog\",\"headline\":\"Forgot Root Password in Linux, How to Reset Root Password through GRUB?\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-03-28T12:46:54+05:30\",\"dateModified\":\"2016-12-19T15:06:27+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#webpage\"},\"articleSection\":\"Technology, GRUB, Linux, password, root, Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#listItem\",\"name\":\"Forgot Root Password in Linux, How to Reset Root Password through GRUB?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#listItem\",\"position\":3,\"name\":\"Forgot Root Password in Linux, How to Reset Root Password through GRUB?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun\\\/\",\"name\":\"Tarun Pareek\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/0a83bd26-2bc9-45ee-9557-a0a9d3dce30d_446-Tarun-Pareek-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Tarun Pareek\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/\",\"name\":\"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog\",\"description\":\"Hi, It is a major problem when we forgot our root password in linux. But don't know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/forgot-root-password-in-linux-how-to-reset-root-password\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun\\\/#author\"},\"datePublished\":\"2012-03-28T12:46:54+05:30\",\"dateModified\":\"2016-12-19T15:06:27+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog","description":"Hi, It is a major problem when we forgot our root password in linux. But don't know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back","canonical_url":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#article","name":"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog","headline":"Forgot Root Password in Linux, How to Reset Root Password through GRUB?","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/tarun\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2012-03-28T12:46:54+05:30","dateModified":"2016-12-19T15:06:27+05:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#webpage"},"articleSection":"Technology, GRUB, Linux, password, root, Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/tothenewco.pro\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#listItem","name":"Forgot Root Password in Linux, How to Reset Root Password through GRUB?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#listItem","position":3,"name":"Forgot Root Password in Linux, How to Reset Root Password through GRUB?","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/tarun\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/tarun\/","name":"Tarun Pareek","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/0a83bd26-2bc9-45ee-9557-a0a9d3dce30d_446-Tarun-Pareek-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Tarun Pareek"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/","name":"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog","description":"Hi, It is a major problem when we forgot our root password in linux. But don't know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/tarun\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/tarun\/#author"},"datePublished":"2012-03-28T12:46:54+05:30","dateModified":"2016-12-19T15:06:27+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog","og:description":"Hi, It is a major problem when we forgot our root password in linux. But don't know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back","og:url":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Forgot Root Password in Linux, How to Reset Root Password through GRUB? | TO THE NEW Blog","twitter:description":"Hi, It is a major problem when we forgot our root password in linux. But don't know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"5208","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 15:27:06","updated":"2024-02-29 09:26:53","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tForgot Root Password in Linux, How to Reset Root Password through GRUB?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Technology","link":"https:\/\/tothenewco.pro\/blog\/category\/technology\/"},{"label":"Forgot Root Password in Linux, How to Reset Root Password through GRUB?","link":"https:\/\/tothenewco.pro\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/5208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=5208"}],"version-history":[{"count":0,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/5208\/revisions"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=5208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=5208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=5208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}