Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187226

Re: I already had wrote into here

From "Thomas Schmitt" <scdbackup@gmx.net>
Newsgroups linux.debian.user
Subject Re: I already had wrote into here
Date 2017-09-26 09:20 +0200
Message-ID <utSjV-1vB-21@gated-at.bofh.it> (permalink)
References <utJJD-43z-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

now that you seem ok with the partitioning and the partition 1 is
not yet mountable, it is time to create a filesystem on it.
As superuser or via "sudo":

  mkfs -t ext2 /dev/sdb1

When this is done, you should be able to mount the filesystem

  mount /dev/sdb1 /mnt

The filesystem should be empty. So you need to make a directory
which you want to populate with files:

  mkdir /mnt/photos

and give it to the user who shall be able to write to it:

  chown gdsi /mnt/photos

Of course the user name "gdsi" is just a guess. Give the ownership to
the user id which runs your shells in the terminals. You may inquire it
by this command:

  whoami

Mine says "thomas".


Now it should be possible for your normal user id to copy files into
the directory:

  cp "$HOME"/photos/house*.jpg /mnt/photo

or to create further directories underneath /mnt/photo

  mkdir /mnt/photo/landscapes /mnt/photo/trees /mnt/photos/clouds


Before you pull the USB stick from the computer, you need to unmount it
so that any still pending changes get written to the stick.
As superuser or via sudo:

  umount /dev/sdb1

Each time after you plugged the stick into the computer, you need
to mount it, if not your desktop automats do this without asking you
(somewhere underneath /media, normally):

  mount /dev/sdb1 /mnt


Have a nice day :)

Thomas

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

I already had wrote into here Gdsi <gdsi11@aol.com> - 2017-09-25 20:30 +0200
  Re: I already had wrote into here "Thomas Schmitt" <scdbackup@gmx.net> - 2017-09-25 21:10 +0200
    Fwd: I already had wrote into here Gdsi <gdsi11@aol.com> - 2017-09-26 00:10 +0200
      Re: I already had wrote into here "Thomas Schmitt" <scdbackup@gmx.net> - 2017-09-26 09:20 +0200

csiph-web