| View previous topic :: View next topic |
| Author |
Message |
FreeFly42 l33t


Joined: 03 Nov 2003 Posts: 848 Location: Houston, TX
|
Posted: Tue Feb 24, 2004 3:49 pm Post subject: |
|
|
| Code: | umount /mnt/floppy (turn supermount off)
mkfs /dev/fd0 (format the floppy)
mount /mnt/floppy (turn supermount back on | ) _________________ Kent
Planes are dangerous, get out of 'em quick |
|
| Back to top |
|
 |
Biggles Tux's lil' helper


Joined: 06 Nov 2003 Posts: 123 Location: New Zealand
|
Posted: Mon Mar 22, 2004 5:40 am Post subject: |
|
|
This howto is wonderful. I already had the supermount module built from my last kernel build, and I managed to get supermount going perfectly with a dvd-rom, a floppy and a usb key drive thing in 10 minutes.
Here's my fstab for the curious:
| Code: | # <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda6 /boot ext3 noauto,noatime 1 2
/dev/hda8 / reiserfs noatime 0 1
/dev/hda9 /home reiserfs noatime 0 1
/dev/hda7 none swap sw 0 0
/dev/hda1 /mnt/win_c ntfs ro,user,umask=000 0 0
/dev/hda5 /mnt/win_d vfat user,umask=000 0 0
#/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0
#/dev/sda1 /mnt/usbdrive vfat user,umask=000,noauto 0 0
# Supermount mounts
none /mnt/dvdrom supermount fs=auto,dev=/dev/cdroms/cdrom0 0 0
none /mnt/floppy supermount fs=auto,dev=/dev/fd0,--,user,rw 0 0
none /mnt/usbdrive supermount fs=auto,dev=/dev/sda1 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0 |
|
|
| Back to top |
|
 |
EliasP Guru


Joined: 06 Dec 2002 Posts: 317 Location: South-West Germany
|
|
| Back to top |
|
 |
EliasP Guru


Joined: 06 Dec 2002 Posts: 317 Location: South-West Germany
|
Posted: Mon Mar 22, 2004 3:14 pm Post subject: |
|
|
If you're experiencing problems when ejecting the CD, add this line to /etc/sysctl.conf
dev.cdrom.autoclose=0
Greetings
Elias P. |
|
| Back to top |
|
 |
thechosen0ne n00b


Joined: 23 Jan 2004 Posts: 36
|
Posted: Tue Mar 23, 2004 9:47 pm Post subject: |
|
|
| Thanks, worked nicely for my 128mb usb key... kept me from having to mount/unmount the damned thing. Also works on my dvd drive. Thanks! |
|
| Back to top |
|
 |
Eagad n00b


Joined: 16 May 2003 Posts: 35
|
Posted: Thu Mar 25, 2004 5:55 pm Post subject: Repeating question never answered |
|
|
There was a question exactly like mine at the beginning of this thread that was never answered:
In Gnome, the cdrom icon is always there with supermount, even when there is no disc in the cd drive. Is there any way to make nautilus know when the drive is actually empty so that it won't show the cdrom icon?
Thanks,
-Chris _________________ Eagad Technologies
http://www.eagadtech.net/ |
|
| Back to top |
|
 |
EliasP Guru


Joined: 06 Dec 2002 Posts: 317 Location: South-West Germany
|
Posted: Thu Mar 25, 2004 9:00 pm Post subject: Re: Repeating question never answered |
|
|
| Eagad wrote: |
In Gnome, the cdrom icon is always there with supermount, even when there is no disc in the cd drive. Is there any way to make nautilus know when the drive is actually empty so that it won't show the cdrom icon?
|
I don't think that it is possible to change this behaviour, because the device is mounted all the time, the real mounting/umounting is done by Supermount on a lower level.
Greetings
Elias P. |
|
| Back to top |
|
 |
AugustineF n00b

Joined: 19 Dec 2003 Posts: 31
|
Posted: Sat Mar 27, 2004 3:21 am Post subject: Permission denied |
|
|
OK, this is my entry in fstab.
| Quote: | none /mnt/dvd supermount fs=iso9660,dev=/dev/cdroms/cdrom0,--,ro,user,umask=0,gid=19 0 0
|
And Following is my listing in /dev
| Quote: | ls -l hdc cdroms/cdrom0
lrwxrwxrwx 1 root root 6 Mar 26 21:14 cdroms/cdrom0 -> ../hdc
brw-rw---- 1 root cdrom 22, 0 Mar 26 21:14 hdc
|
And hdc is indeed my dvd drive. But when ever I try to mount /mnt/dvd, I get permission denied message. Even If I try | Quote: | | mount -t iso9660 -o ro /dev/hdc /mnt/dvd |
I still get permission denied.
Btw I am using udev , and its working perfectly. |
|
| Back to top |
|
 |
