LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
LinkBack Search this Thread
Old 07-29-2007, 03:09 PM   #1
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Rep: Reputation: 15
Maxtor OneTouch II External - Lost+Found and Locked me out?!


Hello,

I'm trying to format my usb Maxtor OneTouch II External 300GB HardDrive with a ext3 fs. So far so good. Trouble is, when I plug it in to my feisty desktop, all I see is a folder labeled "lost+found". This folder is empty, but oddly enough, it is the only place on the drive which I can modify! I'm not really sure how all of this mounting business works (hence the newbie forum rather than the significantly more redeeming hardware forum , where the real techies go) but it would seem that if feisty can handle mounting automatically, something was screwed up long ago.....in the formatting of the drive perhaps? Thanks for the help. This forum is fantastic.

-Plastech
"The TARD"
 
Old 07-29-2007, 03:48 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
There is nothing wrong with the way that the hard drive is set up. The lost+found directory is a directory that the system uses when it checks the integrity of the file system. You will probably not have any reason to use it. Don't delete it though. Just leave it alone.

You can add files at the same level as the lost+found directory or you can create other directories on the same level as the lost+found directory.

The only problem that usually shows up is permissions. If the hard drive is mounted at /mnt/sda1 then you can log on as root and perform these commands.
Code:
chown root:users /mnt/sda1
chmod 770 /mnt/sda1
That will allow regular users to create files and directories in /mnt/sda1 which is on the external hard drive.

If your hard drive shows up as /dev/sda1 and if it automatically mounts as /mnt/sda1 then you can do these commands.
Code:
touch /mnt/sda1/empty-file.txt
mkdir /mnt/sda1/my.data
Those are just examples to show you that you can create files and directories on the hard drive.

Last edited by stress_junkie; 07-29-2007 at 03:56 PM.
 
Old 07-29-2007, 04:38 PM   #3
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
stress_junkie,

Twice now in one day! You the man! Permissions was the issue. Had to allow that group access (not "users" on my computer, but I figured it out). Also used chmod 777 instead. Working like a charm now. Thanks.
 
Old 07-29-2007, 04:41 PM   #4
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
Oh crap. Now neither computer wants to let me eject/disconnect the drive! No real info from feisty either, just "You cannot disconnect the drive now". Thanks feisty....
 
Old 07-29-2007, 06:27 PM   #5
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
And now when I mount it to my other comp it mounts as disk-1, except with errors.......argh!@@!@$!#%
 
Old 07-29-2007, 06:56 PM   #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 Plastech
Oh crap. Now neither computer wants to let me eject/disconnect the drive! No real info from feisty either, just "You cannot disconnect the drive now". Thanks feisty....
Linux won't allow you to dismount a partition if a process is using that partition as its current working directory.
Code:
mount /dev/sda3 /mnt/sda3
cd /mnt/sda3
pwd
/mnt/sda3
umount /mnt/sda3
umount: /mnt/sda3: device is busy
umount: /mnt/sda3: device is busy
lsof /mnt/sda3
COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
bash    16968 root  cwd    DIR    8,3 4096    2 /mnt/sda3
lsof    17097 root  cwd    DIR    8,3 4096    2 /mnt/sda3
lsof    17098 root  cwd    DIR    8,3 4096    2 /mnt/sda3

Last edited by stress_junkie; 07-29-2007 at 07:04 PM.
 
Old 07-29-2007, 06:59 PM   #7
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 Plastech
And now when I mount it to my other comp it mounts as disk-1, except with errors.......argh!@@!@$!#%
You can control how Linux mounts any given hard drive using the /etc/fstab file. If you have more than on USB hard drive then you will have to configure udev instead of using /etc/fstab.
 
Old 07-29-2007, 07:01 PM   #8
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
I wasn't though. And now I can't mount the disk (well it mount's though it reports "Cannot mount volume") because it "cannot create link /etc/mtab~ Perhaps there is a stale lock file?" Yes, perhaps..... I don't even know what the @#%^ that means!!!!!
 
Old 07-29-2007, 07:10 PM   #9
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
The /etc/mtab~ file should be a backup before edit of the /etc/mtab file. The system maintains the /etc/mtab file so there shouldn't be any problems, but evidently there is a problem. Hmmmmm. Try this. I have opened the /etc/mtab file in vi in one window and I have entered the lsof command in another window.
Code:
lsof / | grep mtab
vi        17209       root    4u   REG        3,3   12288 420454 /etc/.mtab.swp
 
Old 07-29-2007, 11:00 PM   #10
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
Doesn't show anything unless I run as sudo. When I do, I get:
vi 17717 root 7u REG 8,1 12288 6555771 /etc/.mtab.swp
 
Old 07-30-2007, 05:25 AM   #11
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 Plastech
Doesn't show anything unless I run as sudo. When I do, I get:
vi 17717 root 7u REG 8,1 12288 6555771 /etc/.mtab.swp
That's exactly like the example that I showed you. That means that you must have a process that is using vi to edit the /etc/mtab file. The process id is 17717. Try this.
Code:
sudo kill -9 17717
That should free up the /etc/mtab file. In the future don't edit the /etc/mtab file.

Last edited by stress_junkie; 07-30-2007 at 05:26 AM.
 
Old 07-30-2007, 12:11 PM   #12
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
LOL, I thought you were asking me to edit the mtab file and then pull up lsof. Of course it showed up in there. Lol.

Okay, I almost have this thing figured out. First off, the mounting and unmounting issue:
Apparently this is a bug in feisty and it affects external HDs with external power. Apparently they unmount but then remount before very quickly. If I use the "sudo umount /media/Maxtor\ External/" command, it unmounts just fine.

Second, it seems that if I add or remove files from the terminal, everything works fine. It looks like the problem is with nautilus not having permissions (NTFS and permissions?! Did I mention that I've given up on ext3 because of these damn permissions by the way? Now using ntfs-3g) to write onto the drive no matter what the partition. But goto terminal and touch as any user? No problem! :shrug:
 
Old 07-30-2007, 12:12 PM   #13
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
P.S. Can I get an ALL HAIL STRESS JUNKIE in here?
 
Old 07-30-2007, 01:39 PM   #14
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 Plastech
P.S. Can I get an ALL HAIL STRESS JUNKIE in here?
Thanks.
 
Old 07-30-2007, 03:02 PM   #15
Plastech
Member
 
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
So any ideas on how to get nautilus to recognize the hard drive? I could care less about the mounting/unmounting problem....
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maxtor OneTouch quikphysik Linux - Hardware 4 01-18-2007 02:05 PM
Maxtor Onetouch III Mounting Problems mr805newbie Mandriva 2 12-11-2006 11:14 AM
Maxtor Locked Hard drive and Linux Gortex Linux - Hardware 13 09-20-2006 02:13 AM
Maxtor OneTouch USB external drive button support nicflatterie Linux - Hardware 3 12-01-2005 11:21 PM
external hard drive - Maxtor naijaguy Linux - Hardware 2 08-23-2004 12:51 PM


All times are GMT -5. The time now is 09:27 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