Resume fails (was Re: mount question [SOLVED])

2009-01-20 Thread Steve

 Mikkel L. Ellertson mik...@infinity-ltd.com wrote: 
 Steve wrote:
  
  My only other problem is that if set any time for Put computer
  to sleep when inactive for:, System-Prefernces-System-Power
  Management, the computer does go to sleep at the appropriate time
  but it can not be woken up again. This issue was discussed on this
  list last Nov or Dec and it appears that it hasn't been fixed yet.
  
  Steve
  
 You should probably start a new thread about this. From what I have
 seen, it is machine dependent. There are different things you can
 try if it does not work out of the box. I know it works on my
 laptop. I have not tried it on my desktop.

I didn't think that a new thread was necessary since this is a known problem 
but I can't find a bug that really fits this problem to add my 2c to. Most of 
them appear to be specific to a particular laptop or a particular graphics 
driver.

I have 2 different desktops both running F9 and both using (different) nVidia 
graphics cards. Both of them fail to resume after hibernation. The logs show 
that everything worked OK.

Got a bug number for me ar shall I write a new one?

Steve

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question [SOLVED]

2009-01-19 Thread Mikkel L. Ellertson
Steve wrote:
 
 I'm still left with many questions that I think are not so easy to answer.
 
 What overwrote my fstab file in the first place?
No idea
 Why did it get overwritten without any notification?
No idea.
 Why did whatever overwrote it decide for me that my Windows
 partition should be removed?
It doesn't like Windows? :)
 Why does mount report that a filesystem is of type fuseblk when
 the type requested was ntfs-3g?
If I remember correctly, NTFS-3G works in user space, and uses FUSE
to do the mounting.
 Why is there no mention of type fuseblk in the mount man page or
 in the fstab man page?man mount?
There should probable be a see also pointing to FUSE. But there
doesn't seem to be a fuse man page. You may want to read the
documentation in /usr/share/doc/fuse-2.7.4.
 Why does mount report permission denied instead of something
 like bad type when it gets an incorrect type?
 
The error message is most likely generated by the mount.fuse helper
application. It really should be improved. I am used to seeing it
when rpm is checking for free space, and it tries to read my
fuse-mounted encrypted directory. It is possible to mount file
systems using fuse that root cannot access.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: mount question [SOLVED]

2009-01-19 Thread Steve

 Mikkel L. Ellertson mik...@infinity-ltd.com wrote: 
 Steve wrote:
  
  I'm still left with many questions that I think are not so easy to answer.
  
  What overwrote my fstab file in the first place?
 No idea
  Why did it get overwritten without any notification?
 No idea.
  Why did whatever overwrote it decide for me that my Windows
  partition should be removed?
 It doesn't like Windows? :)

Who does!?

  Why does mount report that a filesystem is of type fuseblk when
  the type requested was ntfs-3g?
 If I remember correctly, NTFS-3G works in user space, and uses FUSE
 to do the mounting.
  Why is there no mention of type fuseblk in the mount man page or
  in the fstab man page?man mount?
 There should probable be a see also pointing to FUSE. But there
 doesn't seem to be a fuse man page. You may want to read the
 documentation in /usr/share/doc/fuse-2.7.4.
  Why does mount report permission denied instead of something
  like bad type when it gets an incorrect type?
  
 The error message is most likely generated by the mount.fuse helper
 application. It really should be improved. I am used to seeing it
 when rpm is checking for free space, and it tries to read my
 fuse-mounted encrypted directory. It is possible to mount file
 systems using fuse that root cannot access.

I think I'll write an RFE on the util-linux-ng package requesting a better 
error message and better documentation, assuming that there isn't one already.

I updated to F9 this past weekend and it went smoother than I had anticipated. 
My fstab was overwritten again and my Windows partition mount was removed again 
but at least I know how to fix that now.

My only other problem is that if set any time for Put computer to sleep when 
inactive for:, System-Prefernces-System-Power Management, the computer does 
go to sleep at the appropriate time but it can not be woken up again. This 
issue was discussed on this list last Nov or Dec and it appears that it hasn't 
been fixed yet.

Steve

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question [SOLVED]

2009-01-19 Thread Mikkel L. Ellertson
Steve wrote:
 
 My only other problem is that if set any time for Put computer
 to sleep when inactive for:, System-Prefernces-System-Power
 Management, the computer does go to sleep at the appropriate time
 but it can not be woken up again. This issue was discussed on this
 list last Nov or Dec and it appears that it hasn't been fixed yet.
 
 Steve
 
You should probably start a new thread about this. From what I have
seen, it is machine dependent. There are different things you can
try if it does not work out of the box. I know it works on my
laptop. I have not tried it on my desktop.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: mount question [SOLVED]

