cannot delete files on usb drive

Asked by Jim Harris

I am using a usb drive for backup.

I am using Unison to sync files between harddrive and usb.

I inadvertantly backed up the "lost+found" folder.

Now I cannot do a another sync.

Unison does not have permission to read the "lost+found" folder so the sync operation is aborted.

I cannot delete the folder on the usb drive. I've tried reformatting and repartitioning but the folder is still there.

I there a way to get rid of the folder on the usb drive?

Jim

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu unison Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What file system does the USB stick use?
When you last unplugged it, did you use the safe remove feature?

What is the output of:

sudo fdisk -l; mount; lsb_release -a; uname -a

Thanks

Revision history for this message
Jim Harris (jharris1112) said :
#2

What file system does the USB stick use? Ext4 (version 1.0)

When you last unplugged it, did you use the safe remove feature? Not sure, but perhaps no.

What is the output of:

sudo fdisk -l; mount; lsb_release -a; uname -a

Here's the output, but I think this is for my harddrive and not the usb drive.

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f36a7

    Device Boot Start End Blocks Id System
/dev/sda1 * 2048 152240127 76119040 83 Linux
/dev/sda2 152242174 156301311 2029569 5 Extended
/dev/sda5 152242176 156301311 2029568 82 Linux swap / Solaris

Disk /dev/sdb: 64.5 GB, 64487424000 bytes
255 heads, 63 sectors/track, 7840 cylinders, total 125952000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008e302

    Device Boot Start End Blocks Id System
/dev/sdb1 2048 125951999 62974976 83 Linux
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/jim/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=jim)
/dev/sdb1 on /media/Backup type ext4 (rw,nosuid,nodev,uhelper=udisks)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Linux jim-MS-7142 3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012 i686 athlon i386 GNU/Linux

On 11/19/2012 11:16 AM, actionparsnip wrote:
> Your question #214642 on gnome-disk-utility in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gnome-disk-utility/+question/214642
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> What file system does the USB stick use?
> When you last unplugged it, did you use the safe remove feature?
>
> What is the output of:
>
> sudo fdisk -l; mount; lsb_release -a; uname -a
>
> Thanks
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Try:

sudo chown $USER:$USER /meia/Backup

I assume that is the device you are having issue with

Revision history for this message
Jim Harris (jharris1112) said :
#4

This is all I got:

jim@jim-MS-7142:~$ sudo chown $USER:$USER /meia/Backup
chown: cannot access `/meia/Backup': No such file or directory
jim@jim-MS-7142:~$

On 11/19/2012 03:35 PM, actionparsnip wrote:
> Your question #214642 on gnome-disk-utility in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gnome-disk-utility/+question/214642
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> Try:
>
> sudo chown $USER:$USER /meia/Backup
>
> I assume that is the device you are having issue with
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Is the USB device in when you ran the command?

Revision history for this message
Jim Harris (jharris1112) said :
#6

Yes.

On 11/19/2012 04:20 PM, actionparsnip wrote:
> Your question #214642 on gnome-disk-utility in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gnome-disk-utility/+question/214642
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Is the USB device in when you ran the command?
>

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

please note:
the command to copy or type into terminal is:

sudo chown $USER:$USER /media/Backup

and not:

udo chown $USER:$USER /meia/Backup

Can you help with this problem?

Provide an answer of your own, or ask Jim Harris for more information if necessary.

To post a message you must log in.