Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Alrighty, I'm trying to back up my computer and I am having a bit of trouble. Knoppix will not allow me to access my external hard drive and partitions from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2005
    Posts
    187

    Permission Help


    Alrighty, I'm trying to back up my computer and I am having a bit of trouble. Knoppix will not allow me to access my external hard drive and partitions from the internal hard drive. I have looked at the permissions making it say that it's writable but I don't know what's going on.

    So here is what I'm trying to copy:
    The entire folder:
    /media/sda2/home/jeffrey

    to
    /media/sdb1/jeffs


    If you guys can help me out that would rock!

    Jeff

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Post the results of
    Code:
    $ mount | grep 'sdb1'
    and
    Code:
    $ ls -ld /media/sdb1/jeffs

  3. #3
    Linux Newbie
    Join Date
    Dec 2005
    Posts
    187
    This is from the first command:


    /dev/sdb1 on /media/sdb1 type vfat (ro,nosuid,nodev,umask=000,shortname=winnt,uid=100 0,gid=1000)


    And the second:


    drwxrwxrwx 2 knoppix knoppix 32768 May 20 20:36 /media/sdb1/jeffs

  4. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Ok, for starters it is being mounted read-only (ro). You may need to explicitly tell it to mount rw. How are you mounting it exactly?

    Also, who is uid 100? You can use
    Code:
    $ grep 'x:100:' /etc/passwd
    to find out.

    How about gid 1000?
    Code:
    $ grep 'x:1000:' /etc/group

  5. #5
    Linux Newbie
    Join Date
    Dec 2005
    Posts
    187
    It's the auto detection that Knoppix does. Just clicking on the drives on the desktop...
    Here are the commands:

    knoppix@Knoppix:~$ grep 'x:100:' /etc/passwd
    mysql:100:103:MySQL Server:/var/lib/mysql:/bin/false
    knoppix@Knoppix:~$ grep 'x:1000:' /etc/group
    knoppix:1000:

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    post the output of 'fdisk -l' command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Linux Newbie
    Join Date
    Dec 2005
    Posts
    187
    It doesn't give anything as output:

    knoppix@Knoppix:~$ fdisk -l
    knoppix@Knoppix:~$ fdisk -l
    I tried twice.

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    you must have root privileges to execute this command.
    Code:
    su 
    fdisk -l
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Linux Newbie
    Join Date
    Dec 2005
    Posts
    187
    Aww! Okay:

    root@Knoppix:/ramdisk/home/knoppix# fdisk -l

    Disk /dev/hdd: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdd1 1 14023 112639716 7 HPFS/NTFS
    /dev/hdd2 14024 16455 19535040 83 Linux
    /dev/hdd3 16456 17063 4883760 82 Linux swap / Solaris
    /dev/hdd4 17064 19457 19229805 83 Linux

    Disk /dev/sda: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 7655 61488756 7 HPFS/NTFS
    /dev/sda2 7656 23842 130022077+ 83 Linux
    /dev/sda3 23945 24321 3028252+ f W95 Ext'd (LBA)
    /dev/sda5 23945 24321 3028221 82 Linux swap / Solaris

    Disk /dev/sdb: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 9729 78148161 c W95 FAT32 (LBA)

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    execute this
    Code:
    su
    mkdir sda1 sdb1 hdd1
    mount -t    ntfs-3g   /dev/sda1 sda1 -o defaults,umask=0
    mount -t    vfat    /dev/sdb1 sdb1 -o defaults,umask=0
    mount -t    ntfs-3g   /dev/hdd1 hdd1 -o defaults,umask=0
    check sda1, sdb1 and hdd1 folders. check if you are able to write in all those.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 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
  •