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.
Related
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.
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
So I ran the following command in Cygwin: dd if=/dev/zero of=E:
Now my C: drive lost all its free space. Upon unpluggin my E: drive from its USB port, the PC automatically shuts down. Is /dev/zero being created within the C: drive, and if so does that make it potentially unsafe to use with Cygwin?
Writing directly to disks is really DANGEROUS on any system
On cygwin the disks as physical entities are not the windows letter E: or the logical /cygdrive/e entities
If you want to completely overwrite the physical structure
dd if=/dev/zero of=/dev/sdXX
Pay REALLY attention to your final destination, or you will
BLOW your system.
/dev/sda full first disk
/dev/sda1 first disk, first partition
/dev/sdb full second disk
/dev/sdb1 second disk, first partition
and so on...
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 shred against blockdevice with couple of etx4 filesystems on it.
The blockdevices are virtual drives - RAID-1 and RAID-5. Controller is PERC H710P.
command
shred -v /dev/sda; shred -v /dev/sdc ...
I can understand from shred man(info) page that shred might be no effective on journal filesystems but only when shredding files.
Anyone can please explain whether is shredding against blockdevice safe way to destruct all data on it?
This is a complex issue.
The only way that is 100% effective is physical destruction. The problem is that the drive firmware can mark sectors as bad and remap them to a pool of spares. These sectors are effectively no longer accessible to you but the old data may be recoverable from those sectors by other means (such as an alternate firmware or physically removing the platters).
That being said, running shred on the block device does not have the issues due to journaling.
The problem with journaling is that for partial overwrites to be recoverable you cannot actually overwrite the original data, so the overwrite of the file takes place in a second physical location, leaving the first in tact. Writing directly to the block device is not subject to journaling.
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
When practising cgroup, we need mount like mount -t cgroup -o cpuset none /cpuset
Would you explain the significance of none here?
Seems it's just a name and I could set it as any string, right?
Is there any file, folder or file contant based on it?
Certain filesystems aren't associated with a physical device (such as a partition or network share, which is what is expected at that point in the mount command) and it is/was customary to use none for these. I've seen a more reasonable approach, using a more descriptive name, eg. cpuset in your case.
Cheers,
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)