[SOLVED] External drive only mounts at boot half of the time

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

Fred wrote:deadguy,

I don't have a fat32 or ntfs partition to experment on so I have to use you instead. lol

Try this and see if there is any change. I don't think there will be but it's worth a try. :-)

# /dev/sdc1
LABEL=mybook /home/deadguy/mybook vfat iocharset=utf8 umask=0000,uid=deadguy,gid=users,auto,rw 0 0

There is only one return in the above, right after the commented line. The rest is word wrap.

Fred
hi Fred,

well I tried your experiment but got the same results.
feel free to suggest any other "experiments" :D

cheers,


Deadguy
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: External drive only mounts at boot half of the time

Post by newW2 »

Good morning Fred,
I'll probably regret having written this first thing in the AM before my coffee, but here goes. Something I'm not clear about on this post, is, whether this an internal or external USB drive? I get the idea that it's an external with a name / label of MyBook.

I do have a machine in the house with Windows XP installed. If it helps, my fstab list the following:
/dev/sda1 /media/sda1 nfts defaults,umask=007,gid=46 0 1
Fred

Re: External drive only mounts at boot half of the time

Post by Fred »

deadguy,

Why not? Let's try what seems to be working for newW2. Just comment you current line out so you can go back to it easily if need be.

# /dev/sdc1
LABEL=mybook /home/deadguy/mybook vfat defaults,utf8,umask=007,gid=46 0 1

The only thing I see different is the permissions are a bit different and the disk check priority is a bit different. I am beginning to think that this might have something to do with the drive itself. What, I am not quite sure.

Fred
Fred

Re: External drive only mounts at boot half of the time

Post by Fred »

newW2,

Yes, as I understand it, it is an external drive formatted as one partition fat32. I was assuming USB but I could be wrong. I am sure deadguy will correct me if I misspoke.

It is mounted as /home/deadguy/mybook and has a label of mybook. It wasn't using a unique identifier, but we added a label. I was hoping it was a name collision, but it wasn't, apparently.

Fred
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

Hi guys,
you guys are correct fat32 external mybook 500Gb hard drive.
I use it on a machine that dual boots DarynaKDE and Celena.
in Celena there is no problem what so ever. the fstab line in Celena
is very close to what I have in KDE Daryna (in my first post here)

newW2,

thanks for the suggestion!!
I'll try it and post back what happens....

cheers,


Deadguy
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

ok, trying now with one little change:

LABEL=mybook /home/deadguy/mybook vfat defaults,utf8,umask=000,gid=46 0 1

I need the umask=000 instead of 007 because I share it on my network.

booting now......
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

well no luck yet :?

I'm trying another thing right now if it works I'll post back.........
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

well guys,

still the same thing, one time it will mount at boot then next time it won't.

I've tried UUID with many different parameters, LABEL with many different parameters,
/dev/sdc1 with many different parameters as well. I'm stumped still!

as I said before it don't really matter because all I have to do is right click
a desktop icon I made then choose mount. after that it's connected just fine so....
weird stuff :shock:

I also have another "newer" pc running DarynaKDE with three mybooks formatted ntfs that auto mount with no problem.
(each mounted to folders in the home directory.)

just thought of this...

the pc with the "fat" mybook is Daryna KDE beta 044
the other is Daryna KDE final.



Deadguy
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: External drive only mounts at boot half of the time

Post by newW2 »

I'm way over my head here, and just trying to help, however, since we are looking at a USB drive (removable media) is pmount being used as suggested here?

The Man pages say:
pmount device [ label ]

This will mount device to a directory below /media if policy is met
(see below). If label is given, the mount point will be /media/label,
otherwise it will be /media/device.

The device will be mounted with the following flags:
async,atime,nodev,noexec,noauto,nosuid,user,rw

Some applications like CD burners modify a raw device which must not be
mounted while the burning process is in progress. To prevent automatic
mounting, pmount offers a locking mechanism: pmount --lock device pid
will prevent the pmounting of device until it is unlocked again using
pmount --unlock device pid. The process id pid assigns the lock to a
particular process; this allows to lock a device by several processes.

During mount, the list of locks is cleaned, i. e. all locks whose asso‐
ciated process does not exist any more are removed. This prevents for‐
gotten indefinite locks from crashed programs.

Running pmount without arguments prints the list of mounted removable
devices, a bit in the fashion of mount (1).

Please note that you can use labels and uuids as described in fstab (5)
for devices present in /etc/fstab. In this case, the device name need
to match exactly the corresponding entry in /etc/fstab, including the
LABEL= or UUID= part.

Important note for Debian: The permission to execute pmount is
restricted to members of the system group plugdev. Please add all desk‐
top users who shall be able to use pmount to this group by executing

adduser user plugdev
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

newW2,

some good stuff here :D

I will experiment and post back if/when something works!


thanks,


Deadguy
Husse

Re: External drive only mounts at boot half of the time

Post by Husse »

Hey guys - talking a walk in the forum found this topic
My (internal) ntfs partion is mounted
/dev/sda1 /media/sda1 ntfs defaults,umask=007,gid=46 0 1
so that's probably right - just like newW2
There are hardly any differences between beta 044 and the final - look at the release notes
External - how? USB? ESATA? Firewire?
USB disks have problems now and then...
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

hi Husse,

it's an external USB hard drive formatted FAT32.

I've tried about every mix of fstab parameters imaginable!
the strange part is that it only auto mounts at boot about half of the time. (I would figure either it would or would not)
(edit: well about 80% of the time now see below)
but once mounted, either in the terminal, or by a desktop shortcut I created, or automatically at boot,
everything is good to go. I have fixed the HAL issue in KDE beta 044 the same way Boo did in the final but
that was for ntfs anyway.

I understand that USB disks can be quirky and am not too concerned because I can mount it easily enough when necessary 8)
this has been more of a little adventure of me playing with fstab more than anything :D

I'm not a big fan of FAT32 because of file size limits so next weekend I'm going to back it up and reformat it ext3 or NTFS
(was thinking NTFS for windows compatibility) we'll see what happens then :)


Fred,newW2&Husse,

I'd like to thank all three of you guys for the info and assistance
and of course any other ideas are welcome!!!

I eagerly await the beta of Elyssa!!!!

cheers,

Deadguy
Last edited by deadguy on Sun May 04, 2008 10:02 pm, edited 1 time in total.
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

in case you guys are interested,
this is how I have my fstab now
I find this config gives me about a 80% automount
which is better than it was :D

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb2
UUID=6c1d9832-3fe5-4410-b443-10ef6e6c8705 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
# /dev/sda1
UUID=955245b5-4239-4293-b28d-0bf73f0b2f2d /media/sda1 ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
# /dev/sdb1
UUID=072b609c-88ba-424a-a9f3-2484be2e9a75 /media/storage ext3 users,defaults,atime,auto,rw,dev,exec,suid 0 2
# /dev/sdc1
/dev/sdc1 /home/deadguy/mybook vfat fmask=0011,dmask=0000,uid=1000,gid=1000,auto,rw,user 0 0

# /dev/sda5
UUID=3aa92227-d133-49e1-a5da-8409c24c89a1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0


cheers,

Deadguy
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: External drive only mounts at boot half of the time

Post by newW2 »

Thinking about this one ... are the mount stats from reboots or boot from powered off machine? Also the external Book hdd isn't running or trying to run the .ini file is it? Also, if you have the usb drive as a possible boot option is your grub in a separate partition on the internal / main hdd?
Fred

Re: External drive only mounts at boot half of the time

Post by Fred »

newW2,

You are talking about timing issues. You could very well be on to something there too. :-)

Fred
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: External drive only mounts at boot half of the time

Post by newW2 »

I wake up from dreams about Linux Mint, and finding solutions to the tricky ones. :lol: :lol: :lol: :lol:
I knew you would catch on to that line of thought. Missed packets and race conditions can be fun.
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

newW2 wrote:Thinking about this one ... are the mount stats from reboots or boot from powered off machine? Also the external Book hdd isn't running or trying to run the .ini file is it? Also, if you have the usb drive as a possible boot option is your grub in a separate partition on the internal / main hdd?

hi newW2,

to answer your questions:

1. well, reboot and powered off are about even for hit/miss.
2. no on the .ini.
3. the external is only storage no booting. grub is on sdb2 (internal)

tonight when I got home from work, it auto mounted fine :D

Deadguy
Fred

Re: External drive only mounts at boot half of the time

Post by Fred »

deadguy,

Where is the power for this external drive coming from? Is it powered from the usb jack or does it have an external power source?

Fred
deadguy
Level 5
Level 5
Posts: 707
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: External drive only mounts at boot half of the time

Post by deadguy »

Fred wrote:deadguy,

Where is the power for this external drive coming from? Is it powered from the usb jack or does it have an external power source?

Fred

hi Fred,

it's powered from an ac adapter.


Deadguy
Fred

Re: External drive only mounts at boot half of the time

Post by Fred »

deadguy,

I know this is a subjective question, but does it seem to spin up promptly and as quickly as you would expect it to?

Fred
Locked

Return to “Storage”