2009-01-16 Thread Steve

 Mikkel L. Ellertson mik...@infinity-ltd.com wrote: 

  I'll try changing the type from fuse to ntfs tonight and see what
  that does. The error message of permission denied leads me to
  think that this will not solve the problem but hey, I've been wrong
  before...1982 I think it was... ;-D
  
  I have to say though that I am really suprised that nobody on this
  list can give a simple answer to the seemingly simple question of
  how do I change the mount point of a hard drive.
  
  Steve.
  
 Maybe it is more of a problem with the subject that you used?
 Something on the order of:
 
 /dev/sdb1 /mnt/c_drive ntfs-3g options 0 0
 
 It worked fine for me in F8 for mounting a NTFS partition.
 (Different names...)

Thanks, Mikkel. 
The solution was as simple as using the correct type, ntfs-3g, in the 
/etc/fstab file.
My Windows partition is now mounted n the correct place which allowed my USB 
drive to go back to /media/disk instead of /media/disk-1 and so now my backups 
are working again. I completed full backups last night and so my next task is 
to upgrade to F9 using a DVD since preupgrade doesn't work for me.

I'm still left with many questions that I think are not so easy to answer.

What overwrote my fstab file in the first place?
Why did it get overwritten without any notification?
Why did whatever overwrote it decide for me that my Windows partition should be 
removed?
Why does mount report that a filesystem is of type fuseblk when the type 
requested was ntfs-3g?
Why is there no mention of type fuseblk in the mount man page or in the fstab 
man page?man mount
Why does mount report permission denied instead of something like bad type 
when it gets an incorrect type?

Steve.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-16 Thread Mikkel L. Ellertson
Aldo Foot wrote:
 
 My understanding is that in /media the OS expects to find removable media
 such as usb drives. The /mnt mount point is for nfs and local filesystems.
 Those mount points are sort of designated places for specific filesystems.
 
 Please shed some light if I'm wrong.
 ~af
 
My understanding is that /media is used as a mount point for things
that are not found in /etc/fstab, and are detected by HAL. HAL
mounts them there so the the console user can access them. The user
normally can not create directories in /mnt.

This is different from automount, where the directories are already
there. Automount mounts the specified file system when someone tries
to access it.

Mikke;
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: mount question

2009-01-16 Thread Aldo Foot
On Fri, Jan 16, 2009 at 7:17 AM, Mikkel L. Ellertson
mik...@infinity-ltd.com wrote:
 Aldo Foot wrote:

 My understanding is that in /media the OS expects to find removable media
 such as usb drives. The /mnt mount point is for nfs and local filesystems.
 Those mount points are sort of designated places for specific filesystems.

 Please shed some light if I'm wrong.
 ~af

 My understanding is that /media is used as a mount point for things
 that are not found in /etc/fstab, and are detected by HAL. HAL
 mounts them there so the the console user can access them. The user
 normally can not create directories in /mnt.

That a great way of explaining what /media is for.

 This is different from automount, where the directories are already
 there. Automount mounts the specified file system when someone tries
 to access it.

Sort of mount on demand; meaning df -h will only show a cd or pen drive
until the user clicks on it to access it.

~af

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-16 Thread Robin Laing

Aldo Foot wrote:

On Thu, Jan 15, 2009 at 9:46 AM, Craig White craigwh...@azapple.com wrote:

Not true.  The ntfs module could be compiled with write abilities in
RH9.  It wasn't _reliable_ but it was there, and it didn't use udev.
udev really doesn't have anything to do with filesystems other than
potentially triggering a mount command.


you're right...the ability to mount ntfs r/w was indeed available way
back but the admonitions were clear that by doing so would likely damage
the filesystem. That sort of made a non-option.

I agree with the OP that it probably should mount an internal IDE drive
somewhere other than /media but I suspect that he originally mounted it
as a user and that's where it appears.

The man pages for ntfs-3g and if needed, http://ntfs-3g.org/support.html
should be all he needs to get it to mount where his heart desires.

Craig


My understanding is that in /media the OS expects to find removable media
such as usb drives. The /mnt mount point is for nfs and local filesystems.
Those mount points are sort of designated places for specific filesystems.

Please shed some light if I'm wrong.
~af



From the Filesystem Hierarchy Standard.

http://www.pathname.com/fhs/index.html


/media : Mount point for removable media
Purpose

This directory contains subdirectories which are used as mount points 
for removable media such as floppy disks, cdroms and zip disks.


Rationale


Historically there have been a number of other different places used to 
mount removable media such as /cdrom, /mnt or /mnt/cdrom. Placing the 
mount points for all removable media directly in the root directory 
would potentially result in a large number of extra directories in /. 
Although the use of subdirectories in /mnt as a mount point has recently 
been common, it conflicts with a much older tradition of using /mnt 
directly as a temporary mount point.


-
/mnt : Mount point for a temporarily mounted filesystem
Purpose

This directory is provided so that the system administrator may 
temporarily mount a filesystem as needed. The content of this directory 
is a local issue and should not affect the manner in which any program 
is run.


