[SOLVED] "Operation not permitted" rm -rf Files from portable harddrive
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I should have permissions to do this as root, but can't. It's a western digital "My Passport" drive. I've had it for about a year but haven't used it in months. Any thoughts?
# dmesg
NTFS volume version 3.1.
usb 1-6: USB disconnect, address 2
usb 1-6: new high speed USB device using ehci_hcd and address 3
usb 1-6: New USB device found, idVendor=1058, idProduct=070a
usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-6: Product: My Passport 070A
usb 1-6: Manufacturer: Western Digital
usb 1-6: SerialNumber: 575845314132303631353037
scsi9 : usb-storage 1-6:1.0
scsi 9:0:0:0: Direct-Access WD My Passport 070A 1032 PQ: 0 ANSI: 4
sd 9:0:0:0: Attached scsi generic sg2 type 0
scsi 9:0:0:1: CD-ROM WD Virtual CD 070A 1032 PQ: 0 ANSI: 4
sr1: scsi3-mmc drive: 51x/51x caddy
sr 9:0:0:1: Attached scsi CD-ROM sr1
sr 9:0:0:1: Attached scsi generic sg3 type 5
scsi 9:0:0:2: Enclosure WD SES Device 1032 PQ: 0 ANSI: 4
ses 9:0:0:2: Attached Enclosure device
ses 9:0:0:2: Attached scsi generic sg4 type 13
sd 9:0:0:0: [sdb] 975400960 512-byte logical blocks: (499 GB/465 GiB)
sd 9:0:0:0: [sdb] Write Protect is off
sd 9:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sd 9:0:0:0: [sdb] Attached SCSI disk
So as NTFS (I'm surprised I missed that--I know NTFS seemed oddly familiar, but it's been years since I seriously used Linux and I forget so much) would I have to reformat it and then partition it with a new compatible filesystem? However, I managed to write the data to the drive while on a Linux system (It may have been Ubuntu, and I forget which release, in preparation to change to Slackware 13.1), so I don't think that should be necessary.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
Since you say that the drive has not been used for months I would suggest doing a file system check 'fsck -y -a /dev/sdb1'.
Also check the attributes of the files with 'lsattr <filename>'.
These are the two things I can think of currently that would make the external drive behave this way.
Hope this helps.
I dont know much about slackware, but can you tell me why can't you switch to root user ? As i can understand its just the matter of permission (in your first post its showing only root privileged access).
Since you say that the drive has not been used for months I would suggest doing a file system check 'fsck -y -a /dev/sdb1'.
Errr, fscking an NTFS partition from Linux???? Unless that's changed recently.. bad idea.
Booting Windows and running chkdsk on the partition might help, though.
I'm not familiar with Slackware, but 13.1 sounds relatively recent. Make sure your system is up to date.. and try googling "slackware ntfs" for tips; maybe you need to install a different package to better support NTFS.
Windows should be used to fsck an NTFS partition. Historically, Linux has not supported NTFS well (this has changed in the past few years) and has not been able to fsck ntfs partitions. Seems there is some support for it now in the ntfsfix program tho.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
Well I have a ntfs formatted pen drive and so far things are ok. Never needed to run a fsck on it AFAIK. Well, I guess I would need to go back to vfat .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.