Find the answer to your Linux question:
Page 4 of 4 FirstFirst 1 2 3 4
Results 31 to 36 of 36
I got this to work so ITS WORKING!!!! now I've typed mkdir /mnt/2 and then mount /dev/sda2 /mnt/2 I can read but I cant write ... and I'm using root. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #31
    Linux Newbie
    Join Date
    May 2012
    Posts
    115

    I got this to work so ITS WORKING!!!!

    now I've typed mkdir /mnt/2 and then mount /dev/sda2 /mnt/2
    I can read but I cant write ... and I'm using root.
    btw by mounting when I restart it unmounts the disk... how can I do it permanently?
    Last edited by Joaogl; 06-29-2013 at 07:42 PM.

  2. #32
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,102
    now I've typed mkdir /mnt/2 and then mount /dev/sda2 /mnt/2
    Is that on the Arch system on the raspberry? You can see what the permissions are and who the owner/group are with the ls -l command. In your particular case:

    ls -l /mnt/2

    I would expect that you would have read/write as root if this is the system you have installed.

  3. #33
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    Code:
    root@raspberrypi:~# ls -l /mnt/2
    total 0

  4. #34
    Just Joined!
    Join Date
    Feb 2010
    Location
    Berlin, Germany
    Posts
    17
    Quote Originally Posted by Joaogl View Post
    Code:
    root@raspberrypi:~# ls -l /mnt/2
    total 0
    That would mean that currently there are no visible file or directories on the hard drive.

    If you type:

    Code:
    la -al /mnt/2
    hidden files should be shown, if there are any, at leat the output should look like:

    Code:
    $ ls -al /mnt/2
    .
    ..
    which are actually not files or directories but .. is a link to the parent folder, the . some sort of reference the directory itself, I'm not too familiar with that stuff.

    Could you do:

    Code:
    $ ls -al /mnt
    This should give you the ownership of the drive (as it is mounted) as well as read/write/execute permission.

    For example mine looks like this (Mount point is different though)

    Code:
    $ ls  -al /run/media/pascal
    
    drwxr-xr-x  19 pascal entropy  4096 Jun 23 06:56 CnMemory
    drwxr-xr-x  15 pascal entropy 12288 May 14 11:36 HDD-Crypt
    Here we have to external harddrives, shown as directories (see to letter d at the beginning of the respective lines. I, the user pascal have (r)ead, (w)rite and (e)xecute permissions (first three letters after d), then other user in the same group (entropy) with only read and execute rights, and other users, also restricted to read and execute. Both directories belong to user pascal and to group entropy

    So what does you output say?

  5. #35
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,102
    btw by mounting when I restart it unmounts the disk.
    You will need to explain what you mean by that because it doesn't make any sense. Do you mean it is not mounted when you reboot? If you manually mount from a terminal and reboot, yes you will need to do it manually each time you reboot. If you want it permanently mounted, you will need an entry in the /etc/fstab file.

  6. #36
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    Ok,

    Code:
    root@raspberrypi:~# ls -al /mnt/2
    total 8
    drwxr-xr-x 2 root root 4096 Jun 29 19:27 .
    drwxr-xr-x 3 root root 4096 Jun 29 19:27 ..
    root@raspberrypi:~# ls -al /mnt
    total 48
    drwxr-xr-x  3 root root  4096 Jun 29 19:27 .
    drwxr-xr-x 22 root root 36864 Jun 20 21:41 ..
    drwxr-xr-x  2 root root  4096 Jun 29 19:27 2
    root@raspberrypi:~#
    I've managed to write the files in to the server for some reason they didnt worked only for one folder... But now its done.
    Thanks guys!

Page 4 of 4 FirstFirst 1 2 3 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •