LFCS · Question #843
What command is used to mount a floppy disk image under /mnt/floppy?
The correct answer is C. mount -o loop root.img /mnt/floppy. To mount a floppy disk image as a filesystem, the mount command with the -o loop option is used to treat the image file as a block device.
Question
Options
- Amount -loop root.img /mnt/floppy
- Bmount root.img /mnt/floppy
- Cmount -o loop root.img /mnt/floppy
- Dmount root.img
- Emount -l root.img /mnt/floppy
How the community answered
(52 responses)- B2% (1)
- C88% (46)
- D8% (4)
- E2% (1)
Why each option
To mount a floppy disk image as a filesystem, the `mount` command with the `-o loop` option is used to treat the image file as a block device.
`mount -loop` is syntactically incorrect; the option for loopback device is `-o loop`.
`mount root.img /mnt/floppy` would attempt to mount the file `root.img` directly, which requires it to be a block device, not just a regular file.
C is correct because the `-o loop` option is essential when mounting a file (like `root.img`) as a block device. This allows the `mount` command to interpret the image file as a filesystem that can then be mounted at the specified mount point `/mnt/floppy`.
`mount root.img` is incomplete and doesn't specify a mount point.
`mount -l` is not a standard option for loopback mounting; `-l` typically means "label".
Concept tested: Mounting image files (loop device)
Source: https://man7.org/linux/man-pages/man8/mount.8.html
Topics
Community Discussion
No community discussion yet for this question.