This directory must not be used by installation programs: a suitable 
temporary directory not in use by the system must be used instead.



Hope that clears it up.


--
Robin Laing

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-16 Thread Steve

 Robin Laing robin.la...@drdc-rddc.gc.ca wrote: 
  
 
  From the Filesystem Hierarchy Standard.
 
 http://www.pathname.com/fhs/index.html

That page has not been updated since 2004. Still valid? Apparently, HAL doesn't 
think so.

 
 /media : Mount point for removable media
 Purpose
 
 This directory contains subdirectories which are used as mount points 
 for removable media such as floppy disks, cdroms and zip disks.
 
 Rationale
   
 
 Historically there have been a number of other different places used to 
 mount removable media such as /cdrom, /mnt or /mnt/cdrom. Placing the 
 mount points for all removable media directly in the root directory 
 would potentially result in a large number of extra directories in /. 
 Although the use of subdirectories in /mnt as a mount point has recently 
 been common, it conflicts with a much older tradition of using /mnt 
 directly as a temporary mount point.
 
 -
 /mnt : Mount point for a temporarily mounted filesystem
 Purpose
 
 This directory is provided so that the system administrator may 
 temporarily mount a filesystem as needed. The content of this directory 
 is a local issue and should not affect the manner in which any program 
 is run.
 
 This directory must not be used by installation programs: a suitable 
 temporary directory not in use by the system must be used instead.
 
 
 Hope that clears it up.

Yes...and no. 

That would seem to say that a permanently mouted filesystem such a a Windows 
partition on a dual boot system should not be mounted in /media since it is not 
removeable nor should it be mounted in /mnt since it is permanently mounted.

But then where?

Steve

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-16 Thread Craig White
On Fri, 2009-01-16 at 14:23 -0500, Steve wrote:
  Robin Laing robin.la...@drdc-rddc.gc.ca wrote: 
   
  
   From the Filesystem Hierarchy Standard.
  
  http://www.pathname.com/fhs/index.html
 
 That page has not been updated since 2004. Still valid? Apparently, HAL 
 doesn't think so.

still valid for sure - /media remains the mount point for removable
media

 That would seem to say that a permanently mouted filesystem such a a Windows 
 partition on a dual boot system should not be mounted in /media since it is 
 not removeable nor should it be mounted in /mnt since it is permanently 
 mounted.
 
 But then where?

anywhere you want

mkdir /disk2
mount /dev/sdb1 /disk2

what's the difference? Even if you mount it somewhere, you can still
'bind' mount it elsewhere at the same time (usually better than symlink
- especially when using selinux)

Craig

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-15 Thread Steve

 Craig White craigwh...@azapple.com wrote: 
 On Wed, 2009-01-14 at 14:31 -0500, Steve wrote:
   Craig White craigwh...@azapple.com wrote: 
   On Wed, 2009-01-14 at 16:23 +, Steve wrote:
If I let HAL  friends automagically mount my Windows partition mount 
reports this: 
 
# mount 
... 
/dev/sdb1 on /media/disk type fuseblk 
(rw,nosuid,nodev,allow_other,blksize=4096) 
 
The problem is that I want this partition mounted on /mnt/c_drive not 
/media/disk so I tried to add a line to /etc/fstab as follows: 
 
/dev/sdb1/mnt/c_drive   fuse
rw,nosuid,nodev,allow_other,blksize=4096
0 0 
 
(I started with a type of fuseblk instead of fuse but that didn't work 
at all 
and note that fuse is not documented in the mount man page) 
 
but then as root 
# mount /dev/sdb1 
/bin/sh: /dev/sdb1: Permission denied 
 
# ls -l /dev/sdb1 
brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1 
 
It's not a selinux problem because I'm running in permissive mode: 
# sestatus 
SELinux status: enabled 
SELinuxfs mount:/selinux 
Current mode:   permissive 
Mode from config file:  permissive 
Policy version: 23 
Policy from config file:targeted 
 
This is on an F8 system and I'm trying to get my backup to work so I 
can upgrade 
to F9. 
 
What am I doing wrong here? 
   
   perhaps you are just trying to use too much muscle
  
  Perhaps I am but personally I don't consider editing /etc/fstab to be heavy 
  lifting.
  
   why not just let it mount like it does and use a bind mount elsewhere...
   
   mount --bind /media/disk /mnt/c_drive
  
  I've no doubt that this will work but there HAS to be a simple way to mount 
  a partition where I want directly. It juts seems so basic.
 
 The problem you have is that you are starting with a swimming upstream
 premise.
 
 USB storage is considered 'removable storage' and thus is typically
 handled by udev as user - which sort of makes sense if you stop to
 consider it. The 'user' can mount/unmount removable storage devices at
 any time.
 
 /mnt was never intended to be for anything but permanently mounted
 filesystems, i.e. not removable - no user action required or reasonably
 permitted.
 
 Now if this 'windows filesystem' (and you don't specify what kind it
 is), is to be mounted by root at boot and remain mounted without any
 user interaction at all, then by all means add it to /etc/fstab as vfat
 (if it's vfat) or ntfs-3g (if it's ntfs and recognize that the ntfs-3g
 automatically uses the fuse system for you).

