Portál AbcLinuxu, 13. května 2025 23:35
mount | grep /home/xxx/Desktop/flash
?
root@ttyp1[flash]# mount -t vfat -o rw,nosuid,nodev,quiet,shortname=mixed, uid=root,gid=users,umask=077,iocharset=utf8 /dev/sda /home/root/Desktop/flash Usage: mount -V : print version mount -h : print this help mount : list mounted filesystems mount -l : idem, including volume labels So far the informational part. Next the mounting. The command is `mount [-t fstype] something somewhere'. Details found in /etc/fstab may be omitted. mount -a [-t|-O] ... : mount all stuff from /etc/fstab mount device : mount device at the known place mount directory : mount known device here mount -t type dev dir : ordinary mount command Note that one does not really mount a device, one mounts a filesystem (of the given type) found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --move olddir newdir A device can be given by name, say /dev/hda1 or /dev/cdrom, or by label, using -L label or by uuid, using -U uuid . Other options: [-nfFrsvw] [-o options] [-p num]. For many more details, say man 8 mount .
mount -t vfat -o rw,nosuid,nodev,quiet,shortname=mixed,uid=jmeno_non_root_uzivatele_ze_skupiny_users,gid=users,umask=077,iocharset=utf8 /dev/sda1 /home/root/Desktop/flash
/dev/sda
nemůže být, je potřeba určit konkrétní oddíl, např. /dev/sda1
(viz: fdisk -l
)
root@ttyp1[flash]# mount -t vfat -o rw,nosuid,nodev,quiet,shortname=mixed,uid=jmeno_non_root_uzivatele_ze_skupiny_users,gid=users,umask=077,iocharset=utf8 /dev/sda1 /home/root/Desktop/flash mount: mount point /home/root/Desktop/flash does not exist root@ttyp1[flash]#
ls -ld /home/root/Desktop/flash
povie čo?
mount: mount point /home/root/Desktop/flash does not exist
ls -ld /home/root/Desktop/flashpovi>
ls: /home/root/Desktop/flash: No such file or directory
ls -l /home/root/Desktop/
/mnt/
rw,nosuid,nodev,quiet,shortname=mixed,uid=jmeno_non_root_uzivatele_ze_skupiny_users,gid=users,umask=077,iocharset=utf8 /dev/sda1 /mnt mount: /dev/sda1 already mounted or /mnt busy mount: according to mtab, /dev/sda1 is mounted on /mnt/sda1 root@ttyp2[Desktop]#
mount: according to mtab, /dev/sda1 is mounted on /mnt/sda1
Človeče mal by si čítať čo ti tie programy píšu.
Do /home/root/Desktop/flash to nepripojíš, pretože ten adresár neexistuje. Dokonca ani /home/root/Desktop ti neexistuje.
Dokonca ti mount píše, že ten disk /dev/sda1 máš už pripojený do /mnt/sda1 - tam je asi primountovaný ako read-only (to ti potvrdí výstup z mount). Takže ho skús odmountovať a namountovať znova.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.