Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unable to delete files

Featured Replies

I am trying to delete files on a drive that I haven't had problems on doing until a few days ago. I keep getting a Windows error that I don't have permissions to delete the files. This has never happened before. Reading through the forums, it looks like I need to run reiserfsck on the drive but it's not working for me. Here is what I am trying and what is happening:

 

 

PhenixHomeServ login: root

Password:

Linux 2.6.32.9-unRAID.

root@PhenixHomeServ:~# samba stop

root@PhenixHomeServ:~# umount /dev/sdh

umount: /dev/sdh: not mounted

root@PhenixHomeServ:~# reiserfsck /dev/sdh

reiserfsck 3.6.21 (2009 www.namesys.com)

 

*************************************************************

** If you are using the latest reiserfsprogs and  it fails **

** please  email bug reports to [email protected], **

** providing  as  much  information  as  possible --  your **

** hardware,  kernel,  patches,  settings,  all reiserfsck **

** messages  (including version),  the reiserfsck logfile, **

** check  the  syslog file  for  any  related information. **

** If you would like advice on using this program, support **

** is available  for $25 at  www.namesys.com/support.html. **

*************************************************************

 

Will read-only check consistency of the filesystem on /dev/sdh

Will put log info to 'stdout'

 

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes

 

reiserfs_open: the reiserfs superblock cannot be found on /dev/sdh.

Failed to open the filesystem.

 

If the partition table has not been changed, and the partition is

valid  and  it really  contains  a reiserfs  partition,  then the

superblock  is corrupted and you need to run this utility with

--rebuild-sb.

 

root@PhenixHomeServ:~#

 

 

 

What am I missing? Or is there something else I should be doing to fix this issue on deleting files? I am able to delete files on other drives without a problem, just this one drive I can't seem to modify.

You need to use partition 1, not the full disk. ie: /dev/sdh1

  • Author

Thanks. Seems to be working now.

  • Author

Looks like running reiserfsck on the drive did not help. It completed, I tried to delete some files and I am getting this error:

You need permission to peform this action.

 

You require permissions from PHENIXHOMESERV\root to make changes to this folder

 

Any ideas on what I should do next?

  • Author

Try running the New Permissions Utility.

 

Is that for 4.7 or is that for version 5? I am running 4.7.

  • Author

Post your syslog.

 

Had to zip it up as a text file as it's too large to post.

Log.zip

What reiserfsck commands did you run? They should be performed on /dev/mdX, where X is the disk number in order to maintain parity. In this case disk6, md6, is the problem drive.

  • Author

I tried: reiserfsck /dev/sdh1

OK that is not destructive so no harm done. Try "reiserfsck /dev/md6"

  • Author

Tried it, no change.

 

I am going to start copying the files off of the drive, removing the drive, format it, and add it back in. It's going to take a day or two but I'm assuming it should work. Unless there is anything else I should try.

if a more experienced person can answer my question.

 

what happens if you telnet or console in and remove (rm -r -v) the directory in question?

 

i have done it once before and i noticed the parity drive is active with the delete. is this an "unsafe way" to delete files?

 

@phenixdragon

I would wait for an answer before you run that.

You could log-on to the server and check the permissions of the files on that disk. You do a ls -a to get a long listing with the permissions. I have;

drwx--x--x = directory

-rw------- or -rwx------ = file

 

It may be a simple matter of just changing the permissions for whatever reason.

 

You should probably run a parity check too.

 

Peter

Post the results of "reiserfsck /dev/md6". This command will not fix anything it is just a check.

  • Author

Post the results of "reiserfsck /dev/md6". This command will not fix anything it is just a check.

 

Gtocha. I will do that after some copying finishes up. I'd hate to stop it again.

  • Author

You could log-on to the server and check the permissions of the files on that disk. You do a ls -a to get a long listing with the permissions. I have;

drwx--x--x = directory

-rw------- or -rwx------ = file

 

It may be a simple matter of just changing the permissions for whatever reason.

 

You should probably run a parity check too.

 

Peter

 

I tried a parity check a few times, no difference.

 

So how would I check the permissions for the specific drive? I am an IT guy but not much with Linux, even though I do support it at work but I pretty much follow stored procedures for issues and escalate to admins.

 

Log in and cd /mnt/disk3 to get to disk 3. ls -l will give the long listing with the permissions shown. You log-in as root with no password unless you have set one.

 

Peter

The syslog shows disk6 mounted as read-only due to a reiser FS problem. Post the results of reiserfsck.

  • Author

 

PhenixHomeServ login: root

Password:

Linux 2.6.32.9-unRAID.

root@PhenixHomeServ:~# reiserfsck /dev/md6

reiserfsck 3.6.21 (2009 www.namesys.com)

 

*************************************************************

** If you are using the latest reiserfsprogs and  it fails **

** please  email bug reports to [email protected], **

** providing  as  much  information  as  possible --  your **

** hardware,  kernel,  patches,  settings,  all reiserfsck **

** messages  (including version),  the reiserfsck logfile, **

** check  the  syslog file  for  any  related information. **

** If you would like advice on using this program, support **

** is available  for $25 at  www.namesys.com/support.html. **

*************************************************************

 

Will read-only check consistency of the filesystem on /dev/md6

Will put log info to 'stdout'

 

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes

###########

reiserfsck --check started at Mon May 30 23:02:55 2011

###########

Filesystem seems mounted read-only. Skipping journal replay.

Checking internal tree.. finished

Comparing bitmaps..vpf-10640: The on-disk and the correct bitmaps differs.

Checking Semantic tree:

finished

2 found corruptions can be fixed when running with --fix-fixable

###########

reiserfsck finished at Mon May 30 23:12:19 2011

###########

root@PhenixHomeServ:~#

 

  • Author

Can I run that while copying files? I have been trying to copy everything off for about 20 hours now and it's a couple of hours away from finishing.

  • Author

Files finished copying and i gave the command a try, no go. Still same issue.

 

 

root@PhenixHomeServ:~# reiserfsck --fix-fixable /dev/md6

reiserfsck 3.6.21 (2009 www.namesys.com)

 

*************************************************************

** If you are using the latest reiserfsprogs and  it fails **

** please  email bug reports to [email protected], **

** providing  as  much  information  as  possible --  your **

** hardware,  kernel,  patches,  settings,  all reiserfsck **

** messages  (including version),  the reiserfsck logfile, **

** check  the  syslog file  for  any  related information. **

** If you would like advice on using this program, support **

** is available  for $25 at  www.namesys.com/support.html. **

*************************************************************

 

Will check consistency of the filesystem on /dev/md6

and will fix what can be fixed without --rebuild-tree

Will put log info to 'stdout'

 

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes

###########

reiserfsck --fix-fixable started at Tue May 31 08:25:37 2011

###########

Filesystem seems mounted read-only. Skipping journal replay.

Checking internal tree.. finished

Comparing bitmaps..vpf-10630: The on-disk and the correct bitmaps differs. Will be fixed later.

Checking Semantic tree:

finished

No corruptions found

There are on the filesystem:

        Leaves 349185

        Internal nodes 2112

        Directories 1107

        Other files 2923

        Data block pointers 352972983 (422 of them are zero)

        Safe links 1

 

The partition is mounted ro. It is better to umount and mount it again.

 

###########

reiserfsck finished at Tue May 31 08:41:50 2011

###########

root@PhenixHomeServ:~#

 

Try stopping and starting the array and see if it mounts read/write.

 

Peter

 

  • Author

So I should stop it first?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.