Indeed it is a permanently mounted drive (internal IDE) and it has been mounted 
on /mnt since before /media became popular.

I'll try changing the type from fuse to ntfs tonight and see what that does. 
The error message of permission denied leads me to think that this will not 
solve the problem but hey, I've been wrong before...1982 I think it was... ;-D

I have to say though that I am really suprised that nobody on this list can 
give a simple answer to the seemingly simple question of how do I change the 
mount point of a hard drive.

Steve.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-15 Thread Mikkel L. Ellertson
Steve wrote:
 
 Indeed it is a permanently mounted drive (internal IDE) and it
 has been mounted on /mnt since before /media became popular.
 
 I'll try changing the type from fuse to ntfs tonight and see what
 that does. The error message of permission denied leads me to
 think that this will not solve the problem but hey, I've been wrong
 before...1982 I think it was... ;-D
 
 I have to say though that I am really suprised that nobody on this
 list can give a simple answer to the seemingly simple question of
 how do I change the mount point of a hard drive.
 
 Steve.
 
Maybe it is more of a problem with the subject that you used?
Something on the order of:

/dev/sdb1 /mnt/c_drive ntfs-3g options 0 0

It worked fine for me in F8 for mounting a NTFS partition.
(Different names...)

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: mount question

2009-01-15 Thread Craig White
On Thu, 2009-01-15 at 14:33 +, Steve wrote:
  Craig White craigwh...@azapple.com wrote: 
  On Wed, 2009-01-14 at 14:31 -0500, Steve wrote:
    Craig White craigwh...@azapple.com wrote: 
On Wed, 2009-01-14 at 16:23 +, Steve wrote:
 If I let HAL  friends automagically mount my Windows partition mount 
 reports this: 
  
 # mount 
 ... 
 /dev/sdb1 on /media/disk type fuseblk 
 (rw,nosuid,nodev,allow_other,blksize=4096) 
  
 The problem is that I want this partition mounted on /mnt/c_drive not 
 /media/disk so I tried to add a line to /etc/fstab as follows: 
  
 /dev/sdb1/mnt/c_drive   fuse
 rw,nosuid,nodev,allow_other,blksize=4096
 0 0 
  
 (I started with a type of fuseblk instead of fuse but that didn't 
 work at all 
 and note that fuse is not documented in the mount man page) 
  
 but then as root 
 # mount /dev/sdb1 
 /bin/sh: /dev/sdb1: Permission denied 
  
 # ls -l /dev/sdb1 
 brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1 
  
 It's not a selinux problem because I'm running in permissive mode: 
 # sestatus 
 SELinux status: enabled 
 SELinuxfs mount:/selinux 
 Current mode:   permissive 
 Mode from config file:  permissive 
 Policy version: 23 
 Policy from config file:targeted 
  
 This is on an F8 system and I'm trying to get my backup to work so I 
 can upgrade 
 to F9. 
  
 What am I doing wrong here? 

perhaps you are just trying to use too much muscle
   
   Perhaps I am but personally I don't consider editing /etc/fstab to be 
   heavy lifting.
   
why not just let it mount like it does and use a bind mount elsewhere...

mount --bind /media/disk /mnt/c_drive
   
   I've no doubt that this will work but there HAS to be a simple way to 
   mount a partition where I want directly. It juts seems so basic.
  
  The problem you have is that you are starting with a swimming upstream
  premise.
  
  USB storage is considered 'removable storage' and thus is typically
  handled by udev as user - which sort of makes sense if you stop to
  consider it. The 'user' can mount/unmount removable storage devices at
  any time.
  
  /mnt was never intended to be for anything but permanently mounted
  filesystems, i.e. not removable - no user action required or reasonably
  permitted.
  
  Now if this 'windows filesystem' (and you don't specify what kind it
  is), is to be mounted by root at boot and remain mounted without any
  user interaction at all, then by all means add it to /etc/fstab as vfat
  (if it's vfat) or ntfs-3g (if it's ntfs and recognize that the ntfs-3g
  automatically uses the fuse system for you).
 
 Indeed it is a permanently mounted drive (internal IDE) and it has been 
 mounted on /mnt since before /media became popular.
 
 I'll try changing the type from fuse to ntfs tonight and see what that does. 
 The error message of permission denied leads me to think that this will not 
 solve the problem but hey, I've been wrong before...1982 I think it was... ;-D
 
 I have to say though that I am really suprised that nobody on this list can 
 give a simple answer to the seemingly simple question of how do I change the 
 mount point of a hard drive.

