Web lists-archives.com

Re: I already had wrote into here




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