Why can't dd write to /dev/ram0 on Core Linux?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I created an ext2 file-system on /dev/ram0
ramdisk, and mounted it at /mnt/ram
.
mkdir /mnt/ram
mkext2fs /dev/ram0
sudo mount /dev/ram0 /mnt/ram -o rw
Reading from ramdisk with dd
works.
dd if=/dev/ram0 bs=1 count=1
When I want to write the contents of the file my_file
to ramdisk, it fails.
dd if=./my_file of=/dev/ram0 bs=1 count=1
0+0 records in
0+0 records out
0 bytes (0B) copied, 0.000913 seconds, 0B/s
However, just reading the file dumps its content on stdin.
dd if=./my_file bs=1 count=1
The permission on /dev/ram0
shows rw permisssion for root.
ls -l /dev/ram0
brw-rw---- 1 root staff 1, 0 Jul 5 02:56 /dev/ram0
What does prevent dd from writing to /dev/ram0
?
dd initramfs initrd ramdisk tinycore
add a comment |Â
up vote
1
down vote
favorite
I created an ext2 file-system on /dev/ram0
ramdisk, and mounted it at /mnt/ram
.
mkdir /mnt/ram
mkext2fs /dev/ram0
sudo mount /dev/ram0 /mnt/ram -o rw
Reading from ramdisk with dd
works.
dd if=/dev/ram0 bs=1 count=1
When I want to write the contents of the file my_file
to ramdisk, it fails.
dd if=./my_file of=/dev/ram0 bs=1 count=1
0+0 records in
0+0 records out
0 bytes (0B) copied, 0.000913 seconds, 0B/s
However, just reading the file dumps its content on stdin.
dd if=./my_file bs=1 count=1
The permission on /dev/ram0
shows rw permisssion for root.
ls -l /dev/ram0
brw-rw---- 1 root staff 1, 0 Jul 5 02:56 /dev/ram0
What does prevent dd from writing to /dev/ram0
?
dd initramfs initrd ramdisk tinycore
Im not sure that what you want to do is possible but you better mount the fs instead of trying to overwrite it
â Kiwy
Jul 5 at 8:27
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I created an ext2 file-system on /dev/ram0
ramdisk, and mounted it at /mnt/ram
.
mkdir /mnt/ram
mkext2fs /dev/ram0
sudo mount /dev/ram0 /mnt/ram -o rw
Reading from ramdisk with dd
works.
dd if=/dev/ram0 bs=1 count=1
When I want to write the contents of the file my_file
to ramdisk, it fails.
dd if=./my_file of=/dev/ram0 bs=1 count=1
0+0 records in
0+0 records out
0 bytes (0B) copied, 0.000913 seconds, 0B/s
However, just reading the file dumps its content on stdin.
dd if=./my_file bs=1 count=1
The permission on /dev/ram0
shows rw permisssion for root.
ls -l /dev/ram0
brw-rw---- 1 root staff 1, 0 Jul 5 02:56 /dev/ram0
What does prevent dd from writing to /dev/ram0
?
dd initramfs initrd ramdisk tinycore
I created an ext2 file-system on /dev/ram0
ramdisk, and mounted it at /mnt/ram
.
mkdir /mnt/ram
mkext2fs /dev/ram0
sudo mount /dev/ram0 /mnt/ram -o rw
Reading from ramdisk with dd
works.
dd if=/dev/ram0 bs=1 count=1
When I want to write the contents of the file my_file
to ramdisk, it fails.
dd if=./my_file of=/dev/ram0 bs=1 count=1
0+0 records in
0+0 records out
0 bytes (0B) copied, 0.000913 seconds, 0B/s
However, just reading the file dumps its content on stdin.
dd if=./my_file bs=1 count=1
The permission on /dev/ram0
shows rw permisssion for root.
ls -l /dev/ram0
brw-rw---- 1 root staff 1, 0 Jul 5 02:56 /dev/ram0
What does prevent dd from writing to /dev/ram0
?
dd initramfs initrd ramdisk tinycore
asked Jul 5 at 5:09
Holmes.Sherlock
214110
214110
Im not sure that what you want to do is possible but you better mount the fs instead of trying to overwrite it
â Kiwy
Jul 5 at 8:27
add a comment |Â
Im not sure that what you want to do is possible but you better mount the fs instead of trying to overwrite it
â Kiwy
Jul 5 at 8:27
Im not sure that what you want to do is possible but you better mount the fs instead of trying to overwrite it
â Kiwy
Jul 5 at 8:27
Im not sure that what you want to do is possible but you better mount the fs instead of trying to overwrite it
â Kiwy
Jul 5 at 8:27
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f453525%2fwhy-cant-dd-write-to-dev-ram0-on-core-linux%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
Im not sure that what you want to do is possible but you better mount the fs instead of trying to overwrite it
â Kiwy
Jul 5 at 8:27