Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Copy files input /output error problem

Options
  • 18-10-2015 10:11pm
    #1
    Registered Users Posts: 8,184 ✭✭✭


    I have linux ubuntu greenie installed .
    The problem is i can,t copy any data from drive c.to a usb drive .
    if i try to copy any file to usb external drive i get input output error.
    if i click on any file it says permissions are set,
    change content only owner.
    view content anyone.
    Or some folders are set change content a straight line, across .
    I have about 200 podcasts downloaded .
    so i went into folders mp3,s ,podcast folder, changed all files to permission anyone can view,change,or acess content .
    Then i load up deepin linux livecd ,
    from there i can copy any files to an external usb drive , that are set to permission, change anyone,
    acess content anyone .
    I understand i can just install mint or standard ubuntu .
    I,M just wondering is there any quick solution to this problem.
    Drive C has about 30gig data in partition 1,
    and 2 other partition s .swap partition, extended partiton ,2gig each.


Comments

  • Closed Accounts Posts: 18,969 ✭✭✭✭syklops


    riclad wrote: »
    I have linux ubuntu greenie installed .
    The problem is i can,t copy any data from drive c.to a usb drive .
    if i try to copy any file to usb external drive i get input output error.
    if i click on any file it says permissions are set,
    change content only owner.
    view content anyone.
    Or some folders are set change content a straight line, across .
    I have about 200 podcasts downloaded .
    so i went into folders mp3,s ,podcast folder, changed all files to permission anyone can view,change,or acess content .
    Then i load up deepin linux livecd ,
    from there i can copy any files to an external usb drive , that are set to permission, change anyone,
    acess content anyone .
    I understand i can just install mint or standard ubuntu .
    I,M just wondering is there any quick solution to this problem.
    Drive C has about 30gig data in partition 1,
    and 2 other partition s .swap partition, extended partiton ,2gig each.

    What do you mean drive C? Theres no drive C on Linux.

    Can you walk us through the process of plugging in the USB drive, mounting the drive etc?


  • Registered Users Posts: 8,184 ✭✭✭riclad


    I have one hard drive,on my laptop .dual core cpu 2gig ram.
    all my data is on partition 1.
    it shows up as 118gig drive, .i think its sda1 .
    I plug in a usb drive,
    it says ,
    open files ,folders on drive test ,usb external,when i plug it in.
    i open the drive.
    if i copy files to it it says input/output error .
    i can copy files ok to the usb drive by loading up a deepin linux live cd .
    i understand drive c is a windows term.
    linux uses sda 0, sda 1 etc
    when i plug in the usb drive its mounted automatically ,
    i just click ok, to open folders ,or view files on drive usb ,name test 8gig.
    i can eject it or just leave it mounted .
    i can see all the files folders on the usb drive .

    a window pops up, view , browse files on drive 8gig when i plug the drive in
    to the laptop.


  • Registered Users Posts: 339 ✭✭duffman85


    ok, so you're trying to copy files from /dev/sda1 to a usb drive



    open a terminal and run the mount command ( you may need to run use sudo mount - I haven't used ubuntu in a while)
    it should show how your usb drive is being mounted.
    you should see something like this
    /dev/sdb1 on /media/usb type ext4 (rw)
    

    confirm it's being mounted read-write (rw) as above

    have you checked the filesystem on the usb drive is ok?

    unmount the usb drive and assuming the drive is /dev/sdb1 (again sudo may be required)
    umount /media/usb
    fsck /dev/sdb1
    


  • Registered Users Posts: 8,184 ✭✭✭riclad


    When i put in any usb drive ,window opens ,its mounted . no need to use mount in terminal window.
    it says .
    click ok, browse / view files on external usb drive.
    i can click arrow icon to unmount it,
    or right click drive eject drive/device .
    i,m running ubuntu.
    so no problem mounting drive s ,
    usb external.
    i,m running Lubuntu 14.04 a version of ubuntu linux.
    i,ll probably install deepin linux.
    in 2 weeks as it works fine ,re copying to usb drives .
    the hard drive has 53 thousand bad sectors .
    from main menu,
    acessorys ,disk info utility.


  • Closed Accounts Posts: 18,969 ✭✭✭✭syklops


    riclad wrote: »
    When i put in any usb drive ,window opens ,its mounted . no need to use mount in terminal window.

    He didn't ask you to mount the drive, he asked you to run the mount command, just mount, no parameters. This will show output like this:
    /dev/sdb1 on /media/usb type ext4 (rw)
    

    It will then confirm whether the drive is mounted read/write, or Read Only. This could well be your problem.
    the hard drive has 53 thousand bad sectors .
    from main menu,
    acessorys ,disk info utility.

    Again, can you follow the advice you have been given?

    By running the mount command you know where it is mounted to. You need to know that so you can unmount it, so you can safely run fsck against it. If you fsck against a mounted file system you could corrupt it.
    umount /media/usb
    fsck /dev/sdb1
    

    replace the above values with what mount returns, or just paste what mount returns here and we will give you the exact command to use.


  • Advertisement
  • Registered Users Posts: 8,184 ✭✭✭riclad


    ok, i ll try that later .
    When i get home.


  • Registered Users Posts: 13,992 ✭✭✭✭Johnboy1951


    Possibly logged in as root in Deepin and that is why you have permission to copy the files over?


  • Registered Users Posts: 8,184 ✭✭✭riclad


    i,ll explain this ,
    lubuntu linux is installed on the laptop ,i logon each time ,
    put in my user password each time i turn on the laptop .
    IN order to copy files to usb ,
    lubuntu is set to require user password to login.


    i loadup live cd linux deepin ,
    its a live cd, no log in needed , no password needed
    and just copy files from drive sda 1 to external usb drive .
    no error messages every file copys ok to the usb drive.
    I,ll have to install deepin linux or ubuntu ,
    as after 10 minutes , lubutu stops working .

    i think the data on sda1 is corrupted or theres bad blocks on the drive.
    i have set all mp3 files on sda1 to anyone can acess or change files in propertys ,file, permissions in lubuntu .


  • Closed Accounts Posts: 18,969 ✭✭✭✭syklops


    riclad wrote: »
    i,ll explain this ,
    lubuntu linux is installed on the laptop ,i logon each time ,
    put in my user password each time i turn on the laptop .
    IN order to copy files to usb ,
    lubuntu is set to require user password to login.


    i loadup live cd linux deepin ,
    its a live cd, no log in needed , no password needed
    and just copy files from drive sda 1 to external usb drive .
    no error messages every file copys ok to the usb drive.
    I,ll have to install deepin linux or ubuntu ,
    as after 10 minutes , lubutu stops working .

    i think the data on sda1 is corrupted or theres bad blocks on the drive.
    i have set all mp3 files on sda1 to anyone can acess or change files in propertys ,file, permissions in lubuntu .

    So youve given up on troubleshooting the issue?


  • Registered Users Posts: 8,184 ✭✭✭riclad


    I could not mount the drive today, Even from a live cd.
    so i used dev/sda 1 fsk command,
    it found and fixed 839 bad blocks .
    And fixed directory structure .sda1 .
    now i can mount the drive.
    i ,ll copy all the files to a usb drive ,
    and install deepen linux in the next week .
    meanwhile i can use a live cd to acess the web .
    i dont see any solution to this problem .Apart from doing a reinstall of linux.
    i,ll use a utility Gparted to make 5 partitions,
    partition 1 20 gig,root ,os partition ,sda1,
    partition 2 40gig ,
    partion 3 53 gig,
    partition 4 2 gig ext ,
    partition 5 2gig swap file .


  • Advertisement
  • Closed Accounts Posts: 18,969 ✭✭✭✭syklops


    i dont see any solution to this problem .Apart from doing a reinstall of linux.

    Why don't you follow any of the advice you were given?


  • Registered Users Posts: 8,184 ✭✭✭riclad


    i did this ,
    fsck /dev/sda1 ,

    when drive was unmounted .


  • Registered Users Posts: 8,184 ✭✭✭riclad


    I rebooted laptop.
    i copied 4 files to external usb drive, no errors ,

    everything is fine ,its back to normal.
    Thanks for the advice .
    it seems to be fine re copying files ,no errors .


  • Closed Accounts Posts: 18,969 ✭✭✭✭syklops


    riclad wrote: »
    I rebooted laptop.
    i copied 4 files to external usb drive, no errors ,

    everything is fine ,its back to normal.
    Thanks for the advice .
    it seems to be fine re copying files ,no errors .

    Glad its working for you, but the reason we gave you implicit instructions is because you can't assume that sda1 is your "c drive". On my laptop sda1 is the boot partition. If I unmounted a USB stick and then ran fsck /dev/sda1 it would result in me being unable to boot my laptop.


  • Registered Users Posts: 8,184 ✭✭✭riclad


    ON my laptop i have 1 drive, all the data is on partition 1 ,=sda1
    , partion2,3 are swap partition, partition extended .
    i copied 100 files so its working fine now.no error messages at all.
    I Use disk utility in menu from Lubuntu os, to get disk info.
    Thanks for the advice,
    i press f12 bootup menu,
    theres cd, hdd,network ,choose boot device , no usb boot option.
    I think its better to have 1st partition ,os =30 gig ,
    than a large partition for data,music etc in future installations .


Advertisement