Debian sd card mounten ro

mcb

Well-known member
Themenstarter
Registriert
18 März 2009
Beiträge
4.704
Moin,

ich möchte die sd-karte unter Debian read-only mounten, so das alle Benutzer darauf zugreifen können.

Was trage ich den in die fstab ein?

Im moment wird sie automatisch für den aktiven benutzer unter /media eingehängt.

Danke

Code:
lsblk
NAME                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
mmcblk0             179:0    0 183.4G  0 disk  
└─mmcblk0p1         179:1    0 183.3G  0 part  /media/marc/Card 2

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p3 during installation
UUID=cdbe20b7-11e7-472a-8b76-ad50d17ec988 /boot           ext4    defaults        0       2
/dev/mapper/vg-home /home           ext4    defaults        0       2
/dev/mapper/vg-swap none            swap    sw              0       0

mount gibt:

Code:
/dev/mmcblk0p1 on /media/marc/Card 2 type fuseblk (rw,nosuid,nodev,relatime,user

- - - Beitrag zusammengeführt - - -

Per Hand habe ich es hinbekommen:
Code:
sudo mount -o ro /dev/mmcblk0p1 /media/Card/

- - - Beitrag zusammengeführt - - -

Auch Mensch:

Code:
GNU nano 3.2                                   /etc/fstab                                              

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p3 during installation
UUID=cdbe20b7-11e7-472a-8b76-ad50d17ec988 /boot           ext4    defaults        0       2
/dev/mapper/vg-home /home           ext4    defaults        0       2
/dev/mapper/vg-swap none            swap    sw              0       0
# UUID="57D6-C713" TYPE="exfat" PARTUUID="eae40bc6-01"
UUID="57D6-C713" /media/Card exfat ro,auto,nouser



































                                            [ Read 14 lines ]
^G Get Help    ^O Write Out   ^W Where Is    ^K Cut Text    ^J Justify     ^C Cur Pos     M-U Undo
^X Exit        ^R Read File   ^\ Replace     ^U Uncut Text  ^T To Spell    ^_ Go To Line  M-E Redo

:confused:

- - - Beitrag zusammengeführt - - -

Fehlt da noch was ?

UUID="57D6-C713" /media/Card exfat ro,auto,nouser




Ernstgemeinte Frage.
 
Zuletzt bearbeitet:
Code:
/dev/mmcblk0p1 on /media/Card type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) [Card 2]

Holly shit.

Code:
sudo blkid
/dev/nvme0n1: PTUUID="0261bf02" PTTYPE="dos"
/dev/nvme0n1p1: LABEL="System Reserved" UUID="100AD9380AD91B92" TYPE="ntfs" PARTUUID="0261bf02-01"
/dev/nvme0n1p2: TYPE="BitLocker" PARTUUID="0261bf02-02"
/dev/nvme0n1p3: UUID="cdbe20b7-11e7-472a-8b76-ad50d17ec988" TYPE="ext4" PARTUUID="0261bf02-03"
/dev/nvme0n1p5: UUID="c6ed8031-d40b-4243-b53b-dfac3036e775" TYPE="crypto_LUKS" PARTUUID="0261bf02-05"
/dev/mmcblk0: PTUUID="eae40bc6" PTTYPE="dos"
/[B]dev/mmcblk0p1: LABEL="Card 2" UUID="57D6-C713" TYPE="exfat" PARTUUID="eae40bc6-01"[/B]
/dev/mapper/nvme0n1p5_crypt: UUID="wi4GM7-wSVo-emmK-3GQ6-r1d2-LcOx-IaaA5i" TYPE="LVM2_member"
/dev/mapper/vg-swap: UUID="101ad1af-126a-483e-8a04-669d63cd847d" TYPE="swap"
/dev/mapper/vg-root: UUID="121f228a-4ba3-4d04-ba34-6a6ad5943e36" TYPE="ext4"
/dev/mapper/vg-home: UUID="954d3218-1655-4489-b917-58aa01c496ff" TYPE="ext4"

Das habe ich jetzt in die fstab gebastelt:

Code:
# UUID="57D6-C713" TYPE="exfat" PARTUUID="eae40bc6-01"
[B]UUID="57D6-C713" /media/Card exfat ro,auto,nouser,nofail,nosuid,nodev,noexec[/B]

exfat & auto ist doppelt ?
 
Zuletzt bearbeitet:
  • ok1.de
  • ok2.de
  • thinkstore24.de
  • Preiswerte-IT - Gebrauchte Lenovo Notebooks kaufen

Werbung

Zurück
Oben