Remove bootable USB after live-booting from it
I have a bootable USB (ADATA Superior Series S102 Pro 16GB USB 3.0 Flash Drive (AS102P-16G-RGY)) with MultiBootUSB (multibootusb.org) with non-persistent Ubuntu, KALI Linux, ParrotSec OS, Arch Linux, and Trinity Rescue Kit. However, if I boot any of those OSs', and then remove the USB drive, any programs that I haven't run so far will fail to run, the display will start flickering, and it will crash and show lots of cmdline outputs like:
[ 10.737654] cannot access <whatever>
Is there a way to load the entire OS (and all programs, files, etc.) from the USB to RAM so that it can be unplugged after the OS boots, without losing OS functionality?
I've already tried the toram thing, the "RAM mode" option, and the "Load system to RAM" option.
I'd prefer a solution that works for all aforementioned OSs.
live-usb
add a comment |
I have a bootable USB (ADATA Superior Series S102 Pro 16GB USB 3.0 Flash Drive (AS102P-16G-RGY)) with MultiBootUSB (multibootusb.org) with non-persistent Ubuntu, KALI Linux, ParrotSec OS, Arch Linux, and Trinity Rescue Kit. However, if I boot any of those OSs', and then remove the USB drive, any programs that I haven't run so far will fail to run, the display will start flickering, and it will crash and show lots of cmdline outputs like:
[ 10.737654] cannot access <whatever>
Is there a way to load the entire OS (and all programs, files, etc.) from the USB to RAM so that it can be unplugged after the OS boots, without losing OS functionality?
I've already tried the toram thing, the "RAM mode" option, and the "Load system to RAM" option.
I'd prefer a solution that works for all aforementioned OSs.
live-usb
Yes it is possible, this option is available on the parrotOS from the main menu.
– GAD3R
Mar 13 '18 at 19:12
It didn't work - I did "RAM mode", unplugged it, and tried to launch FF. It said, "Could not launch 'firefox' (input/output error)"
– CerebralDatabank
Mar 13 '18 at 19:18
add a comment |
I have a bootable USB (ADATA Superior Series S102 Pro 16GB USB 3.0 Flash Drive (AS102P-16G-RGY)) with MultiBootUSB (multibootusb.org) with non-persistent Ubuntu, KALI Linux, ParrotSec OS, Arch Linux, and Trinity Rescue Kit. However, if I boot any of those OSs', and then remove the USB drive, any programs that I haven't run so far will fail to run, the display will start flickering, and it will crash and show lots of cmdline outputs like:
[ 10.737654] cannot access <whatever>
Is there a way to load the entire OS (and all programs, files, etc.) from the USB to RAM so that it can be unplugged after the OS boots, without losing OS functionality?
I've already tried the toram thing, the "RAM mode" option, and the "Load system to RAM" option.
I'd prefer a solution that works for all aforementioned OSs.
live-usb
I have a bootable USB (ADATA Superior Series S102 Pro 16GB USB 3.0 Flash Drive (AS102P-16G-RGY)) with MultiBootUSB (multibootusb.org) with non-persistent Ubuntu, KALI Linux, ParrotSec OS, Arch Linux, and Trinity Rescue Kit. However, if I boot any of those OSs', and then remove the USB drive, any programs that I haven't run so far will fail to run, the display will start flickering, and it will crash and show lots of cmdline outputs like:
[ 10.737654] cannot access <whatever>
Is there a way to load the entire OS (and all programs, files, etc.) from the USB to RAM so that it can be unplugged after the OS boots, without losing OS functionality?
I've already tried the toram thing, the "RAM mode" option, and the "Load system to RAM" option.
I'd prefer a solution that works for all aforementioned OSs.
live-usb
live-usb
edited Mar 13 '18 at 19:09
asked Mar 13 '18 at 18:24
CerebralDatabank
167
167
Yes it is possible, this option is available on the parrotOS from the main menu.
– GAD3R
Mar 13 '18 at 19:12
It didn't work - I did "RAM mode", unplugged it, and tried to launch FF. It said, "Could not launch 'firefox' (input/output error)"
– CerebralDatabank
Mar 13 '18 at 19:18
add a comment |
Yes it is possible, this option is available on the parrotOS from the main menu.
– GAD3R
Mar 13 '18 at 19:12
It didn't work - I did "RAM mode", unplugged it, and tried to launch FF. It said, "Could not launch 'firefox' (input/output error)"
– CerebralDatabank
Mar 13 '18 at 19:18
Yes it is possible, this option is available on the parrotOS from the main menu.
– GAD3R
Mar 13 '18 at 19:12
Yes it is possible, this option is available on the parrotOS from the main menu.
– GAD3R
Mar 13 '18 at 19:12
It didn't work - I did "RAM mode", unplugged it, and tried to launch FF. It said, "Could not launch 'firefox' (input/output error)"
– CerebralDatabank
Mar 13 '18 at 19:18
It didn't work - I did "RAM mode", unplugged it, and tried to launch FF. It said, "Could not launch 'firefox' (input/output error)"
– CerebralDatabank
Mar 13 '18 at 19:18
add a comment |
3 Answers
3
active
oldest
votes
This post may be related to your issue. If you want to create a custom Linux instance that loads boots into RAM this post appears to be a good start. You may also want to reference this post as well for additional information on the topic.
To answer your question, yes it is possible to create a Linux Live Boot that can be loaded into RAM. The operating systems and setup you are using does this. If you are looking for a guide on how to set up your own Live Boot, you can reference the links in the beginning of this post and conduct some research to figure out what works best for your use case.
However the second part of your question references removing the USB drive after your Operating System is loaded. You can set up your operating system to load into RAM allowing for removal of your USB device but any applications located on the device will not load as you found out. This is because they have not been loaded into RAM and the necessary files to start the application are still located on the drive that you removed. There is a way to do this but...
Is there a purpose to removing the USB device while you are using it? Setting up everything to be loaded and run off of RAM can work but without a drive to write changes to nothing will be persistent. Once you shutdown a computer that you have used a Live Boot on and removed the device there will be very little if any trace of the Live boot operating system. Once powered on and an operating system or some other kind of input is loaded into RAM all trace of the original Live Boot is gone as far as I know. There is no need to reinvent the wheel here, your setup does what you are asking just not the part about removing the drive while still in use.
1
Thanks! I guess that works and all, but I wanted to remove the USB after booting, so that in between a live-boot session I can: close the laptop lid and store it in a case, carry it around with a USB sticking out, and also so that I can live-boot on multiple computers. And by "loading into RAM", I meant loading all the files, programs, etc.
– CerebralDatabank
Mar 13 '18 at 23:03
add a comment |
I have found a solution (may not work for all distros):
Where it says "Try Ubuntu before installing" or "Try from this live CD", just press "E" to edit the kernel parameters. Then, there should be a line that ends like this:
quiet splash ---
or maybe
quiet splash hostname=ubuntu ---
Add toram (or toram=yes if that doesn't work) to that line, before the dashes, so it reads:
quiet splash toram ---
(with or without hostname)
Press F10 or Ctrl + X to boot.
If it worked, then either the desktop or the file manager should have the USB mounted as a drive. Right-click and click "Eject", then remove the drive.
add a comment |
i managed to make my asus laptop operate just fine as long as i either removed the stick after it was put to sleep and even hybernate mode.. even once with battery dead.. recharged opened lid like nothing happened O_o... complete luck or mistake on the last.
kali 2.0 sana live persistence and luks persistence
asus model s550c series x64. only been able to reproduce result 5 times and only with laptop in full sleep and hybernation due to low batt. values
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%2f430037%2fremove-bootable-usb-after-live-booting-from-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
This post may be related to your issue. If you want to create a custom Linux instance that loads boots into RAM this post appears to be a good start. You may also want to reference this post as well for additional information on the topic.
To answer your question, yes it is possible to create a Linux Live Boot that can be loaded into RAM. The operating systems and setup you are using does this. If you are looking for a guide on how to set up your own Live Boot, you can reference the links in the beginning of this post and conduct some research to figure out what works best for your use case.
However the second part of your question references removing the USB drive after your Operating System is loaded. You can set up your operating system to load into RAM allowing for removal of your USB device but any applications located on the device will not load as you found out. This is because they have not been loaded into RAM and the necessary files to start the application are still located on the drive that you removed. There is a way to do this but...
Is there a purpose to removing the USB device while you are using it? Setting up everything to be loaded and run off of RAM can work but without a drive to write changes to nothing will be persistent. Once you shutdown a computer that you have used a Live Boot on and removed the device there will be very little if any trace of the Live boot operating system. Once powered on and an operating system or some other kind of input is loaded into RAM all trace of the original Live Boot is gone as far as I know. There is no need to reinvent the wheel here, your setup does what you are asking just not the part about removing the drive while still in use.
1
Thanks! I guess that works and all, but I wanted to remove the USB after booting, so that in between a live-boot session I can: close the laptop lid and store it in a case, carry it around with a USB sticking out, and also so that I can live-boot on multiple computers. And by "loading into RAM", I meant loading all the files, programs, etc.
– CerebralDatabank
Mar 13 '18 at 23:03
add a comment |
This post may be related to your issue. If you want to create a custom Linux instance that loads boots into RAM this post appears to be a good start. You may also want to reference this post as well for additional information on the topic.
To answer your question, yes it is possible to create a Linux Live Boot that can be loaded into RAM. The operating systems and setup you are using does this. If you are looking for a guide on how to set up your own Live Boot, you can reference the links in the beginning of this post and conduct some research to figure out what works best for your use case.
However the second part of your question references removing the USB drive after your Operating System is loaded. You can set up your operating system to load into RAM allowing for removal of your USB device but any applications located on the device will not load as you found out. This is because they have not been loaded into RAM and the necessary files to start the application are still located on the drive that you removed. There is a way to do this but...
Is there a purpose to removing the USB device while you are using it? Setting up everything to be loaded and run off of RAM can work but without a drive to write changes to nothing will be persistent. Once you shutdown a computer that you have used a Live Boot on and removed the device there will be very little if any trace of the Live boot operating system. Once powered on and an operating system or some other kind of input is loaded into RAM all trace of the original Live Boot is gone as far as I know. There is no need to reinvent the wheel here, your setup does what you are asking just not the part about removing the drive while still in use.
1
Thanks! I guess that works and all, but I wanted to remove the USB after booting, so that in between a live-boot session I can: close the laptop lid and store it in a case, carry it around with a USB sticking out, and also so that I can live-boot on multiple computers. And by "loading into RAM", I meant loading all the files, programs, etc.
– CerebralDatabank
Mar 13 '18 at 23:03
add a comment |
This post may be related to your issue. If you want to create a custom Linux instance that loads boots into RAM this post appears to be a good start. You may also want to reference this post as well for additional information on the topic.
To answer your question, yes it is possible to create a Linux Live Boot that can be loaded into RAM. The operating systems and setup you are using does this. If you are looking for a guide on how to set up your own Live Boot, you can reference the links in the beginning of this post and conduct some research to figure out what works best for your use case.
However the second part of your question references removing the USB drive after your Operating System is loaded. You can set up your operating system to load into RAM allowing for removal of your USB device but any applications located on the device will not load as you found out. This is because they have not been loaded into RAM and the necessary files to start the application are still located on the drive that you removed. There is a way to do this but...
Is there a purpose to removing the USB device while you are using it? Setting up everything to be loaded and run off of RAM can work but without a drive to write changes to nothing will be persistent. Once you shutdown a computer that you have used a Live Boot on and removed the device there will be very little if any trace of the Live boot operating system. Once powered on and an operating system or some other kind of input is loaded into RAM all trace of the original Live Boot is gone as far as I know. There is no need to reinvent the wheel here, your setup does what you are asking just not the part about removing the drive while still in use.
This post may be related to your issue. If you want to create a custom Linux instance that loads boots into RAM this post appears to be a good start. You may also want to reference this post as well for additional information on the topic.
To answer your question, yes it is possible to create a Linux Live Boot that can be loaded into RAM. The operating systems and setup you are using does this. If you are looking for a guide on how to set up your own Live Boot, you can reference the links in the beginning of this post and conduct some research to figure out what works best for your use case.
However the second part of your question references removing the USB drive after your Operating System is loaded. You can set up your operating system to load into RAM allowing for removal of your USB device but any applications located on the device will not load as you found out. This is because they have not been loaded into RAM and the necessary files to start the application are still located on the drive that you removed. There is a way to do this but...
Is there a purpose to removing the USB device while you are using it? Setting up everything to be loaded and run off of RAM can work but without a drive to write changes to nothing will be persistent. Once you shutdown a computer that you have used a Live Boot on and removed the device there will be very little if any trace of the Live boot operating system. Once powered on and an operating system or some other kind of input is loaded into RAM all trace of the original Live Boot is gone as far as I know. There is no need to reinvent the wheel here, your setup does what you are asking just not the part about removing the drive while still in use.
answered Mar 13 '18 at 21:05
kemotep
2,0313620
2,0313620
1
Thanks! I guess that works and all, but I wanted to remove the USB after booting, so that in between a live-boot session I can: close the laptop lid and store it in a case, carry it around with a USB sticking out, and also so that I can live-boot on multiple computers. And by "loading into RAM", I meant loading all the files, programs, etc.
– CerebralDatabank
Mar 13 '18 at 23:03
add a comment |
1
Thanks! I guess that works and all, but I wanted to remove the USB after booting, so that in between a live-boot session I can: close the laptop lid and store it in a case, carry it around with a USB sticking out, and also so that I can live-boot on multiple computers. And by "loading into RAM", I meant loading all the files, programs, etc.
– CerebralDatabank
Mar 13 '18 at 23:03
1
1
Thanks! I guess that works and all, but I wanted to remove the USB after booting, so that in between a live-boot session I can: close the laptop lid and store it in a case, carry it around with a USB sticking out, and also so that I can live-boot on multiple computers. And by "loading into RAM", I meant loading all the files, programs, etc.
– CerebralDatabank
Mar 13 '18 at 23:03
Thanks! I guess that works and all, but I wanted to remove the USB after booting, so that in between a live-boot session I can: close the laptop lid and store it in a case, carry it around with a USB sticking out, and also so that I can live-boot on multiple computers. And by "loading into RAM", I meant loading all the files, programs, etc.
– CerebralDatabank
Mar 13 '18 at 23:03
add a comment |
I have found a solution (may not work for all distros):
Where it says "Try Ubuntu before installing" or "Try from this live CD", just press "E" to edit the kernel parameters. Then, there should be a line that ends like this:
quiet splash ---
or maybe
quiet splash hostname=ubuntu ---
Add toram (or toram=yes if that doesn't work) to that line, before the dashes, so it reads:
quiet splash toram ---
(with or without hostname)
Press F10 or Ctrl + X to boot.
If it worked, then either the desktop or the file manager should have the USB mounted as a drive. Right-click and click "Eject", then remove the drive.
add a comment |
I have found a solution (may not work for all distros):
Where it says "Try Ubuntu before installing" or "Try from this live CD", just press "E" to edit the kernel parameters. Then, there should be a line that ends like this:
quiet splash ---
or maybe
quiet splash hostname=ubuntu ---
Add toram (or toram=yes if that doesn't work) to that line, before the dashes, so it reads:
quiet splash toram ---
(with or without hostname)
Press F10 or Ctrl + X to boot.
If it worked, then either the desktop or the file manager should have the USB mounted as a drive. Right-click and click "Eject", then remove the drive.
add a comment |
I have found a solution (may not work for all distros):
Where it says "Try Ubuntu before installing" or "Try from this live CD", just press "E" to edit the kernel parameters. Then, there should be a line that ends like this:
quiet splash ---
or maybe
quiet splash hostname=ubuntu ---
Add toram (or toram=yes if that doesn't work) to that line, before the dashes, so it reads:
quiet splash toram ---
(with or without hostname)
Press F10 or Ctrl + X to boot.
If it worked, then either the desktop or the file manager should have the USB mounted as a drive. Right-click and click "Eject", then remove the drive.
I have found a solution (may not work for all distros):
Where it says "Try Ubuntu before installing" or "Try from this live CD", just press "E" to edit the kernel parameters. Then, there should be a line that ends like this:
quiet splash ---
or maybe
quiet splash hostname=ubuntu ---
Add toram (or toram=yes if that doesn't work) to that line, before the dashes, so it reads:
quiet splash toram ---
(with or without hostname)
Press F10 or Ctrl + X to boot.
If it worked, then either the desktop or the file manager should have the USB mounted as a drive. Right-click and click "Eject", then remove the drive.
answered Dec 25 '18 at 19:53
CerebralDatabank
167
167
add a comment |
add a comment |
i managed to make my asus laptop operate just fine as long as i either removed the stick after it was put to sleep and even hybernate mode.. even once with battery dead.. recharged opened lid like nothing happened O_o... complete luck or mistake on the last.
kali 2.0 sana live persistence and luks persistence
asus model s550c series x64. only been able to reproduce result 5 times and only with laptop in full sleep and hybernation due to low batt. values
add a comment |
i managed to make my asus laptop operate just fine as long as i either removed the stick after it was put to sleep and even hybernate mode.. even once with battery dead.. recharged opened lid like nothing happened O_o... complete luck or mistake on the last.
kali 2.0 sana live persistence and luks persistence
asus model s550c series x64. only been able to reproduce result 5 times and only with laptop in full sleep and hybernation due to low batt. values
add a comment |
i managed to make my asus laptop operate just fine as long as i either removed the stick after it was put to sleep and even hybernate mode.. even once with battery dead.. recharged opened lid like nothing happened O_o... complete luck or mistake on the last.
kali 2.0 sana live persistence and luks persistence
asus model s550c series x64. only been able to reproduce result 5 times and only with laptop in full sleep and hybernation due to low batt. values
i managed to make my asus laptop operate just fine as long as i either removed the stick after it was put to sleep and even hybernate mode.. even once with battery dead.. recharged opened lid like nothing happened O_o... complete luck or mistake on the last.
kali 2.0 sana live persistence and luks persistence
asus model s550c series x64. only been able to reproduce result 5 times and only with laptop in full sleep and hybernation due to low batt. values
answered Dec 23 '18 at 0:31
anonmyass
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f430037%2fremove-bootable-usb-after-live-booting-from-it%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
Yes it is possible, this option is available on the parrotOS from the main menu.
– GAD3R
Mar 13 '18 at 19:12
It didn't work - I did "RAM mode", unplugged it, and tried to launch FF. It said, "Could not launch 'firefox' (input/output error)"
– CerebralDatabank
Mar 13 '18 at 19:18