Find the answer to your Linux question:
Results 1 to 4 of 4
I have recently purchased USB external hard disk drive (500Gig) and need to use it as as a backup drive for linux. My distro is fedora 10. I had mount ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2009
    Location
    South Africa
    Posts
    30

    Usb external hard disk problem


    I have recently purchased USB external hard disk drive (500Gig) and need to use it as as a backup drive for linux. My distro is fedora 10. I had mount it and I cannot save data on it. When I plug it on it is being detected and when I open it I found out that there is a folder lost+found. This folder could not be displayed if clicked.

    here is my vi /etc/fstab file

    /dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0
    /proc /proc proc rw 0 0
    sysfs /sys sysfs rw 0 0
    devpts /dev/pts devpts rw,gid=5,mode=620 0 0
    /dev/sda1 /boot ext3 rw 0 0
    tmpfs /dev/shm tmpfs rw 0 0
    none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
    sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
    gvfs-fuse-daemon /home/Administrator/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=Administrator 0 0
    /dev/sdb1 /mnt/sdb1 ext3 rw,nosuid,nodev,uhelper=hal 0 0
    /dev/sdc1 /media/disk ext3 rw,nosuid,nodev,uhelper=hal 0 0

    # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
    142G 7.1G 127G 6% /
    /dev/sda1 190M 21M 160M 12% /boot
    tmpfs 2.0G 88K 2.0G 1% /dev/shm
    /dev/sdb1 459G 199M 435G 1% /mnt/sdb1
    /dev/sdc1 459G 199M 435G 1% /media/disk

    How do I fix this

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You have to give its ownership to Regular User.
    Execute id command and note down user and group id. Give ownership using chown command.
    Code:
    id
    su -
    chown -R user_id:group_id /media/disk
    exit
    In case it doesn't work, post output of id command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    May 2009
    Location
    South Africa
    Posts
    30
    the output of the code id
    [root@Programming ~]# id
    uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(di sk),10(wheel)

    And for the chown -R user_id:group_id /media/disk the end product was chown: invalid user: 'user_id:group_id'

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You have to replace user_id and group_id with actual ids.
    Execute id command as Regular User instead of root and use its user_id and group_id in chown command.

    Post output of id command executed as Regular User.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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