load RAM disk with command [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
How to mount below fstab line with command?in case of I can't restart the server.
none /var/tmpfs tmpfs defaults,size=16g 1 2

Open up your editor and edit the /etc/fstab file
This seems to be your line to mount the partition
none /var/tmpfs tmpfs defaults,size=16g 1 2
You would normally have to reboot your Linux system, after editing this file.
There is a simple way which will remount all the partitions from your /etc/fstab file without restarting the system.
Run the following command as root
sudo mount -a
After you've done that, do a
df -lh
you should see your drives listed.

Related

Increase /tmp directory space in linux 7 through terminal [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have problem in installing oracle DB since /tmp has no required freespace. How to increase the space of /tmp folder from terminal?
hope you have some free space in the disk. Its possible to make free space to a particular partition here its /tmp
Open the terminal and run
df -h
this will show the disk space currently you have in the system
to increase the space for the partition
type
`sudo umount /tmp`
sudo mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp
this will increase the size by 1MB if you add and extra zero that is 10485760 will increase the size by 10MB. Add space upon how much you needed.

how to find iso image according to mounted folder? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I type df -h on linux terminal, and it shows
Filesystem Size Used Avail Use% Mounted on
/dev/sr0 3.0G 3.0G 0 100% /media/SLE-11-SP1-SDK-DVD-x86_64.02.001
How can I find the source ISO image which is mounting on /media/SLE-11-SP1-SDK-DVD-x86_64.02.001?
/dev/sr0 should correspond to a CD/DVD drive. So I assume that you want to create an iso image out of this DVD? If that is the case, you should umount the DVD:
sudo umount /media/SLE-11-SP1-SDK-DVD-x86_64.02.001
and then create your iso image like this
dd if=/dev/sr0 of=~/<whatever_name_u_want>.iso
If you actually think an iso image (and not a real DVD) is mounted on your system, try using the mount command. (And if you need more help paste its output)

How can I know disk usage with unmounted disk? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
As far as I know, du or df can be used in MOUNTED partition only. I don't want to mount them, but I wanna know their usage, What command I can peek that info?
you can try
tune2fs -l /dev/sdx (your unmounted parition)
or
parted /dev/sdx print al
Untested but GNU df supports --direct. I don't have access to any linux at the moment. But give it a try.
df --direct /dev/sda2

CentOS won't start, Can't undo changes [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm running CentOS 6.4 in a VMWare Player virtual machine. I was trying to add two partitions to the file system. First I used fdisk to add the partitions, then mke2fs, then I mounted the partitions. Then I manually edited /etc/fstab, I added lines for the new partitions listed by blkid.
When I restarted, the OS is failing to start, it brings me to a terminal. So I tried to undo the changes I made to the /etc/fstab file, but it's saying that everything is read only, even though I am root. It won't let me remove the lines I added before to /etc/fstab.
Does anybody know how I can recover? At least how to get the stupid thing to boot again.
I think you need to remount the filesystem in rw mode:
mount -o rw,remount /
After that you can edit /etc/fstab and revert your changes, save the file and reboot.

What does it mean to mount sda3 on /dev? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am asking this question after searching a lot on Internet.
I am using linux on my PC. It has a disk which has 3 partitions. sda1, sda2, sda3. sda3 contains linux, sda2 is swap and sda1 is FAT.
My question is that "sda3" is a partition which contains whole when linux than I don't understand what do you mean by mounting it on /dev/sda3?
/home, /usr, /var everything is inside sda3 then why are we saying that we are mounting sda3 on /dev while /dev and all the other filesystems are in sda3?
/dev is a directory containing ''pointers'' (in the form of block/character special files) that give the user/programs access to special devices that only the kernel has access to normally.
sda3 isn't actually mounted on /dev/sda3, that's just the block special file that lets us manipulate sda3. The real ''mount point'' is /.
I found my answer after reading http://en.wikipedia.org/wiki/Device_file
/dev/sda3 is actually a device file.

Resources