GRUB Can't find sda partition
Clash 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
kernel grub initrd panic
add a comment |Â
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
kernel grub initrd panic
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 specifyroot
.
â That Guy
Jul 3 at 13:29
I got kernel panic again.
â That Guy
Jul 3 at 13:41
add a comment |Â
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
kernel grub initrd panic
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
kernel grub initrd panic
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 specifyroot
.
â That Guy
Jul 3 at 13:29
I got kernel panic again.
â That Guy
Jul 3 at 13:41
add a comment |Â
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 specifyroot
.
â 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
add a comment |Â
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
- your Linux OS really is on
hd0,msdos3
- 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.
I don't haveroot=/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 presse
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
add a comment |Â
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
- your Linux OS really is on
hd0,msdos3
- 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.
I don't haveroot=/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 presse
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
add a comment |Â
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
- your Linux OS really is on
hd0,msdos3
- 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.
I don't haveroot=/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 presse
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
add a comment |Â
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
- your Linux OS really is on
hd0,msdos3
- 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.
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
- your Linux OS really is on
hd0,msdos3
- 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.
answered Jul 3 at 14:49
Deuxis
1319
1319
I don't haveroot=/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 presse
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
add a comment |Â
I don't haveroot=/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 presse
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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