System that can read hard-drive and exclusively write into RAM?Cloning a hard drive and using it to boot on a...
LWC SFDX source push error TypeError: LWC1009: decl.moveTo is not a function
Why can't we play rap on piano?
Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)
How much RAM could one put in a typical 80386 setup?
LaTeX: Why are digits allowed in environments, but forbidden in commands?
How to format long polynomial?
What's that red-plus icon near a text?
Was any UN Security Council vote triple-vetoed?
Add text to same line using sed
What defenses are there against being summoned by the Gate spell?
Why is 150k or 200k jobs considered good when there's 300k+ births a month?
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
What's the point of deactivating Num Lock on login screens?
Paid for article while in US on F-1 visa?
Could an aircraft fly or hover using only jets of compressed air?
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
Why is Minecraft giving an OpenGL error?
Maximum likelihood parameters deviate from posterior distributions
Is it legal for company to use my work email to pretend I still work there?
Do infinite dimensional systems make sense?
If human space travel is limited by the G force vulnerability, is there a way to counter G forces?
Does detail obscure or enhance action?
How to determine what difficulty is right for the game?
Has there ever been an airliner design involving reducing generator load by installing solar panels?
System that can read hard-drive and exclusively write into RAM?
Cloning a hard drive and using it to boot on a different systemHard drive file system corruptedCan you boot an operating system into RAM disk and how?How to improve ram and hard drive performanceComputer using hard drive in place of RAM?Hard drive showing incorrect free space after recent RAM upgradeunderstanding CPU,RAM,and Hard Disk DriveCan I use one internal hard drive in different PCs?Why doesn't an SSD improve the speed of running applications compared to a HDD?All hard drive folders are write protected
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I hope to be at the right place. I could not find any suggestions on the "web" about my question. How could an O.S, let us say a distribution of linux, can be loaded from the hard-drive and execute all the modifications (all the applications) into the RAM ? In other words, how could we use an O.S to read data it needs from a hard-drive and only write what it needs into the RAM.
The aim is to be sure that all the "instructions" (this may be the wrong word) made by the O.S (and all the apps it executes) are made exclusively into the RAM (no write on the hard-disk).
I know some linux distributions can be entirely loaded into the RAM but the inconvenience is the size of the system we get : we can not have much available space for apps in the RAM whereas a normal system will find the needed app from the drive and load it into the memory. This could be done by using an extra RAM for the system but it is not a great solution compared to the use of a hard drive to save the apps we need (because of the actual prices of RAM)
I also thought about a virtual machine which can read the drive to use app and only write into RAM, in most cases. But it requires to load the VM from an existing, and loaded, O.S. so is there a way we can skip the existing O.S part ?
If you have any suggestions or technical words I have to use to search by myself, thank you.
hard-drive memory operating-systems virtual-memory ramdisk
New contributor
add a comment |
I hope to be at the right place. I could not find any suggestions on the "web" about my question. How could an O.S, let us say a distribution of linux, can be loaded from the hard-drive and execute all the modifications (all the applications) into the RAM ? In other words, how could we use an O.S to read data it needs from a hard-drive and only write what it needs into the RAM.
The aim is to be sure that all the "instructions" (this may be the wrong word) made by the O.S (and all the apps it executes) are made exclusively into the RAM (no write on the hard-disk).
I know some linux distributions can be entirely loaded into the RAM but the inconvenience is the size of the system we get : we can not have much available space for apps in the RAM whereas a normal system will find the needed app from the drive and load it into the memory. This could be done by using an extra RAM for the system but it is not a great solution compared to the use of a hard drive to save the apps we need (because of the actual prices of RAM)
I also thought about a virtual machine which can read the drive to use app and only write into RAM, in most cases. But it requires to load the VM from an existing, and loaded, O.S. so is there a way we can skip the existing O.S part ?
If you have any suggestions or technical words I have to use to search by myself, thank you.
hard-drive memory operating-systems virtual-memory ramdisk
New contributor
add a comment |
I hope to be at the right place. I could not find any suggestions on the "web" about my question. How could an O.S, let us say a distribution of linux, can be loaded from the hard-drive and execute all the modifications (all the applications) into the RAM ? In other words, how could we use an O.S to read data it needs from a hard-drive and only write what it needs into the RAM.
The aim is to be sure that all the "instructions" (this may be the wrong word) made by the O.S (and all the apps it executes) are made exclusively into the RAM (no write on the hard-disk).
I know some linux distributions can be entirely loaded into the RAM but the inconvenience is the size of the system we get : we can not have much available space for apps in the RAM whereas a normal system will find the needed app from the drive and load it into the memory. This could be done by using an extra RAM for the system but it is not a great solution compared to the use of a hard drive to save the apps we need (because of the actual prices of RAM)
I also thought about a virtual machine which can read the drive to use app and only write into RAM, in most cases. But it requires to load the VM from an existing, and loaded, O.S. so is there a way we can skip the existing O.S part ?
If you have any suggestions or technical words I have to use to search by myself, thank you.
hard-drive memory operating-systems virtual-memory ramdisk
New contributor
I hope to be at the right place. I could not find any suggestions on the "web" about my question. How could an O.S, let us say a distribution of linux, can be loaded from the hard-drive and execute all the modifications (all the applications) into the RAM ? In other words, how could we use an O.S to read data it needs from a hard-drive and only write what it needs into the RAM.
The aim is to be sure that all the "instructions" (this may be the wrong word) made by the O.S (and all the apps it executes) are made exclusively into the RAM (no write on the hard-disk).
I know some linux distributions can be entirely loaded into the RAM but the inconvenience is the size of the system we get : we can not have much available space for apps in the RAM whereas a normal system will find the needed app from the drive and load it into the memory. This could be done by using an extra RAM for the system but it is not a great solution compared to the use of a hard drive to save the apps we need (because of the actual prices of RAM)
I also thought about a virtual machine which can read the drive to use app and only write into RAM, in most cases. But it requires to load the VM from an existing, and loaded, O.S. so is there a way we can skip the existing O.S part ?
If you have any suggestions or technical words I have to use to search by myself, thank you.
hard-drive memory operating-systems virtual-memory ramdisk
hard-drive memory operating-systems virtual-memory ramdisk
New contributor
New contributor
New contributor
asked 21 hours ago
Ben WBen W
32
32
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
It's possible, but not trivial. I'll give you some pointers, but I can't really provide detailed steps, as I've never tried this myself.
OverlayFS - It lets you create a "layered" filesystem, where lower layer is read-only and upper layer is writable. That being said, lower layer is still completely mutable (you can edit, delete files etc., but they aren't really altered - changes are stored in the upper layer entirely) and works like a full-fledged filesystem.
tmpfs - It's another full-fledged filesystem which resides entirely in memory. You can set a capacity lower than amount of RAM to prevent accidentally choking the OS. Also, unused capacity is available as regular RAM, which is nice.
pivot_root - A system call that moves
/
to a different directory.
Typically early in the boot process pivot_root is called to switch from early userspace to on-disk filesystem. You could alter this: create OverlayFS with on-disk filesystem in the lower layer and tmpfs in the upper one, then pivot_root to OverlayFS.
Be warned that upper layer can grow rather quickly, consuming a lot of available RAM. zram can be used to reduce RAM usage at the cost of CPU usage, but it's not an ultimate solution. Updating on-disk OS permanently will also be tricky.
Thank a lot, I'm going to look at it
– Ben W
15 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
Ben W is a new contributor. Be nice, and check out our Code of Conduct.
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%2fsuperuser.com%2fquestions%2f1421730%2fsystem-that-can-read-hard-drive-and-exclusively-write-into-ram%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It's possible, but not trivial. I'll give you some pointers, but I can't really provide detailed steps, as I've never tried this myself.
OverlayFS - It lets you create a "layered" filesystem, where lower layer is read-only and upper layer is writable. That being said, lower layer is still completely mutable (you can edit, delete files etc., but they aren't really altered - changes are stored in the upper layer entirely) and works like a full-fledged filesystem.
tmpfs - It's another full-fledged filesystem which resides entirely in memory. You can set a capacity lower than amount of RAM to prevent accidentally choking the OS. Also, unused capacity is available as regular RAM, which is nice.
pivot_root - A system call that moves
/
to a different directory.
Typically early in the boot process pivot_root is called to switch from early userspace to on-disk filesystem. You could alter this: create OverlayFS with on-disk filesystem in the lower layer and tmpfs in the upper one, then pivot_root to OverlayFS.
Be warned that upper layer can grow rather quickly, consuming a lot of available RAM. zram can be used to reduce RAM usage at the cost of CPU usage, but it's not an ultimate solution. Updating on-disk OS permanently will also be tricky.
Thank a lot, I'm going to look at it
– Ben W
15 hours ago
add a comment |
It's possible, but not trivial. I'll give you some pointers, but I can't really provide detailed steps, as I've never tried this myself.
OverlayFS - It lets you create a "layered" filesystem, where lower layer is read-only and upper layer is writable. That being said, lower layer is still completely mutable (you can edit, delete files etc., but they aren't really altered - changes are stored in the upper layer entirely) and works like a full-fledged filesystem.
tmpfs - It's another full-fledged filesystem which resides entirely in memory. You can set a capacity lower than amount of RAM to prevent accidentally choking the OS. Also, unused capacity is available as regular RAM, which is nice.
pivot_root - A system call that moves
/
to a different directory.
Typically early in the boot process pivot_root is called to switch from early userspace to on-disk filesystem. You could alter this: create OverlayFS with on-disk filesystem in the lower layer and tmpfs in the upper one, then pivot_root to OverlayFS.
Be warned that upper layer can grow rather quickly, consuming a lot of available RAM. zram can be used to reduce RAM usage at the cost of CPU usage, but it's not an ultimate solution. Updating on-disk OS permanently will also be tricky.
Thank a lot, I'm going to look at it
– Ben W
15 hours ago
add a comment |
It's possible, but not trivial. I'll give you some pointers, but I can't really provide detailed steps, as I've never tried this myself.
OverlayFS - It lets you create a "layered" filesystem, where lower layer is read-only and upper layer is writable. That being said, lower layer is still completely mutable (you can edit, delete files etc., but they aren't really altered - changes are stored in the upper layer entirely) and works like a full-fledged filesystem.
tmpfs - It's another full-fledged filesystem which resides entirely in memory. You can set a capacity lower than amount of RAM to prevent accidentally choking the OS. Also, unused capacity is available as regular RAM, which is nice.
pivot_root - A system call that moves
/
to a different directory.
Typically early in the boot process pivot_root is called to switch from early userspace to on-disk filesystem. You could alter this: create OverlayFS with on-disk filesystem in the lower layer and tmpfs in the upper one, then pivot_root to OverlayFS.
Be warned that upper layer can grow rather quickly, consuming a lot of available RAM. zram can be used to reduce RAM usage at the cost of CPU usage, but it's not an ultimate solution. Updating on-disk OS permanently will also be tricky.
It's possible, but not trivial. I'll give you some pointers, but I can't really provide detailed steps, as I've never tried this myself.
OverlayFS - It lets you create a "layered" filesystem, where lower layer is read-only and upper layer is writable. That being said, lower layer is still completely mutable (you can edit, delete files etc., but they aren't really altered - changes are stored in the upper layer entirely) and works like a full-fledged filesystem.
tmpfs - It's another full-fledged filesystem which resides entirely in memory. You can set a capacity lower than amount of RAM to prevent accidentally choking the OS. Also, unused capacity is available as regular RAM, which is nice.
pivot_root - A system call that moves
/
to a different directory.
Typically early in the boot process pivot_root is called to switch from early userspace to on-disk filesystem. You could alter this: create OverlayFS with on-disk filesystem in the lower layer and tmpfs in the upper one, then pivot_root to OverlayFS.
Be warned that upper layer can grow rather quickly, consuming a lot of available RAM. zram can be used to reduce RAM usage at the cost of CPU usage, but it's not an ultimate solution. Updating on-disk OS permanently will also be tricky.
answered 19 hours ago
gronostajgronostaj
29.2k1472108
29.2k1472108
Thank a lot, I'm going to look at it
– Ben W
15 hours ago
add a comment |
Thank a lot, I'm going to look at it
– Ben W
15 hours ago
Thank a lot, I'm going to look at it
– Ben W
15 hours ago
Thank a lot, I'm going to look at it
– Ben W
15 hours ago
add a comment |
Ben W is a new contributor. Be nice, and check out our Code of Conduct.
Ben W is a new contributor. Be nice, and check out our Code of Conduct.
Ben W is a new contributor. Be nice, and check out our Code of Conduct.
Ben W is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1421730%2fsystem-that-can-read-hard-drive-and-exclusively-write-into-ram%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