USB removable media problem

Todd Deshane deshantm at gmail.com
Wed Jul 13 21:10:23 UTC 2005


On 7/13/05, R Kimber <rkimber at ntlworld.com> wrote:
> 
> I've been hitherto happily using an Iomega Zip USB drive mounted on
> /dev/ sda4 (ext2) thus:-
> 
> /dev/sda4 /mnt/pd ext2 defaults,noauto,users 0 0
> 
> Now, after a re-boot, when I try to access the drive I get a message
> saying there is no such device as /dev/sda4
> 
> If I change fstab to
> /dev/sda /mnt/pd auto defaults,noauto,users 0 0
> it seems to mount OK but I am told: VFS: Can't find an ext2 filesystem
> on dev sda
> 
> if at the promt I do
> mount -t ext2 /dev/sda4 /mnt/pd
> it mounts correctly, and a script that copies stuff from the HD to the
> Zip works, except that when it tries to unmount the drive, it complains
> - unsurprisingly - that mount disagrees with the fstab.
> 
> How do I set it up so that /dev/sda4 is created (either at boot or when
> the device is accessed) but the zip drive is not automatically mounted
> at boot, and my script can happily mount and unmount the drive when
> needed?


I don't use zip drives much so I would have to guess on that part, but
I do see why your /dev/sda /mnt/pd auto defaults,noauto,users 0 0
/etc/fstab line gives you the ever. It is because the ext2 partition is
on /dev/sda4 and not on the /dev/sda
So It looks like the usb drive is being detected by hotplug, but a
zip disk is similar to floppy in that the computer doesn't know
when you put in the disk (unless there is zip software that can
detect it and tell it). So, if you are willing to mount it manually
than you should be able to use the line (in /etc/fstab):

/dev/sda4 /mnt/pd auto defaults,noauto,users 0 0

you will need to mount and unmount manually.

I will have to try out a zip disk to see if hotplug
handles them automatically or if you need other
software.

Hope that helps, probably someone else has
some experience with zip disks (otherwise let
me know if you still have problems and I will
play around with a zip disk later.)

Regards,
Todd

I'm using 5.04 on amd64
> 
> Thanks,
> - Richard
> --
> Richard Kimber
> http://www.psr.keele.ac.uk/
> 
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050713/df255922/attachment.html>


More information about the ubuntu-users mailing list