Hi,
I've been using linux on my laptop for a year, and installed gentoo a month 
ago. Since I have a 7 gig partition for gentoo, i decided to 
move /tmp/portage to my external hardrive, and /root/.ccache as well. And 
write a script that monitors when the external hard drive is attached and 
fixes the symlinks.

My external hard disk is partitioned into three: sda1 (vfat), sda2(swap, not 
used), and sda3 (jfs).

I was using subfs, but it was messing up copying files in konqueror from my 
harddisk to my mp3 player (usb on sdb1). It was also giving some troubles 
with my external harddrives. so I thought let's see what supermount  can do 
(since it's easier to setup than autofs).
 so here's my current fstab:

/dev/hda3               /boot           ext3            defaults,noatime        
        1 2
/dev/hda6               /               jfs             noatime                 
0 1
/dev/hda5               none            swap            sw                      
        0 0
/dev/hda1               /windows/c      auto            nouser,ro,uid=1000      
0 0
/dev/hda2               /windows/d      auto            user,rw,uid=1000        
0 0
/dev/cdroms/cdrom0      /mnt/cdrom      subfs           fs=cdfss,ro,users       
0 0
none                    /mnt/external0  supermount      
dev=/dev/sda1,fs=auto,--,exec,rw,sync   0 0
#none                   /mnt/external01 supermount      dev=/dev/sda3,fs=auto   
0 0
none                    /mnt/external1  supermount      dev=/dev/sdb1,fs=auto   
0 0
none                    /mnt/external2  supermount      dev=/dev/sdc1,fs=auto   
0 0
/dev/sda3               /mnt/external01 subfs           
fs=jfs,dev,users,rw,exec        0 0
#/dev/sdb1              /mnt/external1  subfs           
fs=floppyfss,uid=1000,rw,users  0 0
#/dev/sdc1              /mnt/external2  subfs           
fs=floppyfss,uid=1000,rw,users  0 0

Here're the problems I'm having:
1) i can't mount /dev/sda3 using supermount. It never seems to get mounted. 
running 'mount' will give it as mounted using supermount, but when I 
'cat /proc/fs/supermount/subfs', i get that it is unmounted even when I am 
in /mnt/external01. Obviously, /mnt/external01 contains nothing.

2) I want to be able to unplug the external hard disk, and then plug it again. 
But when I do that, sda becomes sdb, and /mnt/external1 has what is supposed 
to be on /mnt/external0. Doing 'cat /proc/fs/supermount/subfs' again gives me 
that /dev/sda1 is still mounted, and now /dev/sdb1is mounted as well. 
Shouldn't /dev/sda1 be unmounted automatically when nothing is accessing the 
directory (i checked that with lsof)?

Thanks,
Jad.

--
[email protected] mailing list

Reply via email to