LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-10-2008, 08:21 PM   #1
deadlySniper
Member
 
Registered: Nov 2008
Location: Rye,NY
Distribution: Linux Mint
Posts: 33

Rep: Reputation: 0
Need help with an 80 GB external drive


I have an external 80GB external drive that I reformatted from FAT32 to ext3. After I would get done using G-Parted, I would unplug it then plug it back in to so I can transfer about 38GB of music on it. Well, it keeps on saying in the permissions "the permission of "disk-2" could not be determined."

I am trying to give it permissions so that way I can got to Macs and oter Linux machines and access and write to it.

Any help?
 
Old 12-10-2008, 10:55 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I don't know about using disks on Macintoshes. This is what I do to establish the ownership of a file system mounted on a specific directory.
1. Create the mount point.
2. Mount the partition.
3. Use chown and chmod to set the permissions the way that I want them.

Example: Let's say that you have an external disk partition /dev/sdc1. You want to create a mount point at /mnt/sdc1 and set the permissions. Note you either have to do this logged on as root or by using sudo in front of each command.
Code:
mkdir /mnt/sdc1
mount /dev/sdc1 /mnt/sdc1
chown -R 1000:100 /mnt/sdc1
chmod -R 770 /mnt/sdc1
You only have to do that one time. After that you can just use the mount command to mount the file system.
Code:
mount /dev/sdc1 /mnt/sdc1
 
Old 12-10-2008, 11:03 PM   #3
deadlySniper
Member
 
Registered: Nov 2008
Location: Rye,NY
Distribution: Linux Mint
Posts: 33

Original Poster
Rep: Reputation: 0
Ok it did work. I was able to get rid of the lost and found file. But when I check the permissions in the properties it still says it can determine the permissions. I am able to drag and drop files but not right click and paste.
 
Old 12-17-2008, 05:50 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Sorry I was gone. My house is a victim of the New England ice storm. I'm living in a Red Cross refugee camp right now. I just got an AT&T 3G modem today so that I can get back on the Internet.

Quote:
Originally Posted by deadlySniper View Post
Ok it did work. I was able to get rid of the lost and found file. But when I check the permissions in the properties it still says it can determine the permissions. I am able to drag and drop files but not right click and paste.
We know that your permissions are okay because you could delete the lost+found directory. The question then becomes what are you using to drag and drop or cut and paste. This must somehow be related to the application that you are using. Maybe the window manager, maybe the clip board.

What exactly to you do to get the error message? Which application; what keystrokes; and most importantly what is the exact error message? Include all punctuation and anything else that will tell us what utility is generating the error message.

 
Old 12-17-2008, 09:43 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Quote:
I was able to get rid of the lost and found file.
Lost and Found is a directory. It is owned by root, so it sounds like you were able to delete it because you did so as root.

Quote:
chown -R 1000:100 /mnt/sdc1
It would be easier to use your username and primary groupname instead of using your uid & gid. Or use the "id" program to display your uid & gid. Post 2 assumed that those where your values. For SuSE, the uid of the first user would be 1000, but for Mandriva or Fedora core, it would be 500.
By the way, what is your uid and default gid. It was assumed in post #2 to be 1000 and 100.
Run "id". And look at the permissions of the mounted directory:
example:
ls -ld /mnt/sdc1

Does it indicate your username and primary group?

Try to create a file there, e.g.: touch /mnt/sdc1/testfile

You could come up with a more descriptive name for the mount point than /mnt/sdc1 if you want.

Good Luck!
 
Old 12-18-2008, 08:51 AM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Quote:
Originally Posted by jschiwal View Post
Lost and Found is a directory. It is owned by root, so it sounds like you were able to delete it because you did so as root.
It wouldn't be owned by root if he did the chown command. There's no harm in removing that directory. The next fsck will recreate it.

Quote:
Originally Posted by jschiwal View Post
It would be easier to use your username and primary groupname instead of using your uid & gid. Or use the "id" program to display your uid & gid. Post 2 assumed that those where your values. For SuSE, the uid of the first user would be 1000, but for Mandriva or Fedora core, it would be 500.
By the way, what is your uid and default gid. It was assumed in post #2 to be 1000 and 100.
I recommended the numeric values because the user account name was not posted and I figured I'd save a round of q&a by using the most common values. Regrettably, as is too often the case, the OP did not list their/his/her distribution. It was a calculated risk that obviously worked.

Last edited by stress_junkie; 12-18-2008 at 08:56 AM.
 
Old 12-18-2008, 02:55 PM   #7
deadlySniper
Member
 
Registered: Nov 2008
Location: Rye,NY
Distribution: Linux Mint
Posts: 33

Original Poster
Rep: Reputation: 0
Well its fixed now, I am able to move things by copy and paste
 
Old 12-18-2008, 07:38 PM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Quote:
It wouldn't be owned by root if he did the chown command. There's no harm in removing that directory. The next fsck will recreate it.
Except, I don't know if your example uid & gid were correct in his case. And he may have done them logged in as root, as was your first suggestion.

But yes, please DeadlySniper, put enough details of your distro in your profile. That will help if you need to post another question in the future. There are some differences between distros.

Actually there are differences between different Windows versions as well.

thank you.

Last edited by jschiwal; 12-18-2008 at 07:40 PM.
 
  


Reply

Tags
drive, external, permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Laptop DVD drive has died, will linux boot from an external drive? Stevetgn Linux - Newbie 2 05-14-2005 05:18 PM
IRQ conflict when external drive/flash-drive is put to use Nightfrost Linux - Hardware 0 10-22-2004 04:15 AM
Installing SuSE on an external FireWire drive: YaST can't edit partitions on drive kivimaki Linux - Distributions 2 09-13-2004 08:52 PM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration