GRUB Can't find sda partition

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have dualboot on my laptop with windows being the primary OS. Today after my linux os froze I hard rebooted the laptop. After that I got a kernel panic. I've been trying to solve it using GRUB.



I did:



#first 
set root = (hd0,msdos3) #this is where my linux os is
#second
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/


and at this point I don't see sda or any sdX folder which I can mount to root. Can it be in another folder or should I look somewhere else?



I'm following these instrunctions that a friend of mine told me to follow.



set root = (linux partition)
linux /boot/vmlinuz... root=/dev/sda1
initrd /boot/initrd.img...
boot






share|improve this question





















  • I'm not very experienced linux user. If you could clarify whay you mean. I think I reached someting that was (insmod) shell after I didn't specify root.
    – That Guy
    Jul 3 at 13:29










  • I got kernel panic again.
    – That Guy
    Jul 3 at 13:41














up vote
0
down vote

favorite












I have dualboot on my laptop with windows being the primary OS. Today after my linux os froze I hard rebooted the laptop. After that I got a kernel panic. I've been trying to solve it using GRUB.



I did:



#first 
set root = (hd0,msdos3) #this is where my linux os is
#second
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/


and at this point I don't see sda or any sdX folder which I can mount to root. Can it be in another folder or should I look somewhere else?



I'm following these instrunctions that a friend of mine told me to follow.



set root = (linux partition)
linux /boot/vmlinuz... root=/dev/sda1
initrd /boot/initrd.img...
boot






share|improve this question





















  • I'm not very experienced linux user. If you could clarify whay you mean. I think I reached someting that was (insmod) shell after I didn't specify root.
    – That Guy
    Jul 3 at 13:29










  • I got kernel panic again.
    – That Guy
    Jul 3 at 13:41












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have dualboot on my laptop with windows being the primary OS. Today after my linux os froze I hard rebooted the laptop. After that I got a kernel panic. I've been trying to solve it using GRUB.



I did:



#first 
set root = (hd0,msdos3) #this is where my linux os is
#second
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/


and at this point I don't see sda or any sdX folder which I can mount to root. Can it be in another folder or should I look somewhere else?



I'm following these instrunctions that a friend of mine told me to follow.



set root = (linux partition)
linux /boot/vmlinuz... root=/dev/sda1
initrd /boot/initrd.img...
boot






share|improve this question













I have dualboot on my laptop with windows being the primary OS. Today after my linux os froze I hard rebooted the laptop. After that I got a kernel panic. I've been trying to solve it using GRUB.



I did:



#first 
set root = (hd0,msdos3) #this is where my linux os is
#second
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/


and at this point I don't see sda or any sdX folder which I can mount to root. Can it be in another folder or should I look somewhere else?



I'm following these instrunctions that a friend of mine told me to follow.



set root = (linux partition)
linux /boot/vmlinuz... root=/dev/sda1
initrd /boot/initrd.img...
boot








share|improve this question












share|improve this question




share|improve this question








edited Jul 3 at 14:07









Kevin Lemaire

1,037421




1,037421









asked Jul 3 at 13:18









That Guy

1




1











  • I'm not very experienced linux user. If you could clarify whay you mean. I think I reached someting that was (insmod) shell after I didn't specify root.
    – That Guy
    Jul 3 at 13:29










  • I got kernel panic again.
    – That Guy
    Jul 3 at 13:41
















  • I'm not very experienced linux user. If you could clarify whay you mean. I think I reached someting that was (insmod) shell after I didn't specify root.
    – That Guy
    Jul 3 at 13:29










  • I got kernel panic again.
    – That Guy
    Jul 3 at 13:41















I'm not very experienced linux user. If you could clarify whay you mean. I think I reached someting that was (insmod) shell after I didn't specify root.
– That Guy
Jul 3 at 13:29




I'm not very experienced linux user. If you could clarify whay you mean. I think I reached someting that was (insmod) shell after I didn't specify root.
– That Guy
Jul 3 at 13:29












I got kernel panic again.
– That Guy
Jul 3 at 13:41




I got kernel panic again.
– That Guy
Jul 3 at 13:41










1 Answer
1






active

oldest

votes

















up vote
1
down vote