FreeFly42 l33t


Joined: 03 Nov 2003 Posts: 848 Location: Houston, TX
|
Posted: Sat Mar 27, 2004 3:32 am Post subject: |
|
|
Even though you are specifying the "user" option in your fstab, you can't mount it as an ordinary user for supermount. The idea of supermount is that the driver is mounted all the time, but the actual device is mounted and unmounted automatically by the supermount driver. Thus you mount the cdrom once as root when the machine boots (make it auto) and when any user inserts/ejects a cd the mount point will be automatically mounted/unmounted as needed.
I am just assuming you are tryng to do this as an ordinary user due to the "user" option, which for super mount is not needed. _________________ Kent
Planes are dangerous, get out of 'em quick |
|
| Back to top |
|
 |
AugustineF n00b

Joined: 19 Dec 2003 Posts: 31
|
Posted: Sat Mar 27, 2004 4:56 am Post subject: |
|
|
| no I am actually trying to mount it as root. |
|
| Back to top |
|
 |
t_2199 Tux's lil' helper

Joined: 20 Mar 2004 Posts: 146
|
Posted: Tue Apr 06, 2004 3:10 pm Post subject: |
|
|
It works! It works! It works  |
|
| Back to top |
|
 |
snakattak3 Guru


Joined: 11 Dec 2002 Posts: 468 Location: Seattle
|
Posted: Tue Apr 06, 2004 8:27 pm Post subject: |
|
|
I updated the patches for the 2.6.5 kernels. HERE for stock vanilla kernels, and HERE for patching if you use the latest love-sources. They dropped supermount support, and I'm sure all of us in this thread would still lke it
*** USE AT YOUR OWN RISK ***
They are on a work-for me basis, and right now, they work for me.
All they are is the supermount code 2.0.4, and I just fixed the patches so they patch without any errors for the 2.6.5 kernel. _________________ Ban Reality TV!
Adopt an Unanswered Post |
|
| Back to top |
|
 |
forever Tux's lil' helper


Joined: 02 Apr 2004 Posts: 117 Location: Poland - Krakow
|
Posted: Tue Apr 06, 2004 8:54 pm Post subject: |
|
|
Ok but if I want to use only 2.4x version of the gentoo (I mean gentoo-sources) is there any patch to use supermount?? (i tried original one but obviously it fails...) _________________ Man invented language to satisfy his deep need to complain.
-- Lily Tomlin |
|
| Back to top |
|
 |
snakattak3 Guru


Joined: 11 Dec 2002 Posts: 468 Location: Seattle
|
Posted: Tue Apr 06, 2004 9:55 pm Post subject: |
|
|
| forever wrote: | | Ok but if I want to use only 2.4x version of the gentoo (I mean gentoo-sources) is there any patch to use supermount?? (i tried original one but obviously it fails...) |
[EDIT]
supermount should already be in the 2.4.x gentoo-sources
[/EDIT] _________________ Ban Reality TV!
Adopt an Unanswered Post |
|
| Back to top |
|
 |
miqorz Veteran


Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
|
| Back to top |
|
 |
miqorz Veteran


Joined: 04 Apr 2004 Posts: 1170 Location: Pissing into the wind.
|
Posted: Thu Apr 15, 2004 9:02 am Post subject: |
|
|
Weird.. I can't seem to use the commands the author says to use because the patch came in a .bz2 and once extracted it has a .diff file..
How do i patch my kernel with this?
"020-supermount-1.2.11a.diff" |
|
| Back to top |
|
 |
FreeFly42 l33t


Joined: 03 Nov 2003 Posts: 848 Location: Houston, TX
|
Posted: Fri Apr 16, 2004 5:00 am Post subject: |
|
|
RTFM (man patch). Probably wind up with:
| Code: | cd /usr/src/linux
patch -p1 < 020-supermount-1.2.11a.diff |
_________________ Kent
Planes are dangerous, get out of 'em quick |
|
| Back to top |
|
 |
MooktaKiNG Guru


Joined: 11 Nov 2002 Posts: 326 Location: London, UK
|
Posted: Mon Apr 19, 2004 4:41 pm Post subject: |
|
|
Can you auto mount samba shares using supermount?
What about other network based file systems? _________________ http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router |
|
| Back to top |
|
 |
routerguy Guru

Joined: 07 Feb 2004 Posts: 462
|
Posted: Tue Apr 27, 2004 1:07 am Post subject: thank you |
|
|
I would just like to sincerly thank wolvenwraith and everybody who contributed to this how-to. It really helped me with a problem I've been having for a long time!
Keep up the good work!  |
|
| Back to top |
|
 |
snakattak3 Guru


Joined: 11 Dec 2002 Posts: 468 Location: Seattle
|
Posted: Tue Apr 27, 2004 3:44 pm Post subject: |
|
|
| MooktaKiNG wrote: | Can you auto mount samba shares using supermount?
What about other network based file systems? |
I'm not sure. Probably not. I think its only intended for removable media. But maybe you could file a bug report for supermount, and get it in on the next version. _________________ Ban Reality TV!
Adopt an Unanswered Post |
|
| Back to top |
|
 |
FreeFly42 l33t


Joined: 03 Nov 2003 Posts: 848 Location: Houston, TX
|
Posted: Wed Apr 28, 2004 1:31 am Post subject: |
|
|
I tried getting it to work with Compact Flashes, but in the end I was happier with manually mounting and unmounting them. You can get it to mount other media, but it doesn't work well becuase supermount is designed to work with eject and eject blocking methods which don't exist for other media types (like network folders).
Seems like there should be a nice method for on-access mounting of anything in /etc/fstab, and auto unmounting based on idle timeout. But I haven't seen it. _________________ Kent
Planes are dangerous, get out of 'em quick |
|
| Back to top |
|
 |
MooktaKiNG Guru


Joined: 11 Nov 2002 Posts: 326 Location: London, UK
|
Posted: Wed Apr 28, 2004 11:50 am Post subject: |
|
|
| FreeFly42 wrote: | I tried getting it to work with Compact Flashes, but in the end I was happier with manually mounting and unmounting them. You can get it to mount other media, but it doesn't work well becuase supermount is designed to work with eject and eject blocking methods which don't exist for other media types (like network folders).
Seems like there should be a nice method for on-access mounting of anything in /etc/fstab, and auto unmounting based on idle timeout. But I haven't seen it. |
try to look into autofs
I think autofs can do network mounts. not sure
sorry, no links  _________________ http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router |
|
| Back to top |
|
 |
Siraris n00b

Joined: 22 Jan 2004 Posts: 21
|
Posted: Wed Apr 28, 2004 5:36 pm Post subject: This is fubar |
|
|
| Code: | CC fs/pipe.o
CC fs/namei.o
CC fs/fcntl.o
CC fs/ioctl.o
CC fs/readdir.o
CC fs/select.o
CC fs/fifo.o
CC fs/locks.o
CC fs/dcache.o
CC fs/inode.o
CC fs/attr.o
CC fs/bad_inode.o
CC fs/file.o
CC fs/dnotify.o
CC fs/filesystems.o
CC fs/namespace.o
fs/namespace.c: In function `do_mount':
fs/namespace.c:796: error: `FS_NO_SUBMNT' undeclared (first use in this function)
fs/namespace.c:796: error: (Each undeclared identifier is reported only once
fs/namespace.c:796: error: for each function it appears in.)
make[1]: *** [fs/namespace.o] Error 1
make: *** [fs] Error 2
|
I get this when I apply the patch to my kernel and try and re-compile it.
What is going onnnn?!?!?!? |
|
| Back to top |
|
 |
gringotts n00b

Joined: 08 Apr 2004 Posts: 59
|
Posted: Wed Apr 28, 2004 5:39 pm Post subject: Re: Supermount Installation and Setup |
|
|
| wolvenwraith wrote: | I have seen Supermount mentioned several times on these forums, but never saw a complete how-to on setting it up, so here I am submitting it myself. [...]
|
Your how-to is just what I needed to let supermount work. Thank you.
The comments have their place too: could not have sort out the proper use of '--'. |
|
| Back to top |
|
 |
gringotts n00b

Joined: 08 Apr 2004 Posts: 59
|
Posted: Wed Apr 28, 2004 5:48 pm Post subject: |
|
|
| snakattak3 wrote: | | MooktaKiNG wrote: | Can you auto mount samba shares using supermount?
What about other network based file systems? |
I'm not sure. |
In the kernel 2.6 config menu there is another option for remote FS: automount, which have to be used with the autofs tools.
Maybe could it help  |
|
| Back to top |
|
 |
|