Say what? Linux didn't have the ability to read/write to ntfs
filesystems before udev so there's something wrong with your premise.

Craig

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-15 Thread Rick Stevens

Craig White wrote:

On Thu, 2009-01-15 at 14:33 +, Steve wrote:
 Craig White craigwh...@azapple.com wrote: 

On Wed, 2009-01-14 at 14:31 -0500, Steve wrote:
 Craig White craigwh...@azapple.com wrote: 

On Wed, 2009-01-14 at 16:23 +, Steve wrote:
If I let HAL  friends automagically mount my Windows partition mount reports this: 
 
# mount 
... 
/dev/sdb1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) 
 
The problem is that I want this partition mounted on /mnt/c_drive not 
/media/disk so I tried to add a line to /etc/fstab as follows: 
 
/dev/sdb1/mnt/c_drive   fuserw,nosuid,nodev,allow_other,blksize=4096
0 0 
 
(I started with a type of fuseblk instead of fuse but that didn't work at all 
and note that fuse is not documented in the mount man page) 
 
but then as root 
# mount /dev/sdb1 
/bin/sh: /dev/sdb1: Permission denied 
 
# ls -l /dev/sdb1 
brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1 
 
It's not a selinux problem because I'm running in permissive mode: 
# sestatus 
SELinux status: enabled 
SELinuxfs mount:/selinux 
Current mode:   permissive 
Mode from config file:  permissive 
Policy version: 23 
Policy from config file:targeted 
 
This is on an F8 system and I'm trying to get my backup to work so I can upgrade 
to F9. 
 
What am I doing wrong here? 


perhaps you are just trying to use too much muscle

Perhaps I am but personally I don't consider editing /etc/fstab to be heavy 
lifting.


why not just let it mount like it does and use a bind mount elsewhere...

mount --bind /media/disk /mnt/c_drive

I've no doubt that this will work but there HAS to be a simple way to mount a 
partition where I want directly. It juts seems so basic.


The problem you have is that you are starting with a swimming upstream
premise.

USB storage is considered 'removable storage' and thus is typically
handled by udev as user - which sort of makes sense if you stop to
consider it. The 'user' can mount/unmount removable storage devices at
any time.

/mnt was never intended to be for anything but permanently mounted
filesystems, i.e. not removable - no user action required or reasonably
permitted.

Now if this 'windows filesystem' (and you don't specify what kind it
is), is to be mounted by root at boot and remain mounted without any
user interaction at all, then by all means add it to /etc/fstab as vfat
(if it's vfat) or ntfs-3g (if it's ntfs and recognize that the ntfs-3g
automatically uses the fuse system for you).

Indeed it is a permanently mounted drive (internal IDE) and it has been mounted 
on /mnt since before /media became popular.

I'll try changing the type from fuse to ntfs tonight and see what that does. The error 
message of permission denied leads me to think that this will not solve the 
problem but hey, I've been wrong before...1982 I think it was... ;-D

I have to say though that I am really suprised that nobody on this list can give a simple 
answer to the seemingly simple question of how do I change the mount point of a 
hard drive.


Say what? Linux didn't have the ability to read/write to ntfs
filesystems before udev so there's something wrong with your premise.


Not true.  The ntfs module could be compiled with write abilities in
RH9.  It wasn't _reliable_ but it was there, and it didn't use udev.
udev really doesn't have anything to do with filesystems other than
potentially triggering a mount command.
--
- Rick Stevens, Systems Engineer  ri...@nerd.com -
- AIM/Skype: therps2ICQ: 22643734Yahoo: origrps2 -
--
-   If it's stupid and it works...it ain't stupid!   -
--

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-15 Thread Craig White
On Thu, 2009-01-15 at 09:18 -0800, Rick Stevens wrote:
 Craig White wrote:
  On Thu, 2009-01-15 at 14:33 +, Steve wrote:
 
  I'll try changing the type from fuse to ntfs tonight and see what that 
  does. The error message of permission denied leads me to think that this 
  will not solve the problem but hey, I've been wrong before...1982 I think 
  it was... ;-D
 
  I have to say though that I am really suprised that nobody on this list 
  can give a simple answer to the seemingly simple question of how do I 
  change the mount point of a hard drive.
  
  Say what? Linux didn't have the ability to read/write to ntfs
  filesystems before udev so there's something wrong with your premise.
 
 Not true.  The ntfs module could be compiled with write abilities in
 RH9.  It wasn't _reliable_ but it was there, and it didn't use udev.
 udev really doesn't have anything to do with filesystems other than
 potentially triggering a mount command.

you're right...the ability to mount ntfs r/w was indeed available way
back but the admonitions were clear that by doing so would likely damage
the filesystem. That sort of made a non-option.

I agree with the OP that it probably should mount an internal IDE drive
somewhere other than /media but I suspect that he originally mounted it
as a user and that's where it appears.

The man pages for ntfs-3g and if needed, http://ntfs-3g.org/support.html
should be all he needs to get it to mount where his heart desires.

Craig

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-15 Thread Aldo Foot
On Thu, Jan 15, 2009 at 9:46 AM, Craig White craigwh...@azapple.com wrote:
 Not true.  The ntfs module could be compiled with write abilities in
 RH9.  It wasn't _reliable_ but it was there, and it didn't use udev.
 udev really doesn't have anything to do with filesystems other than
 potentially triggering a mount command.
 
 you're right...the ability to mount ntfs r/w was indeed available way
 back but the admonitions were clear that by doing so would likely damage
 the filesystem. That sort of made a non-option.

 I agree with the OP that it probably should mount an internal IDE drive
 somewhere other than /media but I suspect that he originally mounted it
 as a user and that's where it appears.

 The man pages for ntfs-3g and if needed, http://ntfs-3g.org/support.html
 should be all he needs to get it to mount where his heart desires.

 Craig

My understanding is that in /media the OS expects to find removable media
such as usb drives. The /mnt mount point is for nfs and local filesystems.
Those mount points are sort of designated places for specific filesystems.

Please shed some light if I'm wrong.
~af

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-15 Thread Tim
On Thu, 2009-01-15 at 12:27 -0800, Aldo Foot wrote:
 My understanding is that in /media the OS expects to find removable
 media such as usb drives. The /mnt mount point is for nfs and local
 filesystems. Those mount points are sort of designated places for
 specific filesystems.

More like, /media is used by one of the automounting systems.  It
doesn't look in /media, and finding something in it mounts it.  It puts
things in it, when the hardware is noticed.

/mnt was traditionally for mounting something onto it.  i.e. One thing
mounted on /mnt, rather than things mounted on subdirectories in it.
However, since the automounters don't look in it, it's safe to use for
personal customisation in (almost) whatever way you want to.  I disclaim
that, slightly, since some people will do daft things.

You can also create other mount points directly off the root.  And since
the automounter won't be playing with them, you won't have problems with
it.

-- 
[...@localhost ~]$ uname -r
2.6.27.9-73.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.



-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


mount question

2009-01-14 Thread Steve
If I let HAL  friends automagically mount my Windows partition mount reports 
this: 
 
# mount 
... 
/dev/sdb1 on /media/disk type fuseblk 
(rw,nosuid,nodev,allow_other,blksize=4096) 
 
The problem is that I want this partition mounted on /mnt/c_drive not 
/media/disk so I tried to add a line to /etc/fstab as follows: 
 
/dev/sdb1/mnt/c_drive   fuse
rw,nosuid,nodev,allow_other,blksize=4096
0 0 
 
(I started with a type of fuseblk instead of fuse but that didn't work at all 
and note that fuse is not documented in the mount man page) 
 
but then as root 
# mount /dev/sdb1 
/bin/sh: /dev/sdb1: Permission denied 
 
# ls -l /dev/sdb1 
brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1 
 
It's not a selinux problem because I'm running in permissive mode: 
# sestatus 
SELinux status: enabled 
SELinuxfs mount:/selinux 
Current mode:   permissive 
Mode from config file:  permissive 
Policy version: 23 
Policy from config file:targeted 
 
This is on an F8 system and I'm trying to get my backup to work so I can 
upgrade 
to F9. 
 
What am I doing wrong here? 
 
Thanks, 
Steve 
 

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-14 Thread Craig White
On Wed, 2009-01-14 at 16:23 +, Steve wrote:
 If I let HAL  friends automagically mount my Windows partition mount reports 
 this: 
  
 # mount 
 ... 
 /dev/sdb1 on /media/disk type fuseblk 
 (rw,nosuid,nodev,allow_other,blksize=4096) 
  
 The problem is that I want this partition mounted on /mnt/c_drive not 
 /media/disk so I tried to add a line to /etc/fstab as follows: 
  
 /dev/sdb1/mnt/c_drive   fuse
 rw,nosuid,nodev,allow_other,blksize=4096
 0 0 
  
 (I started with a type of fuseblk instead of fuse but that didn't work at all 
 and note that fuse is not documented in the mount man page) 
  
 but then as root 
 # mount /dev/sdb1 
 /bin/sh: /dev/sdb1: Permission denied 
  
 # ls -l /dev/sdb1 
 brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1 
  
 It's not a selinux problem because I'm running in permissive mode: 
 # sestatus 
 SELinux status: enabled 
 SELinuxfs mount:/selinux 
 Current mode:   permissive 
 Mode from config file:  permissive 
 Policy version: 23 
 Policy from config file:targeted 
  
 This is on an F8 system and I'm trying to get my backup to work so I can 
 upgrade 
 to F9. 
  
 What am I doing wrong here? 

perhaps you are just trying to use too much muscle

why not just let it mount like it does and use a bind mount elsewhere...

mount --bind /media/disk /mnt/c_drive

Craig

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-14 Thread Fennix
On Thu, Jan 15, 2009 at 12:36 AM, Craig White craigwh...@azapple.comwrote:

 On Wed, 2009-01-14 at 16:23 +, Steve wrote:
  If I let HAL  friends automagically mount my Windows partition mount
 reports this:
 
  # mount
  ...
  /dev/sdb1 on /media/disk type fuseblk
 (rw,nosuid,nodev,allow_other,blksize=4096)
 
  The problem is that I want this partition mounted on /mnt/c_drive not
  /media/disk so I tried to add a line to /etc/fstab as follows:
 
  /dev/sdb1/mnt/c_drive   fuse
  rw,nosuid,nodev,allow_other,blksize=4096
  0 0
 
  (I started with a type of fuseblk instead of fuse but that didn't work at
 all
  and note that fuse is not documented in the mount man page)
 
  but then as root
  # mount /dev/sdb1
  /bin/sh: /dev/sdb1: Permission denied
 
  # ls -l /dev/sdb1
  brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1
 
  It's not a selinux problem because I'm running in permissive mode:
  # sestatus
  SELinux status: enabled
  SELinuxfs mount:/selinux
  Current mode:   permissive
  Mode from config file:  permissive
  Policy version: 23
  Policy from config file:targeted
 
  This is on an F8 system and I'm trying to get my backup to work so I can
 upgrade
  to F9.
 
  What am I doing wrong here?
 
 perhaps you are just trying to use too much muscle

 why not just let it mount like it does and use a bind mount elsewhere...

 mount --bind /media/disk /mnt/c_drive

 Craig

 --
 fedora-list mailing list
 fedora-list@redhat.com
 To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 Guidelines:
 http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Hi Steve,
I think that this issue has been discussed in prior releases of
 Fedorayou can scan the archives for more detailed information.  If my
memory serves me correctly, I think that the initial part of fstab for
static devices is preserved and you should put your entries there.  The
non-static devices are added/appended to the end of fstab and upon reboot
and any entries added to that portion will be flushed.
When mounting windows partitions in prior installs of Fedora I would put
them immediately after the logvol entries and thereafter had no problems.
 This should work for you with FC8.  I hope that this is of some assistance
to you.  Regarding fuse partitions I am sorry that I have no experience to
offer to you in this area.
Fennix
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: mount question

2009-01-14 Thread Steve

 Fennix cn.ste...@gmail.com wrote: 
 On Thu, Jan 15, 2009 at 12:36 AM, Craig White craigwh...@azapple.comwrote:
 
  On Wed, 2009-01-14 at 16:23 +, Steve wrote:
   If I let HAL  friends automagically mount my Windows partition mount
  reports this:
  
   # mount
   ...
   /dev/sdb1 on /media/disk type fuseblk
  (rw,nosuid,nodev,allow_other,blksize=4096)
  
   The problem is that I want this partition mounted on /mnt/c_drive not
   /media/disk so I tried to add a line to /etc/fstab as follows:
  
   /dev/sdb1/mnt/c_drive   fuse
   rw,nosuid,nodev,allow_other,blksize=4096
   0 0
  
   (I started with a type of fuseblk instead of fuse but that didn't work at
  all
   and note that fuse is not documented in the mount man page)
  
   but then as root
   # mount /dev/sdb1
   /bin/sh: /dev/sdb1: Permission denied
  
   # ls -l /dev/sdb1
   brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1
  
   It's not a selinux problem because I'm running in permissive mode:
   # sestatus
   SELinux status: enabled
   SELinuxfs mount:/selinux
   Current mode:   permissive
   Mode from config file:  permissive
   Policy version: 23
   Policy from config file:targeted
  
   This is on an F8 system and I'm trying to get my backup to work so I can
  upgrade
   to F9.
  
   What am I doing wrong here?
  
  perhaps you are just trying to use too much muscle
 
  why not just let it mount like it does and use a bind mount elsewhere...
 
  mount --bind /media/disk /mnt/c_drive
 
  Craig
 
  --
  fedora-list mailing list
  fedora-list@redhat.com
  To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
  Guidelines:
  http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
 
 Hi Steve,
 I think that this issue has been discussed in prior releases of
  Fedorayou can scan the archives for more detailed information.  If my
 memory serves me correctly, I think that the initial part of fstab for
 static devices is preserved and you should put your entries there.  The
 non-static devices are added/appended to the end of fstab and upon reboot
 and any entries added to that portion will be flushed.
 When mounting windows partitions in prior installs of Fedora I would put
 them immediately after the logvol entries and thereafter had no problems.
  This should work for you with FC8.  I hope that this is of some assistance
 to you.  Regarding fuse partitions I am sorry that I have no experience to
 offer to you in this area.
 Fennix

Do you have any keywords beside fstab and mount that I can search for? There 
are too may hits in the archive on either of these words.

I don't see any mention of this kind of different behaviour or split in fstab 
in any od the fstab documentation. Is it documented anywhere ele?

I'll try your suggestion and move the line higher up in fstab this evening.

Thanks,
Steve

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-14 Thread Steve

 Craig White craigwh...@azapple.com wrote: 
 On Wed, 2009-01-14 at 16:23 +, Steve wrote:
  If I let HAL  friends automagically mount my Windows partition mount 
  reports this: 
   
  # mount 
  ... 
  /dev/sdb1 on /media/disk type fuseblk 
  (rw,nosuid,nodev,allow_other,blksize=4096) 
   
  The problem is that I want this partition mounted on /mnt/c_drive not 
  /media/disk so I tried to add a line to /etc/fstab as follows: 
   
  /dev/sdb1/mnt/c_drive   fuse
  rw,nosuid,nodev,allow_other,blksize=4096
  0 0 
   
  (I started with a type of fuseblk instead of fuse but that didn't work at 
  all 
  and note that fuse is not documented in the mount man page) 
   
  but then as root 
  # mount /dev/sdb1 
  /bin/sh: /dev/sdb1: Permission denied 
   
  # ls -l /dev/sdb1 
  brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1 
   
  It's not a selinux problem because I'm running in permissive mode: 
  # sestatus 
  SELinux status: enabled 
  SELinuxfs mount:/selinux 
  Current mode:   permissive 
  Mode from config file:  permissive 
  Policy version: 23 
  Policy from config file:targeted 
   
  This is on an F8 system and I'm trying to get my backup to work so I can 
  upgrade 
  to F9. 
   
  What am I doing wrong here? 
 
 perhaps you are just trying to use too much muscle

Perhaps I am but personally I don't consider editing /etc/fstab to be heavy 
lifting.

 why not just let it mount like it does and use a bind mount elsewhere...
 
 mount --bind /media/disk /mnt/c_drive

I've no doubt that this will work but there HAS to be a simple way to mount a 
partition where I want directly. It juts seems so basic.

Steve.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: mount question

2009-01-14 Thread Craig White
On Wed, 2009-01-14 at 14:31 -0500, Steve wrote:
  Craig White craigwh...@azapple.com wrote: 
  On Wed, 2009-01-14 at 16:23 +, Steve wrote:
   If I let HAL  friends automagically mount my Windows partition mount 
   reports this: 

   # mount 
   ... 
   /dev/sdb1 on /media/disk type fuseblk 
   (rw,nosuid,nodev,allow_other,blksize=4096) 

   The problem is that I want this partition mounted on /mnt/c_drive not 
   /media/disk so I tried to add a line to /etc/fstab as follows: 

   /dev/sdb1/mnt/c_drive   fuse
   rw,nosuid,nodev,allow_other,blksize=4096
   0 0 

   (I started with a type of fuseblk instead of fuse but that didn't work at 
   all 
   and note that fuse is not documented in the mount man page) 

   but then as root 
   # mount /dev/sdb1 
   /bin/sh: /dev/sdb1: Permission denied 

   # ls -l /dev/sdb1 
   brw-r- 1 root disk 8, 17 2009-01-12 13:24 /dev/sdb1 

   It's not a selinux problem because I'm running in permissive mode: 
   # sestatus 
   SELinux status: enabled 
   SELinuxfs mount:/selinux 
   Current mode:   permissive 
   Mode from config file:  permissive 
   Policy version: 23 
   Policy from config file:targeted 

   This is on an F8 system and I'm trying to get my backup to work so I can 
   upgrade 
   to F9. 

   What am I doing wrong here? 
  
  perhaps you are just trying to use too much muscle
 
 Perhaps I am but personally I don't consider editing /etc/fstab to be heavy 
 lifting.
 
  why not just let it mount like it does and use a bind mount elsewhere...
  
  mount --bind /media/disk /mnt/c_drive
 
 I've no doubt that this will work but there HAS to be a simple way to mount a 
 partition where I want directly. It juts seems so basic.

The problem you have is that you are starting with a swimming upstream
premise.

USB storage is considered 'removable storage' and thus is typically
handled by udev as user - which sort of makes sense if you stop to
consider it. The 'user' can mount/unmount removable storage devices at
any time.

/mnt was never intended to be for anything but permanently mounted
filesystems, i.e. not removable - no user action required or reasonably
permitted.

Now if this 'windows filesystem' (and you don't specify what kind it
is), is to be mounted by root at boot and remain mounted without any
user interaction at all, then by all means add it to /etc/fstab as vfat
(if it's vfat) or ntfs-3g (if it's ntfs and recognize that the ntfs-3g
automatically uses the fuse system for you).

man ntfs-3g

But really, it's much simpler to just bind mount...

Craig

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines