LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2013, 09:30 AM   #1
fkasmani
Member
 
Registered: Dec 2007
Posts: 178

Rep: Reputation: 17
Additional drive has been taken over by root


Hello,

I have a 500GB SATA backup drive which I use to store all my data as I work on my Linux Mint 15 PC.

However, since yesterday, every time I'm booting my PC, things just get stuck at the boot splash with a message like Disk Drive / not ready yet or not available
with options to wait,skip or manually recover.

The only way I can get things moving, is to select the 'S' to skip.
I even tried removing this backup drive and the same message came up at the boot splash and I could not do anything but restart my PC, this time with the drive connected.

To make matters worse, suddenly, the ownership of the backup drive has been taken over by "root" and I can only access what's in there with no writing capabilities.

I tried booting the PC using Linux Mint 15 live USB and read/write all worked fine there, but coming back to the installed version of Mint brought up the same problems.

I've even tried fsck, force fsck, apt-get update

Would really appreciate some help on this, pls.
 
Old 09-13-2013, 10:27 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
The message you are seeing will be specific to a partition on one of the drives and should list it, probably as a uuid number. Check your /etc/fstab file to see if you have the entry. If the drive is not attached when you boot and you have an entry for its partition in /etc/fstab, that would be expected behavior. If it is attached, there is some other reason.

A quick google indicates this is a fairly common problem with Ubuntu derivatives after doing an upgrade or update but, since you haven't done that it may be something else.
 
1 members found this post helpful.
Old 09-13-2013, 10:44 AM   #3
fkasmani
Member
 
Registered: Dec 2007
Posts: 178

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by yancek View Post
Check your /etc/fstab file to see if you have the entry.
Thanks, Yancek.

The entry is there in the fstab. Should I remove it? Would removing it also solve the ownership problem?
 
Old 09-13-2013, 07:39 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Do you use it regularly and have it plugged in at all times?
If not, you could get around the problem by commenting out the entry in /etc/fstab rather than deleting it. Just put a hash mark (#) at the beginning of the line so it isn't read. That way, if it doesn't resolve the problem you know that's not it and you can remove the hash mark.

What is the entry in /etc/fstab? Do you have users allowed? What are the permissions and the owner:group for the directories you want to access?

I'm not sure what the cause of this problem is other than what I referred to above with updates. I have Ubuntu and Mint installed but don't boot them very often and occasionally see this message. I just hit the 'S' key and proceed because I don't use them often enough to bother with it.
 
1 members found this post helpful.
Old 09-17-2013, 03:03 AM   #5
fkasmani
Member
 
Registered: Dec 2007
Posts: 178

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by yancek View Post
Do you use it regularly and have it plugged in at all times?
If not, you could get around the problem by commenting out the entry in /etc/fstab rather than deleting it. Just put a hash mark (#) at the beginning of the line so it isn't read. That way, if it doesn't resolve the problem you know that's not it and you can remove the hash mark.
Yep, it's used full-time.
I did comment it's entry in the fstab

Quote:
Originally Posted by yancek View Post
What is the entry in /etc/fstab? Do you have users allowed? What are the permissions and the owner:group for the directories you want to access?
Entry in the fstab:
Code:
#Entry for /dev/sdb1 :
#UUID=783EE54307A26E16	/media/datadrv	ntfs-3g	defaults,noauto,locale=en_CA.UTF-8	0	0
Permissions for this whole drive and files/folders within have suddenly changed to root as in the snapshot I've attached.

Now all my VM's are inaccessible 'cos they're all stored in this drive.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2013-09-17 02:55:11.png
Views:	16
Size:	28.6 KB
ID:	13448  
 
Old 09-17-2013, 09:14 AM   #6
jynxd
LQ Newbie
 
Registered: Sep 2013
Posts: 7

Rep: Reputation: Disabled
login as root and issue;

chown -R fkasmani /media/datadrive

or, if fkasmani is part of the sudoers group;

sudo chown -R fkasmani /media/datadrive

should change all ownership of files stored on /media/datadrive to being owned by fkasmani.
 
Old 09-17-2013, 10:13 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
The image you posted shows owner:group as root:root so you should be able to write to the partition as root. If you want to write to it as a user, you will need to either change the owner or change the group to a group the user is a member of and give that group write permissions. You could also put 'users' in the options in fstab.

This is the standard method. You neglected to mention in your previous posts that this is a windows partition/filesystem which does make a difference. You need to have ntfs-3g installed. Take a look at the link below for more details on writing to windows:

https://wiki.archlinux.org/index.php/NTFS-3G

The link below is specific to Arch Linux so there may be some differences with Mint. Another link with more general info, Opensuse but nothing that should not work with other Linux distributions. Not sure you want to give everyone write permissions, that can be risky depending on how many users you have??

http://tropenhitze.wordpress.com/201...opensuse-11-2/

The owner:group of a directory or directories does not usually change of its own accord. Not sure what happened to change it or if it changed, that you were able to write as a non-root user previously.

Last edited by yancek; 09-17-2013 at 10:15 AM. Reason: Add info
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Additional hard drive only usable by root. zero-x Linux - General 4 04-14-2008 04:13 PM
Root (/) partition resized, but I can't used the additional space. dickgregory Linux - General 2 03-26-2006 09:24 AM
when install additional distros, can they all share same parition? (other then root) sirpelidor Linux - Newbie 2 05-02-2004 01:51 PM
additional scsi drive setup-not boot drive serat Linux - Newbie 3 04-03-2004 11:44 AM
How to see additional hard drive under Mandrake ncabell Linux - Newbie 3 11-05-2003 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration