Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Permission Denied On USB Hard Drive

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    8

    Permission Denied On USB Hard Drive

    I'm trying to move some .jpg & .mp3 files from a USB hard drive that is formatted under MAC OSX (0xaf) to a Windows Vista Laptop.

    I am using a Knoppix 6 live cd. Knoppix sees the laptop hard drive as

    System /media/sda2
    Vista /media/sda3
    Recovery /media/sda1

    and the USB hard drive as

    disk2s1

    I can see files on the laptop's hard drive but when I try to access the USB drive I get 'Permission Denied'

    Can the files on this drive be transferred to the laptop?

    Thanks for any help or suggestions

  2. #2
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528

    Need more information

    Quote Originally Posted by Cherry5 View Post
    I'm trying to move some .jpg & .mp3 files from a USB hard drive that is formatted under MAC OSX (0xaf) to a Windows Vista Laptop.

    I am using a Knoppix 6 live cd. Knoppix sees the laptop hard drive as

    System /media/sda2
    Vista /media/sda3
    Recovery /media/sda1

    and the USB hard drive as

    disk2s1

    I can see files on the laptop's hard drive but when I try to access the USB drive I get 'Permission Denied'

    Can the files on this drive be transferred to the laptop?

    Thanks for any help or suggestions
    Have you tried
    Code:
    ls -la disk2s1
    to get more information (owner, etc.), or sudo to make your requests with root permissions?

    Cheers!
    Krishna

  3. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    8
    Quote Originally Posted by krishna.murphy View Post
    Have you tried
    Code:
    ls -la disk2s1
    to get more information (owner, etc.), or sudo to make your requests with root permissions?

    Cheers!
    Krishna
    Hi

    All I get is: ls cannot access disk2s1 no such file or directory

  4. #4
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by Cherry5 View Post
    Hi

    All I get is: ls cannot access disk2s1 no such file or directory
    Okay, try this:
    Code:
    locate disk2s1
    That should tell you where it is, I think. The MacOS disk format seems to be pretty challenging for other OSs...

    Krishna

  5. #5
    Junior Member
    Join Date
    Nov 2006
    Posts
    8

    Not much luck

    Quote Originally Posted by krishna.murphy View Post
    Okay, try this:
    Code:
    locate disk2s1
    That should tell you where it is, I think. The MacOS disk format seems to be pretty challenging for other OSs...

    Krishna
    Hi

    Now I get this:

    locate:warning:database '/var/cache/locate/locaedb' is more than 8 days old (actual age is 61.0days)

  6. #6
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    I think that "disk2s1" is the partition's label. Usually the partition gets a mount point in the directory /media and that mount point is named after the device name. In the PCMan File Manager the partitions are often identified by their label. You might try
    Code:
    ls -l /dev/disk/by-label/disk2s1
    to get the device name. Execution of the command
    Code:
    mount
    delivers information about the partition's mount point if it's already mounted. Afterwards you might execute
    Code:
    ls -la "mount point"
    Example: The partition has got the label "Cruzer1" and the device name is /dev/sda1. The mount command delivers the mount point /media/sda1. Thus I would execute
    Code:
    ls -la /media/sda1
    in order to see the owner, group and permissions.

    If the partition has not yet been mounted then the mount command won't show you a mount point, but
    you might try
    Code:
    sudo mkdir /media/macdisk
    sudo mount -o gid=1000,uid=1000 /dev/disk/by-label/disk2s1 /media/macdisk
    ls -la /media/disk2s1
    If this does not work then mount will give you an error message.

  7. #7
    Junior Member
    Join Date
    Nov 2006
    Posts
    8
    The replies to the commands are as follows:

    lrwxrwxrwx 1 root root 10 Apr 10 14:19 /dev/disk/by-label/disk2s1 -> ../../sdb1



    rootfs on / type rootfs (rw,relatime)
    proc on /proc type proc (rw,relatime)
    sysfs on /sys type sysfs (rw,relatime)
    /dev/sr0 on /mnt-system type iso9660 (ro,relatime)
    tmpfs on /ramdisk type tmpfs (rw,relatime,size=1048576k)
    /dev/cloop on /KNOPPIX type iso9660 (ro,relatime)
    unionfs on /UNIONFS type aufs (rw,relatime,si=9c1cdfb0,noplink)
    unionfs on /home type aufs (rw,relatime,si=9c1cdfb0,noplink)
    usbfs on /proc/bus/usb type usbfs (rw,relatime)
    tmpfs on /UNIONFS/var/run type tmpfs (rw,relatime,size=10240k)
    tmpfs on /UNIONFS/var/lock type tmpfs (rw,relatime,size=10240k)
    tmpfs on /UNIONFS/var/log type tmpfs (rw,relatime,size=102400k)
    tmpfs on /tmp type tmpfs (rw,relatime,size=1048576k)
    udev on /dev type tmpfs (rw,relatime,size=20480k)
    tmpfs on /dev/shm type tmpfs (rw,relatime,size=1048576k)
    devpts on /dev/pts type devpts (rw,relatime,mode=1777)
    /dev/sda1 on /media/sda1 type fuseblk (rw,nosuid,nodev,relatime,user_id=1000,group_id=10 00,allow_other,blksize=4096)
    /dev/sda2 on /media/sda2 type fuseblk (rw,nosuid,nodev,relatime,user_id=1000,group_id=10 00,allow_other,blksize=4096)
    /dev/sda3 on /media/sda3 type fuseblk (rw,nosuid,nodev,relatime,user_id=1000,group_id=10 00,allow_other,blksize=4096)
    /dev/sdb1 on /media/sdb1 type hfsplus (ro,nosuid,nodev,relatime,umask=22,uid=1000,gid=10 00,nls=utf



    ls: cannot access mount point: No such file or directory



    ls: /media/sda1/System Volume Information: Permission denied
    total 20
    drwxr-xr-x+ 1 knoppix root 4096 Jun 4 2009 .
    drwxr-xr-x 8 root root 0 Apr 10 14:26 ..
    drwxr-xr-x+ 1 root root 0 Jun 1 2009 ImageLayout
    drwxr-xr-x+ 1 knoppix root 0 Mar 21 2007 Program Files
    drwxr-xr-x+ 1 knoppix root 0 Mar 21 2007 ProgramData
    drwx------ 1 root root 0 Jun 1 2009 System Volume Information
    drwxr-xr-x+ 1 knoppix root 0 Mar 21 2007 Users
    drwxr-xr-x+ 1 knoppix root 8192 Mar 21 2007 Windows
    -rwxr-xr-x 1 root root 0 Nov 10 2006 hdd
    drwxr-xr-x+ 1 knoppix root 4096 Mar 21 2007 sources
    drwxr-xr-x+ 1 root root 4096 Jun 13 2007 tgm



    sage: mount -V : print version
    mount -h : print this help
    mount : list mounted filesystems
    mount -l : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
    mount device : mount device at the known place
    mount directory : mount known device here
    mount -t type dev dir : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
    mount --bind olddir newdir
    or move a subtree:
    mount --move olddir newdir
    One can change the type of mount containing the directory dir:
    mount --make-shared dir
    mount --make-slave dir
    mount --make-private dir
    mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
    mount --make-rshared dir
    mount --make-rslave dir
    mount --make-rprivate dir
    mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using -L label or by uuid, using -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say man 8 mount .



    I still get 'Permission Denied' when I try to access the disk. I can mount and un-mount by right clicking the drive.

  8. #8
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Quote Originally Posted by Cherry5
    /dev/sdb1 on /media/sdb1 type hfsplus (ro,nosuid,nodev,relatime,umask=22,uid=1000,gid=10 00,nls=utf
    Your USB disk has been mounted on /media/sdb1. You may not write on it but you may read. Now you might run the command
    Code:
    ls -al /media/sdb1
    to see owner, group and permissions of the files and directories.

  9. #9
    Junior Member
    Join Date
    Nov 2006
    Posts
    8
    After ls -al /media sdb1


    root@Microknoppix:/home/knoppix# ls -al /media/sdb1
    total 0
    drwxrwxr-x 2 knoppix knoppix 0 Apr 10 16:16 .
    drwxr-xr-x 7 root root 0 Apr 10 16:16 ..
    root@Microknoppix:/home/knoppix#

  10. #10
    Junior Member
    Join Date
    Nov 2006
    Posts
    8
    Quote Originally Posted by Cherry5 View Post
    After ls -al /media sdb1


    root@Microknoppix:/home/knoppix# ls -al /media/sdb1
    total 0
    drwxrwxr-x 2 knoppix knoppix 0 Apr 10 16:16 .
    drwxr-xr-x 7 root root 0 Apr 10 16:16 ..
    root@Microknoppix:/home/knoppix#
    Still Getting this:

    Screenshot..jpg

Page 1 of 2 12 LastLast

Posting Permissions

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


Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell PowerEdge R240 Intel Xeon E-2224 3.50GHz 8GB DDR4 ECC NO HDD 250W picture

Dell PowerEdge R240 Intel Xeon E-2224 3.50GHz 8GB DDR4 ECC NO HDD 250W

$285.97



Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700 picture

Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700

$289.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$149.99



Dell PowerEdge R730 8 Bay Server 64Gb 1x80Gb SSD 3x900Gb SAS 2x12c v4CPU Proxmox picture

Dell PowerEdge R730 8 Bay Server 64Gb 1x80Gb SSD 3x900Gb SAS 2x12c v4CPU Proxmox

$620.00



Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays picture

Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays

$599.99



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores | 32gb | HBA330 | 2x 1... picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores | 32gb | HBA330 | 2x 1...

$324.99