GRUB is weird and uses a weird naming scheme. (hd0,msdos3) means "first disk, third partition using msdos partition table". (if you're using GRUB legacy and not GRUB 2, it would be "fourth partition", as GRUB legacy has partitions starting at 0)



Simply change sda1 into sda3 (or sda4, depending on what GRUB version this config is from) and voila.



set root = (hd0,msdos3)
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/sda3


This assuming that



  1. your Linux OS really is on hd0,msdos3

  2. your kernel image really is named "vmlinuz-4.13.0-45-generic" (depending on the distribution you use it would be simpler and safer to just use the usual /linux, /vmlinuz-linux or /boot/vmlinuz-linux copies/links that always reflect "default" kernel image.

Also, can't you just choose a different boot option? All user-friendly distros come with alternative (fallback) boot options. Hold Shift (I think it was left Shift) during boot (more precisely, it needs to be held between the BIOS startup and OS startup) to see the GRUB menu with all the options.



Lastly, there is always a chance that Windows messed something up. It's notorious for behaving like an elephant in a china shop on updates, wrecking booting configurations, bootloaders and partitions.






share|improve this answer





















  • I don't have root=/dev/sdaX (where x is a number) option. Should I just reinstall?
    – That Guy
    Jul 3 at 21:57










  • In the GRUB menu? It should be called something else, usually the name of the system, like "Ubuntu 16.04" or "Launch Ubuntu". All the behind-the-scenes stuff is hidden (but you can see and edit it if you press e with an option selected). You can reinstall, but this may be recoverable, so why not just try? And if you do decide to reinstall, make sure to back-up whatever was important.
    – Deuxis
    Jul 4 at 10:27










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453221%2fgrub-cant-find-sda-partition%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













GRUB is weird and uses a weird naming scheme. (hd0,msdos3) means "first disk, third partition using msdos partition table". (if you're using GRUB legacy and not GRUB 2, it would be "fourth partition", as GRUB legacy has partitions starting at 0)



Simply change sda1 into sda3 (or sda4, depending on what GRUB version this config is from) and voila.



set root = (hd0,msdos3)
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/sda3


This assuming that



  1. your Linux OS really is on hd0,msdos3

  2. your kernel image really is named "vmlinuz-4.13.0-45-generic" (depending on the distribution you use it would be simpler and safer to just use the usual /linux, /vmlinuz-linux or /boot/vmlinuz-linux copies/links that always reflect "default" kernel image.

Also, can't you just choose a different boot option? All user-friendly distros come with alternative (fallback) boot options. Hold Shift (I think it was left Shift) during boot (more precisely, it needs to be held between the BIOS startup and OS startup) to see the GRUB menu with all the options.



Lastly, there is always a chance that Windows messed something up. It's notorious for behaving like an elephant in a china shop on updates, wrecking booting configurations, bootloaders and partitions.






share|improve this answer





















  • I don't have root=/dev/sdaX (where x is a number) option. Should I just reinstall?
    – That Guy
    Jul 3 at 21:57










  • In the GRUB menu? It should be called something else, usually the name of the system, like "Ubuntu 16.04" or "Launch Ubuntu". All the behind-the-scenes stuff is hidden (but you can see and edit it if you press e with an option selected). You can reinstall, but this may be recoverable, so why not just try? And if you do decide to reinstall, make sure to back-up whatever was important.
    – Deuxis
    Jul 4 at 10:27














up vote
1
down vote













GRUB is weird and uses a weird naming scheme. (hd0,msdos3) means "first disk, third partition using msdos partition table". (if you're using GRUB legacy and not GRUB 2, it would be "fourth partition", as GRUB legacy has partitions starting at 0)



Simply change sda1 into sda3 (or sda4, depending on what GRUB version this config is from) and voila.



set root = (hd0,msdos3)
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/sda3


This assuming that



  1. your Linux OS really is on hd0,msdos3

  2. your kernel image really is named "vmlinuz-4.13.0-45-generic" (depending on the distribution you use it would be simpler and safer to just use the usual /linux, /vmlinuz-linux or /boot/vmlinuz-linux copies/links that always reflect "default" kernel image.

Also, can't you just choose a different boot option? All user-friendly distros come with alternative (fallback) boot options. Hold Shift (I think it was left Shift) during boot (more precisely, it needs to be held between the BIOS startup and OS startup) to see the GRUB menu with all the options.



Lastly, there is always a chance that Windows messed something up. It's notorious for behaving like an elephant in a china shop on updates, wrecking booting configurations, bootloaders and partitions.






share|improve this answer





















  • I don't have root=/dev/sdaX (where x is a number) option. Should I just reinstall?
    – That Guy
    Jul 3 at 21:57










  • In the GRUB menu? It should be called something else, usually the name of the system, like "Ubuntu 16.04" or "Launch Ubuntu". All the behind-the-scenes stuff is hidden (but you can see and edit it if you press e with an option selected). You can reinstall, but this may be recoverable, so why not just try? And if you do decide to reinstall, make sure to back-up whatever was important.
    – Deuxis
    Jul 4 at 10:27












up vote
1
down vote










up vote
1
down vote









GRUB is weird and uses a weird naming scheme. (hd0,msdos3) means "first disk, third partition using msdos partition table". (if you're using GRUB legacy and not GRUB 2, it would be "fourth partition", as GRUB legacy has partitions starting at 0)



Simply change sda1 into sda3 (or sda4, depending on what GRUB version this config is from) and voila.



set root = (hd0,msdos3)
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/sda3


This assuming that



  1. your Linux OS really is on hd0,msdos3

  2. your kernel image really is named "vmlinuz-4.13.0-45-generic" (depending on the distribution you use it would be simpler and safer to just use the usual /linux, /vmlinuz-linux or /boot/vmlinuz-linux copies/links that always reflect "default" kernel image.

Also, can't you just choose a different boot option? All user-friendly distros come with alternative (fallback) boot options. Hold Shift (I think it was left Shift) during boot (more precisely, it needs to be held between the BIOS startup and OS startup) to see the GRUB menu with all the options.



Lastly, there is always a chance that Windows messed something up. It's notorious for behaving like an elephant in a china shop on updates, wrecking booting configurations, bootloaders and partitions.






share|improve this answer













GRUB is weird and uses a weird naming scheme. (hd0,msdos3) means "first disk, third partition using msdos partition table". (if you're using GRUB legacy and not GRUB 2, it would be "fourth partition", as GRUB legacy has partitions starting at 0)



Simply change sda1 into sda3 (or sda4, depending on what GRUB version this config is from) and voila.



set root = (hd0,msdos3)
linux /boot/vmlinuz-4.13.0-45-generic root=/dev/sda3


This assuming that



  1. your Linux OS really is on hd0,msdos3

  2. your kernel image really is named "vmlinuz-4.13.0-45-generic" (depending on the distribution you use it would be simpler and safer to just use the usual /linux, /vmlinuz-linux or /boot/vmlinuz-linux copies/links that always reflect "default" kernel image.

Also, can't you just choose a different boot option? All user-friendly distros come with alternative (fallback) boot options. Hold Shift (I think it was left Shift) during boot (more precisely, it needs to be held between the BIOS startup and OS startup) to see the GRUB menu with all the options.



Lastly, there is always a chance that Windows messed something up. It's notorious for behaving like an elephant in a china shop on updates, wrecking booting configurations, bootloaders and partitions.







share|improve this answer













share|improve this answer



share|improve this answer











answered Jul 3 at 14:49









Deuxis

1319




1319











  • I don't have root=/dev/sdaX (where x is a number) option. Should I just reinstall?
    – That Guy
    Jul 3 at 21:57










  • In the GRUB menu? It should be called something else, usually the name of the system, like "Ubuntu 16.04" or "Launch Ubuntu". All the behind-the-scenes stuff is hidden (but you can see and edit it if you press e with an option selected). You can reinstall, but this may be recoverable, so why not just try? And if you do decide to reinstall, make sure to back-up whatever was important.
    – Deuxis
    Jul 4 at 10:27
















  • I don't have root=/dev/sdaX (where x is a number) option. Should I just reinstall?
    – That Guy
    Jul 3 at 21:57










  • In the GRUB menu? It should be called something else, usually the name of the system, like "Ubuntu 16.04" or "Launch Ubuntu". All the behind-the-scenes stuff is hidden (but you can see and edit it if you press e with an option selected). You can reinstall, but this may be recoverable, so why not just try? And if you do decide to reinstall, make sure to back-up whatever was important.
    – Deuxis
    Jul 4 at 10:27















I don't have root=/dev/sdaX (where x is a number) option. Should I just reinstall?
– That Guy
Jul 3 at 21:57




I don't have root=/dev/sdaX (where x is a number) option. Should I just reinstall?
– That Guy
Jul 3 at 21:57












In the GRUB menu? It should be called something else, usually the name of the system, like "Ubuntu 16.04" or "Launch Ubuntu". All the behind-the-scenes stuff is hidden (but you can see and edit it if you press e with an option selected). You can reinstall, but this may be recoverable, so why not just try? And if you do decide to reinstall, make sure to back-up whatever was important.
– Deuxis
Jul 4 at 10:27




In the GRUB menu? It should be called something else, usually the name of the system, like "Ubuntu 16.04" or "Launch Ubuntu". All the behind-the-scenes stuff is hidden (but you can see and edit it if you press e with an option selected). You can reinstall, but this may be recoverable, so why not just try? And if you do decide to reinstall, make sure to back-up whatever was important.
– Deuxis
Jul 4 at 10:27












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453221%2fgrub-cant-find-sda-partition%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay