Let grub re-scan disks?Grub does not list windows after crunchbang installationAutomatically detect boot disk...
Compiling C files on Ubuntu and using the executable on Windows
bash script: "*.jpg" expansion not working as expected inside $(...), for picking a random file
Arriving at the same result with the opposite hypotheses
How can I get an unreasonable manager to approve time off?
How to handle self harm scars on the arm in work environment?
This riddle is not to see but to solve
Is the term 'open source' a trademark?
Should I give professor gift at the beginning of my PhD?
How do governments keep track of their issued currency?
Should I avoid hard-packed crusher dust trails with my hybrid?
Why didn't Voldemort recognize that Dumbledore was affected by his curse?
Difference between > and >> when used with a named pipe
Why did the Herschel Space Telescope need helium coolant?
Programming bare microcontroller chips
How to forge a multi-part weapon?
Are there downsides to using std::string as a buffer?
What is the actual quality of machine translations?
Déjà vu, again?
How can this tool find out registered domains from an IP?
Did Milano or Benatar approve or comment on their namesake MCU ships?
How does an ordinary object become radioactive?
How did old MS-DOS games utilize various graphic cards?
Impedance ratio vs. SWR
What is the `some` keyword in SwiftUI?
Let grub re-scan disks?
Grub does not list windows after crunchbang installationAutomatically detect boot disk with grub0.9XUSB3 drive plugged in to PC makes computer hang on “welcome to grub”Multiple Windows 7 installations from GrubGRUB v2: Practical way to manage numerical entries in order to use with grub-rebootIs it possible to boot USB device from GRUB?“grub” entry in BIOS after installing ElementaryOSGRUB can't find windows ESPnew kali installation (EFI), I can't start on kali OS without the “super grub 2” usb keyGRUB Boot ISO/disk image from NTFS partition
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I placed a entry like this in grub4dos,
rootnoverify (hd1)
chainloader +1
boot
But sometimes when I plug in my USB key too late, grub will not detect this usb key, is there anyway to let grub re-scan disk list?
I need to know for both grub0.9X and grub1.9X
grub
add a comment |
I placed a entry like this in grub4dos,
rootnoverify (hd1)
chainloader +1
boot
But sometimes when I plug in my USB key too late, grub will not detect this usb key, is there anyway to let grub re-scan disk list?
I need to know for both grub0.9X and grub1.9X
grub
add a comment |
I placed a entry like this in grub4dos,
rootnoverify (hd1)
chainloader +1
boot
But sometimes when I plug in my USB key too late, grub will not detect this usb key, is there anyway to let grub re-scan disk list?
I need to know for both grub0.9X and grub1.9X
grub
I placed a entry like this in grub4dos,
rootnoverify (hd1)
chainloader +1
boot
But sometimes when I plug in my USB key too late, grub will not detect this usb key, is there anyway to let grub re-scan disk list?
I need to know for both grub0.9X and grub1.9X
grub
grub
edited Oct 7 '12 at 5:03
daisy
asked Oct 5 '12 at 4:24
daisydaisy
29.7k51177309
29.7k51177309
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
Run the following command as root:
update-grub
EDIT: This is an Ubuntu specific command. To do this on another distribution, just run grub-mkconfig -o /boot/grub/grub.cfg
2nd EDIT: os-prober
is required for that to work (automatically detect operating systems and add menu entries for them).
works on Debian too, comes with package 'grub2-common'
– golimar
Sep 8 '18 at 11:47
add a comment |
Grub does not provide an explicit command to rescan drives, but the drives will be rescanned if the computer is rebooted from within grub. To do this:
- At the grub menu, press
c
to drop to the grub console - Type
reboot
and hit enter - Computer will reboot
- Grub will be reloaded and the drives will be rescanned
add a comment |
From what I've seen, I don't believe this is possible. I was in a similar situation where I setup a GRUB entry to boot from a USB. If I didn't have a USB stick in before startup, the boot option fails. If I boot with the USB stick already connected, the option would boot from the USB.
Using GRUB 0.97, I've scanned the manual and tried many commands but I didn't see anything related to re-initializing the disks.
I see many hints in the manual that GRUB relies on the BIOS (if not entirely). When playing with boot options from the BIOS, it's in the same situation where if I don't have the USB stick plugged in before BIOS starts, it will never be listed as a bootable option (using AMI, Aptio). Maybe this is a BIOS limitation, a limitation of both or I could just strayed on a tangent.
I thought this was going to be an issue for me, but then I wondered what was easier: having someone toggle to the GRUB command mode and reinitialize disks or just CTRL-ALT-DEL'ing...
add a comment |
Hi guys I was having this a issue where i installed red hat enterprise linux and grub would not give me the option to dual boot. It only had linux as a option but not my windows os. i couldn't figure it out for a while until it hit me like a ton of bricks lol. I think God was helping me out. All you have to do is run the "os-prober" command on the terminal if you have red hat or centos. IF THIS DOES NOT WORK!? Its because your system is unable to read "ntfs" partitions, which are windows partitions. So to fix this install the package "ntfs-3g". The command will look like this:
For Red Hat and Centos
$ sudo yum install ntfs-3g
or
For Debian based or Ubuntu
$ sudo apt-get install ntfs-3g
Once its installed you can immediately run os-prober and it should work perfect. Reboot your system and you should have a choose on the grub2 menu of booting linux or windows or whatever other os you have. I hope this helps someone other there. And i hope i explained it right.
Sorry I forgot one more thing before you reboot run this as root user.
grub2-mkconfig -o /boot/grub2/grub.cfg
This command will generate a new grub.cfg file and rescan the disks and partitions. Then you can reboot the pc.
New contributor
add a comment |
yes; reboot.mod in grub ==ctrl-alt-del in common PC's.
The reason why a "late plugin usbstick" not recognised is due to hotplug concept! Since grub is at very early boot no driver for hotplug could be available.
A very simple experiment to illustrate:
- get 2 usbsticks with at least one with grub bootable
- start the pc with the bootable stick
- on grub's menu, type c to get into grub console
- grub>ls to display all drives seen by grub
- Plugin the 2nd stick
- grub>ls will see no change
- grub>reboot, then
- grub>ls will see the 2 sticks
Even in the future, hotplug will never exist in grub.
add a comment |
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f49989%2flet-grub-re-scan-disks%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
Run the following command as root:
update-grub
EDIT: This is an Ubuntu specific command. To do this on another distribution, just run grub-mkconfig -o /boot/grub/grub.cfg
2nd EDIT: os-prober
is required for that to work (automatically detect operating systems and add menu entries for them).
works on Debian too, comes with package 'grub2-common'
– golimar
Sep 8 '18 at 11:47
add a comment |
Run the following command as root:
update-grub
EDIT: This is an Ubuntu specific command. To do this on another distribution, just run grub-mkconfig -o /boot/grub/grub.cfg
2nd EDIT: os-prober
is required for that to work (automatically detect operating systems and add menu entries for them).
works on Debian too, comes with package 'grub2-common'
– golimar
Sep 8 '18 at 11:47
add a comment |
Run the following command as root:
update-grub
EDIT: This is an Ubuntu specific command. To do this on another distribution, just run grub-mkconfig -o /boot/grub/grub.cfg
2nd EDIT: os-prober
is required for that to work (automatically detect operating systems and add menu entries for them).
Run the following command as root:
update-grub
EDIT: This is an Ubuntu specific command. To do this on another distribution, just run grub-mkconfig -o /boot/grub/grub.cfg
2nd EDIT: os-prober
is required for that to work (automatically detect operating systems and add menu entries for them).
edited Apr 17 '18 at 12:37
answered Oct 5 '12 at 7:23
FSMaxBFSMaxB
1889
1889
works on Debian too, comes with package 'grub2-common'
– golimar
Sep 8 '18 at 11:47
add a comment |
works on Debian too, comes with package 'grub2-common'
– golimar
Sep 8 '18 at 11:47
works on Debian too, comes with package 'grub2-common'
– golimar
Sep 8 '18 at 11:47
works on Debian too, comes with package 'grub2-common'
– golimar
Sep 8 '18 at 11:47
add a comment |
Grub does not provide an explicit command to rescan drives, but the drives will be rescanned if the computer is rebooted from within grub. To do this:
- At the grub menu, press
c
to drop to the grub console - Type
reboot
and hit enter - Computer will reboot
- Grub will be reloaded and the drives will be rescanned
add a comment |
Grub does not provide an explicit command to rescan drives, but the drives will be rescanned if the computer is rebooted from within grub. To do this:
- At the grub menu, press
c
to drop to the grub console - Type
reboot
and hit enter - Computer will reboot
- Grub will be reloaded and the drives will be rescanned
add a comment |
Grub does not provide an explicit command to rescan drives, but the drives will be rescanned if the computer is rebooted from within grub. To do this:
- At the grub menu, press
c
to drop to the grub console - Type
reboot
and hit enter - Computer will reboot
- Grub will be reloaded and the drives will be rescanned
Grub does not provide an explicit command to rescan drives, but the drives will be rescanned if the computer is rebooted from within grub. To do this:
- At the grub menu, press
c
to drop to the grub console - Type
reboot
and hit enter - Computer will reboot
- Grub will be reloaded and the drives will be rescanned
answered Jan 30 '16 at 10:26
bainbain
1545
1545
add a comment |
add a comment |
From what I've seen, I don't believe this is possible. I was in a similar situation where I setup a GRUB entry to boot from a USB. If I didn't have a USB stick in before startup, the boot option fails. If I boot with the USB stick already connected, the option would boot from the USB.
Using GRUB 0.97, I've scanned the manual and tried many commands but I didn't see anything related to re-initializing the disks.
I see many hints in the manual that GRUB relies on the BIOS (if not entirely). When playing with boot options from the BIOS, it's in the same situation where if I don't have the USB stick plugged in before BIOS starts, it will never be listed as a bootable option (using AMI, Aptio). Maybe this is a BIOS limitation, a limitation of both or I could just strayed on a tangent.
I thought this was going to be an issue for me, but then I wondered what was easier: having someone toggle to the GRUB command mode and reinitialize disks or just CTRL-ALT-DEL'ing...
add a comment |
From what I've seen, I don't believe this is possible. I was in a similar situation where I setup a GRUB entry to boot from a USB. If I didn't have a USB stick in before startup, the boot option fails. If I boot with the USB stick already connected, the option would boot from the USB.
Using GRUB 0.97, I've scanned the manual and tried many commands but I didn't see anything related to re-initializing the disks.
I see many hints in the manual that GRUB relies on the BIOS (if not entirely). When playing with boot options from the BIOS, it's in the same situation where if I don't have the USB stick plugged in before BIOS starts, it will never be listed as a bootable option (using AMI, Aptio). Maybe this is a BIOS limitation, a limitation of both or I could just strayed on a tangent.
I thought this was going to be an issue for me, but then I wondered what was easier: having someone toggle to the GRUB command mode and reinitialize disks or just CTRL-ALT-DEL'ing...
add a comment |
From what I've seen, I don't believe this is possible. I was in a similar situation where I setup a GRUB entry to boot from a USB. If I didn't have a USB stick in before startup, the boot option fails. If I boot with the USB stick already connected, the option would boot from the USB.
Using GRUB 0.97, I've scanned the manual and tried many commands but I didn't see anything related to re-initializing the disks.
I see many hints in the manual that GRUB relies on the BIOS (if not entirely). When playing with boot options from the BIOS, it's in the same situation where if I don't have the USB stick plugged in before BIOS starts, it will never be listed as a bootable option (using AMI, Aptio). Maybe this is a BIOS limitation, a limitation of both or I could just strayed on a tangent.
I thought this was going to be an issue for me, but then I wondered what was easier: having someone toggle to the GRUB command mode and reinitialize disks or just CTRL-ALT-DEL'ing...
From what I've seen, I don't believe this is possible. I was in a similar situation where I setup a GRUB entry to boot from a USB. If I didn't have a USB stick in before startup, the boot option fails. If I boot with the USB stick already connected, the option would boot from the USB.
Using GRUB 0.97, I've scanned the manual and tried many commands but I didn't see anything related to re-initializing the disks.
I see many hints in the manual that GRUB relies on the BIOS (if not entirely). When playing with boot options from the BIOS, it's in the same situation where if I don't have the USB stick plugged in before BIOS starts, it will never be listed as a bootable option (using AMI, Aptio). Maybe this is a BIOS limitation, a limitation of both or I could just strayed on a tangent.
I thought this was going to be an issue for me, but then I wondered what was easier: having someone toggle to the GRUB command mode and reinitialize disks or just CTRL-ALT-DEL'ing...
answered Nov 6 '14 at 23:18
jdknightjdknight
1134
1134
add a comment |
add a comment |
Hi guys I was having this a issue where i installed red hat enterprise linux and grub would not give me the option to dual boot. It only had linux as a option but not my windows os. i couldn't figure it out for a while until it hit me like a ton of bricks lol. I think God was helping me out. All you have to do is run the "os-prober" command on the terminal if you have red hat or centos. IF THIS DOES NOT WORK!? Its because your system is unable to read "ntfs" partitions, which are windows partitions. So to fix this install the package "ntfs-3g". The command will look like this:
For Red Hat and Centos
$ sudo yum install ntfs-3g
or
For Debian based or Ubuntu
$ sudo apt-get install ntfs-3g
Once its installed you can immediately run os-prober and it should work perfect. Reboot your system and you should have a choose on the grub2 menu of booting linux or windows or whatever other os you have. I hope this helps someone other there. And i hope i explained it right.
Sorry I forgot one more thing before you reboot run this as root user.
grub2-mkconfig -o /boot/grub2/grub.cfg
This command will generate a new grub.cfg file and rescan the disks and partitions. Then you can reboot the pc.
New contributor
add a comment |
Hi guys I was having this a issue where i installed red hat enterprise linux and grub would not give me the option to dual boot. It only had linux as a option but not my windows os. i couldn't figure it out for a while until it hit me like a ton of bricks lol. I think God was helping me out. All you have to do is run the "os-prober" command on the terminal if you have red hat or centos. IF THIS DOES NOT WORK!? Its because your system is unable to read "ntfs" partitions, which are windows partitions. So to fix this install the package "ntfs-3g". The command will look like this:
For Red Hat and Centos
$ sudo yum install ntfs-3g
or
For Debian based or Ubuntu
$ sudo apt-get install ntfs-3g
Once its installed you can immediately run os-prober and it should work perfect. Reboot your system and you should have a choose on the grub2 menu of booting linux or windows or whatever other os you have. I hope this helps someone other there. And i hope i explained it right.
Sorry I forgot one more thing before you reboot run this as root user.
grub2-mkconfig -o /boot/grub2/grub.cfg
This command will generate a new grub.cfg file and rescan the disks and partitions. Then you can reboot the pc.
New contributor
add a comment |
Hi guys I was having this a issue where i installed red hat enterprise linux and grub would not give me the option to dual boot. It only had linux as a option but not my windows os. i couldn't figure it out for a while until it hit me like a ton of bricks lol. I think God was helping me out. All you have to do is run the "os-prober" command on the terminal if you have red hat or centos. IF THIS DOES NOT WORK!? Its because your system is unable to read "ntfs" partitions, which are windows partitions. So to fix this install the package "ntfs-3g". The command will look like this:
For Red Hat and Centos
$ sudo yum install ntfs-3g
or
For Debian based or Ubuntu
$ sudo apt-get install ntfs-3g
Once its installed you can immediately run os-prober and it should work perfect. Reboot your system and you should have a choose on the grub2 menu of booting linux or windows or whatever other os you have. I hope this helps someone other there. And i hope i explained it right.
Sorry I forgot one more thing before you reboot run this as root user.
grub2-mkconfig -o /boot/grub2/grub.cfg
This command will generate a new grub.cfg file and rescan the disks and partitions. Then you can reboot the pc.
New contributor
Hi guys I was having this a issue where i installed red hat enterprise linux and grub would not give me the option to dual boot. It only had linux as a option but not my windows os. i couldn't figure it out for a while until it hit me like a ton of bricks lol. I think God was helping me out. All you have to do is run the "os-prober" command on the terminal if you have red hat or centos. IF THIS DOES NOT WORK!? Its because your system is unable to read "ntfs" partitions, which are windows partitions. So to fix this install the package "ntfs-3g". The command will look like this:
For Red Hat and Centos
$ sudo yum install ntfs-3g
or
For Debian based or Ubuntu
$ sudo apt-get install ntfs-3g
Once its installed you can immediately run os-prober and it should work perfect. Reboot your system and you should have a choose on the grub2 menu of booting linux or windows or whatever other os you have. I hope this helps someone other there. And i hope i explained it right.
Sorry I forgot one more thing before you reboot run this as root user.
grub2-mkconfig -o /boot/grub2/grub.cfg
This command will generate a new grub.cfg file and rescan the disks and partitions. Then you can reboot the pc.
New contributor
edited 26 mins ago
New contributor
answered 39 mins ago
LionbyteLionbyte
11
11
New contributor
New contributor
add a comment |
add a comment |
yes; reboot.mod in grub ==ctrl-alt-del in common PC's.
The reason why a "late plugin usbstick" not recognised is due to hotplug concept! Since grub is at very early boot no driver for hotplug could be available.
A very simple experiment to illustrate:
- get 2 usbsticks with at least one with grub bootable
- start the pc with the bootable stick
- on grub's menu, type c to get into grub console
- grub>ls to display all drives seen by grub
- Plugin the 2nd stick
- grub>ls will see no change
- grub>reboot, then
- grub>ls will see the 2 sticks
Even in the future, hotplug will never exist in grub.
add a comment |
yes; reboot.mod in grub ==ctrl-alt-del in common PC's.
The reason why a "late plugin usbstick" not recognised is due to hotplug concept! Since grub is at very early boot no driver for hotplug could be available.
A very simple experiment to illustrate:
- get 2 usbsticks with at least one with grub bootable
- start the pc with the bootable stick
- on grub's menu, type c to get into grub console
- grub>ls to display all drives seen by grub
- Plugin the 2nd stick
- grub>ls will see no change
- grub>reboot, then
- grub>ls will see the 2 sticks
Even in the future, hotplug will never exist in grub.
add a comment |
yes; reboot.mod in grub ==ctrl-alt-del in common PC's.
The reason why a "late plugin usbstick" not recognised is due to hotplug concept! Since grub is at very early boot no driver for hotplug could be available.
A very simple experiment to illustrate:
- get 2 usbsticks with at least one with grub bootable
- start the pc with the bootable stick
- on grub's menu, type c to get into grub console
- grub>ls to display all drives seen by grub
- Plugin the 2nd stick
- grub>ls will see no change
- grub>reboot, then
- grub>ls will see the 2 sticks
Even in the future, hotplug will never exist in grub.
yes; reboot.mod in grub ==ctrl-alt-del in common PC's.
The reason why a "late plugin usbstick" not recognised is due to hotplug concept! Since grub is at very early boot no driver for hotplug could be available.
A very simple experiment to illustrate:
- get 2 usbsticks with at least one with grub bootable
- start the pc with the bootable stick
- on grub's menu, type c to get into grub console
- grub>ls to display all drives seen by grub
- Plugin the 2nd stick
- grub>ls will see no change
- grub>reboot, then
- grub>ls will see the 2 sticks
Even in the future, hotplug will never exist in grub.
edited Mar 31 '16 at 12:28
Jeff Schaller♦
46.4k1166150
46.4k1166150
answered Mar 31 '16 at 11:58
wangjiwangji
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f49989%2flet-grub-re-scan-disks%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown