Jump to content
dil_bert

mounting an usb-stick on linux - some thing go wrong here

Recommended Posts

hello dear experts dear php-freaks

 

i am trying to mount a usb-stick to a linux system...


 

Passwort:
[martin-pc martin]# fdisk -l
Festplatte /dev/sda: 298,1 GiB, 320072933376 Bytes, 625142448 Sektoren
Disk model: TOSHIBA MQ01ABD0
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 4096 Bytes
E/A-Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0x11de3a44

Gerät      Boot    Anfang      Ende  Sektoren  Größe Kn Typ
/dev/sda1            2049 607788143 607786095 289,8G 83 Linux
/dev/sda2       607788144 625137344  17349201   8,3G 82 Linux Swap / Solaris

Partition 1 beginnt nicht an einer physikalischen Sektorgrenze.


mkdir /media/usb-drive

and last but not least...

 


 

[martin-pc martin]# mkdir /media/usb-drive
mkdir: das Verzeichnis „/media/usb-drive“ kann nicht angelegt werden: Datei oder Verzeichnis nicht gefunden
[martin-pc martin]# mkdir /media/usb-drive
mkdir: das Verzeichnis „/media/usb-drive“ kann nicht angelegt werden: Datei oder Verzeichnis nicht gefunden
[martin-pc martin]#

well what goes wrong here ?

 

 

Share this post


Link to post
Share on other sites

well - i need to use the  mkdir command to create a new mount point directory where i want to mount your USB device:

# mkdir /media/usb-drive 
 

i will try out this command

Share this post


Link to post
Share on other sites

wait -

 

see what i get back from running the mount-command:

 

[martin-pc martin]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=1964240k,nr_inodes=491060,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda1 on / type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=321)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=394300k,mode=700,uid=1000,gid=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
[martin-pc martin]# 

 

Share this post


Link to post
Share on other sites
19 minutes ago, dil_bert said:

well - i need to use the  mkdir command to create a new mount point directory where i want to mount your USB device:


# mkdir /media/usb-drive 


 

i will try out this command

What, a third time? You think if you keep asking then the computer will do it?

8 minutes ago, dil_bert said:

see what i get back from running the mount-command:

I'm not sure why you think it matters...

  • Like 1

Share this post


Link to post
Share on other sites


used this command

mkdir -p /media/usb-drive

At this stage we are ready to mount our USB's partition /dev/sdc1 into /media/usb-drive mount point:


# mount /dev/sdc1 /media/usb-drive/

To check whether our USB drive has been mounted correctly we can execute the mount command again without any arguments and use grep to search for USB block device name:

 


# mount | grep sdc1

but this does not help - i was not lucky...

Share this post


Link to post
Share on other sites

Hello dear friends

sudo dmesg -T
 

while & after connecting the usb-stick


 

[Mo Nov 26 00:52:02 2018] usb 4-1.2: new high-speed USB device number 12 using ehci-pci
[Mo Nov 26 00:52:12 2018] psmouse serio4: Touchpad at isa0060/serio4/input0 lost sync at byte 6
[Mo Nov 26 00:52:12 2018] psmouse serio4: Touchpad at isa0060/serio4/input0 - driver resynced.
[Mo Nov 26 01:00:16 2018] usb 4-1.2: USB disconnect, device number 12
[martin-pc martin]# sudo dmesg -T

 

Share this post


Link to post
Share on other sites

Your problem is in your understanding of Linux, not in the kernel.

  • Like 1

Share this post


Link to post
Share on other sites

hello dear all

 

in run i do not have any media folder

insgesamt 8
drwxr-xr-x  2 avahi avahi   80 24. Nov 22:08 avahi-daemon
drwxr-xr-x  2 root  root    60 25. Nov 20:38 blkid
----------  1 root  root     0 24. Nov 22:08 cron.reboot
drwx------  2 root  root    40 24. Nov 22:08 cryptsetup
drwxr-xr-x  3 root  cups    80 24. Nov 22:10 cups
drwxr-xr-x  2 root  root    60 24. Nov 22:08 dbus
prw-------  1 root  root     0 24. Nov 22:08 dmeventd-client
prw-------  1 root  root     0 24. Nov 22:08 dmeventd-server
prw-------  1 root  root     0 24. Nov 22:08 initctl
drwxr-xr-x  2 root  root    40 24. Nov 22:08 initramfs
drwxr-xr-x  5 root  root   120 24. Nov 22:08 lock
drwxr-xr-x  2 root  root    40 24. Nov 22:08 log
drwxr-xr-x  2 root  root    80 24. Nov 22:08 lvm
-rw-r--r--  1 root  root     4 24. Nov 22:08 lvmetad.pid
drwxr-xr-x  2 root  root    40 24. Nov 22:08 mount
drwxr-xr-x  2 mpd   mpd     40 24. Nov 22:08 mpd
drwxr-xr-x  2 mysql mysql   40 24. Nov 22:08 mysqld
drwxr-xr-x  4 root  root   100 29. Nov 18:44 NetworkManager
drwxr-xr-x  2 root  root    40 24. Nov 22:08 nscd
drwx--x---  2 root  root    40 24. Nov 22:08 openvpn-client
drwx--x---  2 root  root    40 24. Nov 22:08 openvpn-server
drwxr-xr-x  2 root  root    40 24. Nov 22:08 samba
drwxr-xr-x  2 root  root    60 24. Nov 22:09 sddm
drwx--x--x  3 root  root    60 24. Nov 22:08 sudo
drwx------  2 root  root    40 24. Nov 22:08 svnserve
drwxr-xr-x 19 root  root   440 29. Nov 00:00 systemd
drwxr-xr-x  2 root  root    80 24. Nov 22:08 tlp
drwxr-xr-x  2 root  root    60 24. Nov 22:08 tmpfiles.d
drwxr-xr-x  7 root  root   160 29. Nov 20:41 udev
drwx------  2 root  root    40 24. Nov 22:09 udisks2
drwxr-xr-x  3 root  root    60 24. Nov 22:09 user
-rw-rw-r--  1 root  utmp  2304 29. Nov 20:47 utmp
[martin@martin-pc run]$

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.