Unix Technical Forum

mount /zip... odd behaviour

This is a discussion on mount /zip... odd behaviour within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, After yesterday's thread (internal zip drive with 2.6), I played around a lot with different suggestions, and what ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 07:27 AM
Niki Kovacs
 
Posts: n/a
Default mount /zip... odd behaviour

Hi,

After yesterday's thread (internal zip drive with 2.6), I played around a
lot with different suggestions, and what came up was rather odd. Thought
I'd start this new thread to sum up information until now.

My internal Zip drive is correctly recognized at startup as hdd, but udev
only creates a device noce /dev/hdd1 when a zip disk is inserted before
startup. (You may wonder why it's not /dev/hdd4. That's because I erased
the fourth VFAT partition and put a first ext2 partition on every disk.)

Joost Kremers suggested I create the device manually with mknod, so here's
what I put in /etc/rc.d/rc.local:

mknod -m 660 b 22 65

Now here's what happens:

- Start the PC without a disk in the zip drive.

- Log in.

- Insert zip disk.

- mount /zip -> I get an error message about /dev/hdd1 not being a valid
block device... BUT:

- If I issue the command again, it works!

I tried this in several combinations, and here's the conclusion: when the PC
starts without a zip disk inserted - and the device is created manually
with mknod - MOUNT FAILS, BUT ONLY THE FIRST TIME. (Not shouting, but
marvelling...)

What's happening here?

Niki Kovacs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 07:27 AM
Niki Kovacs
 
Posts: n/a
Default Re: mount /zip... odd behaviour

To cut things short: mount /zip only works on the second attempt, be it as
root or as user.

Tried to compare lsmod output before mounting and after successfully
mounting, but there's no difference.

N.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 07:27 AM
Grant Coady
 
Posts: n/a
Default Re: mount /zip... odd behaviour

On Wed, 06 Apr 2005 11:43:14 +0000, Niki Kovacs <mickey@mouse.com> wrote:
>My internal Zip drive is correctly recognized at startup as hdd, but udev
>only creates a device noce /dev/hdd1 when a zip disk is inserted before
>startup. (You may wonder why it's not /dev/hdd4. That's because I erased
>the fourth VFAT partition and put a first ext2 partition on every disk.)

.. . .
>I tried this in several combinations, and here's the conclusion: when the PC
>starts without a zip disk inserted - and the device is created manually
>with mknod - MOUNT FAILS, BUT ONLY THE FIRST TIME. (Not shouting, but
>marvelling...)


Zip disks have always been a little strange, there's /usr/doc...ZIP-howto.
What does the matching /etc/fstab line say?
Linux never did like 'hard drives' with removeable media...
Since you re-format yours, have you tried super-floppy, no partiton
table? Make a difference? Still /dev/hdd -- may not change anything.

The machine I have with ATAPI zip is 2.4.30 kernel, noticed that ide-scsi
prevents ide-floppy being loaded. Actually fist time since install I
try zip-disk, had to re-compile kernel for ide-floppy support Oldest
directory from '/' is Jan'05

Can't help with udev, can't see the benefit, seems strange you need
to create node for standard device, udev was supossed to fix things,
not break them?

Cheers,
Grant.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 07:27 AM
Grant Coady
 
Posts: n/a
Default Re: mount /zip... odd behaviour

On Wed, 06 Apr 2005 12:39:39 +0000, Niki Kovacs <mickey@mouse.com> wrote:

>To cut things short: mount /zip only works on the second attempt, be it as
>root or as user.
>
>Tried to compare lsmod output before mounting and after successfully
>mounting, but there's no difference.


Super-floppy option would prevent 'hard drive no media' state on startup,
long time since I went there, certainly not on 2.6 kernel.
Cheers,
Grant.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 07:28 AM
Niki Kovacs
 
Posts: n/a
Default Re: mount /zip... odd behaviour

Grant Coady wrote:

> Zip disks have always been a little strange, there's /usr/doc...ZIP-howto.
> What does the matching /etc/fstab line say?
> Linux never did like 'hard drives' with removeable media...
> Since you re-format yours, have you tried super-floppy, no partiton
> table?**Make*a*difference?**Still*/dev/hdd*--*may*not*change*anything.


Hi Grant,

IT WORKS!!! (Not marvelling, but shouting this time) ). Well, superfloppy
was the answer. Dunno why, but 2.6 doesn't like partitions on zip disks
(whereas 2.4 does).

Solution:

mke2fs /dev/hdd

And then /etc/fstab:

/dev/hdd /zip ext2 noauto,user 0 0


Tried it in a few combinations, works like a charm.

Thanks!

Niki
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com