Re: Can an ISO file be mounted from /etc/fstab at boot?

2013-03-18 Thread Ruben de Groot
On Fri, Mar 15, 2013 at 04:04:23PM -0400, Lowell Gilbert typed:
 Oscar Hodgson oscar.hodg...@gmail.com writes:
 
  I'm pretty sure the answer is no, just write a local rc script to do
  that, but thought I'd check.
 
  Can't see any hint of that capability in the handbook or fstab(5).
 
  Really just looking for a single point of management for file systems 
 
 I don't see a way offhand. You need to do the mdconfig before you can
 mount, and I don't think that can be done inside of fstab. 
 
 I think that adding such a capability to mount(8) as a program option
 would be a fairly minor hack.

If it was a standard (UFS) filesystem image (not ISO9600) it would be possible 
to mount from fstab with something like this:

/dev/md0 /data/mfs mfs rw,-PF/path/to/some.img,async 0 0

Ruben

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Can an ISO file be mounted from /etc/fstab at boot?

2013-03-15 Thread Oscar Hodgson
I'm pretty sure the answer is no, just write a local rc script to do
that, but thought I'd check.

Can't see any hint of that capability in the handbook or fstab(5).

Really just looking for a single point of management for file systems 

Thanks in advance.

Oscar
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can an ISO file be mounted from /etc/fstab at boot?

2013-03-15 Thread Lowell Gilbert
Oscar Hodgson oscar.hodg...@gmail.com writes:

 I'm pretty sure the answer is no, just write a local rc script to do
 that, but thought I'd check.

 Can't see any hint of that capability in the handbook or fstab(5).

 Really just looking for a single point of management for file systems 

I don't see a way offhand. You need to do the mdconfig before you can
mount, and I don't think that can be done inside of fstab. 

I think that adding such a capability to mount(8) as a program option
would be a fairly minor hack.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to list /etc/fstab in new BFSD label?

2012-10-22 Thread Polytropon
On Sun, 21 Oct 2012 17:00:13 -1000, Al Plant wrote:
 Aloha,
 
 I cant find any How TO on writing the hardware devices into /etc/fstab 
 to mount and find how the DVD and CD players get connected.

Open the file in your favourite editor and add the lines according
to your needs, if this was the question. :-)



 (This happens to be with a test box FreeBSD 10.* which has worked fine 
 other than that.) The BSD install I understand is also for FreeBSD 9.* 
 as well.
 
 fd0, /floppy,  acd0 /cdrom, acd1 DVD, do not come up although they are 
 in /dmesg list.

I thought FreeBSD would have removed the acd devices in favour of
the SCSI-backed cd device drivers?

If dmesg lists the devices as recognized, the required device files
should be present in /dev. Ye olde sysinstall did add them to your
first /etc/fstab, but you are free to add whatever you like manually.
For the purpose of installation, they shouldn't be needed. And I have
to admit that I've never actually seen them in one of the dialogs
in the installer - only the hard disk related things are in there.
The automatically generated /etc/fstab at least had them listed
(for sysinstall, not tested for bsdinstall).

However, modern HAL + DBUS combinations prefer not to have any
media devices listed in /etc/fstab, because they're doing the stuff
required on their own.







-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How to list /etc/fstab in new BFSD label?

2012-10-21 Thread Al Plant

Aloha,

I cant find any How TO on writing the hardware devices into /etc/fstab 
to mount and find how the DVD and CD players get connected.


(This happens to be with a test box FreeBSD 10.* which has worked fine 
other than that.) The BSD install I understand is also for FreeBSD 9.* 
as well.


fd0, /floppy,  acd0 /cdrom, acd1 DVD, do not come up although they are 
in /dmesg list.


Any help would be appreciated.

~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   email: n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Auto-mounting sshfs from /etc/fstab

2012-09-06 Thread OriS
Hello,

Well, no I haven't -- I have tried only the fstab route which does serve
the purpose for me.

Thanks nonetheless :)

OriS

On Wednesday, September 5, 2012, andrew clarke wrote:

 On Wed 2012-09-05 19:38:54 UTC+0200, OriS (
 site.free...@orientalsensation.com javascript:;) wrote:

  I've been trying to find a page on the Internet where an example is
 posted
  explaining how to mount sshfs from /etc/fstab, but I can't find any!

 Have you tried running sshfs from cron?  eg. run crontab -e as a
 regular user and add:

 @reboot  /usr/local/bin/sshfs remotehost: $HOME/mnt/remote

 Note: Untested.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Auto-mounting sshfs from /etc/fstab

2012-09-05 Thread OriS
Hello all,

I've been trying to find a page on the Internet where an example is posted
explaining how to mount sshfs from /etc/fstab, but I can't find any!

I'm on 9.1-PR amd64 and I've installed Fuse and sshfs, I have enabled Fuse
in rc.conf and I can see /dev/fuse. Furthermore, using sshfs from the
command line, I am even able to mount the remote file system.

I can manually mount the remote file system using:

*sshfs user@host:/ /mnt*

Then, I do 'mount -p' and get:

*/dev/fuse0  /mnt  fusefs.sshfs  rw,sync  0  0*

This isn't sufficient for mounting/unmounting from fstab since it's missing
the authentication details I've used in sshfs.

So.. the question is: How to add the authentication details to /etc/fstab
so that I can mount the sshfs just by using:

*mount /mnt*

Thanks in advance, and kindly Cc me on your replies!

/OriS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Auto-mounting sshfs from /etc/fstab

2012-09-05 Thread andrew clarke
On Wed 2012-09-05 19:38:54 UTC+0200, OriS (site.free...@orientalsensation.com) 
wrote:

 I've been trying to find a page on the Internet where an example is posted
 explaining how to mount sshfs from /etc/fstab, but I can't find any!

Have you tried running sshfs from cron?  eg. run crontab -e as a
regular user and add:

@reboot  /usr/local/bin/sshfs remotehost: $HOME/mnt/remote

Note: Untested.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Auto-mounting sshfs from /etc/fstab

2012-09-05 Thread Polytropon
On Thu, 6 Sep 2012 07:43:38 +1000, andrew clarke wrote:
 On Wed 2012-09-05 19:38:54 UTC+0200, OriS 
 (site.free...@orientalsensation.com) wrote:
 
  I've been trying to find a page on the Internet where an example is posted
  explaining how to mount sshfs from /etc/fstab, but I can't find any!
 
 Have you tried running sshfs from cron?  eg. run crontab -e as a
 regular user and add:
 
 @reboot  /usr/local/bin/sshfs remotehost: $HOME/mnt/remote
 
 Note: Untested.

Also untested, but possible, if you want it to happen
system-wide: Add a section to /etc/rc.local:

echo -n  sshfs
/usr/local/bin/sshfs your parameters

And to /etc/rc.shutdown.local:

echo -n  sshfs
umount where it was mounted to

Note that you can add additional configuration tweaks by
using the rc.conf mechanism, and you can also add tests
to increase reliability.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Auto-mounting sshfs from /etc/fstab

2012-09-05 Thread Elias Chrysocheris
In the past I wanted to do so in my system. I had one server called pluto and 
I wanted to sshfs one directory from my laptop. The 
first thing I had to do was to make passwordless ssh from my laptop to the 
server (there are a lot of pages in the internet to explain 
how to do this, so I will not explain how-to...)

When passwordless ssh login is possible then a line in your fstab like the 
following does the job:

sshfs#your_username_here@pluto:/Common/   
/Network_Folders/Pluto/ fuse
BatchMode=yes,reconnect,allow_other,users,gid=users,umask=002  0 0

In this way the system automounts the directory /Common that exists in pluto 
in my local directory /Network_Folders/Pluto
Of cource pluto must have a specific ip (or available through naming service 
e.t.c.). In my case it has a static IP so I had its 
declaration in /etc/hosts

Hope this helped you

Elias
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 8.2-RELEASE Install Failure: Unable to create a new /etc/fstab

2011-10-27 Thread Rick Miller
Just following up...I resolved the issue by copying /etc/* to /stand/
in the mfsroot.

On Tue, Oct 25, 2011 at 12:54 PM, Rick Miller vmil...@hostileadmin.com wrote:
 Hi All,

 I am Installing 8.2-RELEASE via PXE and receive an error stating that
 sysinstall was unable to create new /etc/fstab.  Everything appears to
 function correctly, in that, the system TFTP's the pxeboot and mfsroot
 files as needed.  However, When I switch to the holographic shell and
 poke around a little, I can see that there is no /etc, despite it's
 existence in the mfsroot.gz.

 I must be missing something and am hoping that someone might be able
 to point in the right direction.

 --
 Take care
 Rick Miller




-- 
Take care
Rick Miller
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD 8.2-RELEASE Install Failure: Unable to create a new /etc/fstab

2011-10-25 Thread Rick Miller
Hi All,

I am Installing 8.2-RELEASE via PXE and receive an error stating that
sysinstall was unable to create new /etc/fstab.  Everything appears to
function correctly, in that, the system TFTP's the pxeboot and mfsroot
files as needed.  However, When I switch to the holographic shell and
poke around a little, I can see that there is no /etc, despite it's
existence in the mfsroot.gz.

I must be missing something and am hoping that someone might be able
to point in the right direction.

-- 
Take care
Rick Miller
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-08 Thread Lowell Gilbert
Henry Olyer henry.ol...@gmail.com writes:

 I had an old FBSD 7.2 CD. good enough for this I thought.

 I booted from that but now I need to mount the file systems on my hard
 drive.  How do I do that?

 I agree,, once I get the /etc file system mounted I can edit the file.

 Okay, next..

 How do I do an fsck on the /usr file system when coming up?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RCCONF-READONLY
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-07 Thread Chris Rees
On 7 May 2011 04:31, Yuri Pankov yuri.pan...@gmail.com wrote:

 On Fri, May 06, 2011 at 10:06:31PM -0400, Henry Olyer wrote:
  Woe is me.
 
  First, I simply messed up, happens to us all from time to time.  I lost
  power on an laptop running 8.2.
 
  Restarted it but for some reason the fsck didn't run and I lost some
/usr
  files.
 
  I tried to do an fsck manually but because it's mounted I got nowhere.
 So I
  put a comment (#) in front of the /usr line for the /etc/fstab file.
 
  Now, I can't boot.
 
  I need what's on my disk -- of course!

 Boot to single user mode (4 in the boot menu), remount / read-write -
 mount -u -o rw /, edit /etc/fstab (you'll probably need to mount /usr
 manually if what's in /rescue doesn't work for you), reboot.

 You can run fsck from single user mode, as well.


 HTH,
 Yuri

Easiest way in single user if vi complains about termcap and you don't
understand ed...

As Yuri suggested:

# fsck /
# mount -ie /

Then you can just use sed in place;

# sed -i.bak -e 's,#\(.*/usr\),\1,' /etc/fstab

# fsck /usr
# reboot

Hope that helps!

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-06 Thread Henry Olyer
Woe is me.

First, I simply messed up, happens to us all from time to time.  I lost
power on an laptop running 8.2.

Restarted it but for some reason the fsck didn't run and I lost some /usr
files.

I tried to do an fsck manually but because it's mounted I got nowhere.  So I
put a comment (#) in front of the /usr line for the /etc/fstab file.

Now, I can't boot.

I need what's on my disk -- of course!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-06 Thread Ryan Coleman
Boot to a boot disk.. anything... CD, DVD, USB

Load up vi - you can probably do this from a live linux distro.

Unedit the line.

Save.

Quit.

Reboot.

You're golden.


On May 6, 2011, at 9:06 PM, Henry Olyer wrote:

 Woe is me.
 
 First, I simply messed up, happens to us all from time to time.  I lost
 power on an laptop running 8.2.
 
 Restarted it but for some reason the fsck didn't run and I lost some /usr
 files.
 
 I tried to do an fsck manually but because it's mounted I got nowhere.  So I
 put a comment (#) in front of the /usr line for the /etc/fstab file.
 
 Now, I can't boot.
 
 I need what's on my disk -- of course!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-06 Thread Henry Olyer
I had an old FBSD 7.2 CD. good enough for this I thought.

I booted from that but now I need to mount the file systems on my hard
drive.  How do I do that?

I agree,, once I get the /etc file system mounted I can edit the file.

Okay, next..

How do I do an fsck on the /usr file system when coming up?




On Fri, May 6, 2011 at 10:32 PM, Ryan Coleman edi...@d3photography.comwrote:

 Boot to a boot disk.. anything... CD, DVD, USB

 Load up vi - you can probably do this from a live linux distro.

 Unedit the line.

 Save.

 Quit.

 Reboot.

 You're golden.


 On May 6, 2011, at 9:06 PM, Henry Olyer wrote:

  Woe is me.
 
  First, I simply messed up, happens to us all from time to time.  I lost
  power on an laptop running 8.2.
 
  Restarted it but for some reason the fsck didn't run and I lost some /usr
  files.
 
  I tried to do an fsck manually but because it's mounted I got nowhere.
  So I
  put a comment (#) in front of the /usr line for the /etc/fstab file.
 
  Now, I can't boot.
 
  I need what's on my disk -- of course!
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-06 Thread Yuri Pankov
On Fri, May 06, 2011 at 10:06:31PM -0400, Henry Olyer wrote:
 Woe is me.
 
 First, I simply messed up, happens to us all from time to time.  I lost
 power on an laptop running 8.2.
 
 Restarted it but for some reason the fsck didn't run and I lost some /usr
 files.
 
 I tried to do an fsck manually but because it's mounted I got nowhere.  So I
 put a comment (#) in front of the /usr line for the /etc/fstab file.
 
 Now, I can't boot.
 
 I need what's on my disk -- of course!

Boot to single user mode (4 in the boot menu), remount / read-write -
mount -u -o rw /, edit /etc/fstab (you'll probably need to mount /usr
manually if what's in /rescue doesn't work for you), reboot.

You can run fsck from single user mode, as well.


HTH,
Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


/etc/fstab + embedded spaces

2009-11-03 Thread carmel_ny
I was attempting to create this entry in the /etc/fstab file. It is to
a WinXP machine.

//u...@bios/My Documents /laptop smbfs rw,noauto  0  0

It fails because 'fstab' does not allow embedded spaces in device
names, not does it allow enclosing the name in quotes.

I did some Googling and discovered that I am not the only one annoyed
by this behavior. I discovered this patch that had been submitted awhile
ago.

http://lists.freebsd.org/pipermail/freebsd-bugs/2007-October/026469.html

Changing the share name is not really an option. Is there some way of
making this work in 'fstab'? I can use the name including spaces in
'mount_smbfs' so that is how I am currently mounting the share. It just
seems strange that 'fstab' by not accepting the use of quoting is not in
step with how FreeBSD usually operates.

-- 

Carmel
carmel...@hotmail.com

|===
|===
|===
|===
|

It is much easier to suggest solutions
when you know nothing about the problem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /etc/fstab + embedded spaces

2009-11-03 Thread Michael Powell
carmel_ny wrote:

 I was attempting to create this entry in the /etc/fstab file. It is to
 a WinXP machine.
 
 //u...@bios/My Documents /laptop smbfs rw,noauto  0  0
 
 It fails because 'fstab' does not allow embedded spaces in device
 names, not does it allow enclosing the name in quotes.
 
 I did some Googling and discovered that I am not the only one annoyed
 by this behavior. I discovered this patch that had been submitted awhile
 ago.
 
 http://lists.freebsd.org/pipermail/freebsd-bugs/2007-October/026469.html
 
 Changing the share name is not really an option. Is there some way of
 making this work in 'fstab'? I can use the name including spaces in
 'mount_smbfs' so that is how I am currently mounting the share. It just
 seems strange that 'fstab' by not accepting the use of quoting is not in
 step with how FreeBSD usually operates.
 

Don't know if this works for fstab, but the normal way to escape spaces is 
with a \, like this:

//u...@bios/My\ Documents /laptop smbfs rw,noauto  0  0

May not work in fstab but you can try it and see.

-Mike


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /etc/fstab + embedded spaces

2009-11-03 Thread andrew clarke
On Tue 2009-11-03 06:57:12 UTC-0500, carmel_ny (carmel...@hotmail.com) wrote:

 I was attempting to create this entry in the /etc/fstab file. It is to
 a WinXP machine.
 
 //u...@bios/My Documents /laptop smbfs rw,noauto  0  0
 
 It fails because 'fstab' does not allow embedded spaces in device
 names, not does it allow enclosing the name in quotes.

A workaround may be to run mount_smbfs from /etc/crontab (or perhaps
the root user's crontab), eg.

@reboot /usr/sbin/mount_smbfs -N //u...@bios/My Documents /laptop

or similar.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /etc/fstab + embedded spaces

2009-11-03 Thread Jerry
On Tue, 03 Nov 2009 12:13:24 -0500
Michael Powell nightre...@hotmail.com replied:

carmel_ny wrote:

 I was attempting to create this entry in the /etc/fstab file. It is
 to a WinXP machine.
 
 //u...@bios/My Documents /laptop smbfs rw,noauto  0  0
 
 It fails because 'fstab' does not allow embedded spaces in device
 names, not does it allow enclosing the name in quotes.
 
 I did some Googling and discovered that I am not the only one annoyed
 by this behavior. I discovered this patch that had been submitted
 awhile ago.
 
 http://lists.freebsd.org/pipermail/freebsd-bugs/2007-October/026469.html
 
 Changing the share name is not really an option. Is there some way of
 making this work in 'fstab'? I can use the name including spaces in
 'mount_smbfs' so that is how I am currently mounting the share. It
 just seems strange that 'fstab' by not accepting the use of quoting
 is not in step with how FreeBSD usually operates.
 

Don't know if this works for fstab, but the normal way to escape
spaces is with a \, like this:

//u...@bios/My\ Documents /laptop smbfs rw,noauto  0  0

May not work in fstab but you can try it and see.

Thanks for the suggestion. Unfortunately, it doesn't work either.

-- 
Jerry
ges...@yahoo.com

|===
|===
|===
|===
|

The most winning woman I ever knew was hanged for poisoning three little
children for their insurance money.

Sherlock Holmes

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /etc/fstab + embedded spaces

2009-11-03 Thread andrew clarke
On Tue 2009-11-03 14:07:37 UTC-0600, Adam Vande More (amvandem...@gmail.com) 
wrote:

windows path's have alternate eg c:\Test~1

Yes, files and paths may all have an MS-DOS 8.3 equivalent (I think
this option can be disabled in NTFS), however Windows SMB shares do
not.

\\host\My Documents is valid, but not \\host\MYDOCU~1.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /etc/fstab + embedded spaces

2009-11-03 Thread Adam Vande More
On Tue, Nov 3, 2009 at 2:20 PM, andrew clarke m...@ozzmosis.com wrote:

 On Tue 2009-11-03 14:07:37 UTC-0600, Adam Vande More (
 amvandem...@gmail.com) wrote:

 windows path's have alternate eg c:\Test~1

 Yes, files and paths may all have an MS-DOS 8.3 equivalent (I think
 this option can be disabled in NTFS), however Windows SMB shares do
 not.

 \\host\My Documents is valid, but not \\host\MYDOCU~1.


google also say use \040 in place of space


-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /etc/fstab + embedded spaces

2009-11-03 Thread Adam Vande More
On Tue, Nov 3, 2009 at 2:02 PM, andrew clarke m...@ozzmosis.com wrote:

 On Tue 2009-11-03 06:57:12 UTC-0500, carmel_ny (carmel...@hotmail.com)
 wrote:

  I was attempting to create this entry in the /etc/fstab file. It is to
  a WinXP machine.
 
  //u...@bios/My Documents /laptop smbfs rw,noauto  0  0
 
  It fails because 'fstab' does not allow embedded spaces in device
  names, not does it allow enclosing the name in quotes.

 A workaround may be to run mount_smbfs from /etc/crontab (or perhaps
 the root user's crontab), eg.

 @reboot /usr/sbin/mount_smbfs -N //u...@bios/My Documents
 /laptop

 or similar.

 Regards
 Andrew
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


windows path's have alternate eg c:\Test~1


-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


how to pass nfs nolock option in /etc/fstab

2008-03-28 Thread vincenzo romero
Hello all,

I have come across an issue where I attempted to mount my NFSroot FS
with a nolock option in order to support a database application.  In
an attempt to do so, I edited my /etc/fstab as follows:

192.168.17.1:/export/images/00A0D1E35B7E/freebsd7_x64   /
 nfs rw,nolock  0   0

When I attempt to re-mount, I get the following error:
mount -a
mount_nfs: -o lock: option not supported
...

Upon googling folks suggested to use the -L option ... but mention
that this is not possible to pass on to /etc/fstab

My question:  is it possible to mount an NFSroot on FreeBSD and at the
SAME time pass the nolock parameter?

thanks in advance...!

-- 
best,

Vince
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ReiserFS and /etc/fstab: rw or ro?

2007-12-08 Thread Adam J Richardson

Hi all.

I just installed Ubuntu on a second hard drive. (Got fed up waiting for 
things like VMware Player 2.) I've booted into FreeBSD 6.3-PRERELEASE 
and I'm looking at my /etc/fstab.


Is it safe to specify rw for my ReiserFS partitions, or should I stick 
with ro for now? (I have Googled this, but can't find anything recent 
on FBSD and ReiserFS.)


TiA,
Adam J Richardson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ReiserFS and /etc/fstab: rw or ro?

2007-12-08 Thread Lowell Gilbert
Adam J Richardson [EMAIL PROTECTED] writes:

 I just installed Ubuntu on a second hard drive. (Got fed up waiting
 for things like VMware Player 2.) I've booted into FreeBSD
 6.3-PRERELEASE and I'm looking at my /etc/fstab.

 Is it safe to specify rw for my ReiserFS partitions, or should I
 stick with ro for now? (I have Googled this, but can't find anything
 recent on FBSD and ReiserFS.)

Try man mount_reiserfs.  

I'm surprised that didn't come up when you Googled, but you should
have it on your system as well.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/etc/fstab

2007-09-30 Thread Kuselan Sugumaran
Hi,
   
  What is the range of values in 5th and 6th column in /etc/fstab? 
  What is the meaning for each value?
   
  I¡¯ve gone through man pages and lot of books. I couldn¡¯t get the answer. 
Can you help me? Thanks.

   
-
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/fstab

2007-09-30 Thread Martin Tournoij
On Sun 30 Sep 2007 19:09, Kuselan Sugumaran wrote:
 Hi,

   What is the range of values in 5th and 6th column in /etc/fstab? 
   What is the meaning for each value?

   I��ve gone through man pages and lot of books. I couldn��t get the answer. 
 Can you help me? Thanks.
 

0 - Do nothing
1 - dump/fsck first (Used for root filesystem)
2 - dump/fsck this filesystem

See fstab(5) for a longer description.

Regards,
Martin Tournoij
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mounting fusefs via /etc/fstab

2007-06-03 Thread martinko

Hallo,

At the bottom of http://curlftpfs.sourceforge.net/ there's an example 
of using FUSE via /etc/fstab.  It is for Linux.
I wonder whether the same thing can be achieved on FreeBSD somehow as it 
would be very useful.


With regards,

Martin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Re: /etc/fstab error and I can't start the system normally

2006-08-16 Thread micman
I think that the problem was a damaged  system. I have re-installed 
FreeBSD  and now ALL the commands and methods work.


mount -u /
or
mount -o rw /
and I can access to the root directory

I mount /usr and I can use ee  (effectively a nice editor)

ee /etc/fstab (absolute path isn't necessary)

I have tried  Fixit and the result  is the same (here the absolute 
path is NECESSARY).


For a non-experimented user --like me-- cover the bases is the most 
important thing to begin.  I couldn't rescue my old system but now I 
know a little more.


Thank you very much.

micman












___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Re: /etc/fstab error and I can't start the system normally

2006-08-08 Thread micman
  On  Aug  7,  2006,  at  1:26  PM,  micman  wrote:

  Hello.

  PROBLEM
  I  tried  and  configured  FreeBSD  6.1  for  many  days  and  I  mounted  
 my
  FAT  extended  partition  to  exchange  my  files  between  Windows  and  my 

  new  Operating  System.  That  was  OK.  After  I  tried  to  mount
  automatically  at  boot  this  partition  and  I  make  an  error
  (grammatical  error):  I  wrote  “acd0s5”  instead  of  “ad0s5”  in  /etc/  
  fstab.
  Now,  when  I  start  the  system,  I  receive  this  message  at  the  end  
 of
  the  boot  process:
  Can't  open  (No  such  file  or  directory)
  /dev/acd0s5:  UNEXPECTED  INCONSISTENCY;  RUN  fsck_msdosfs  MANUALLY.
  THE  FOLLOWING  FILE  SYSTEM  HAD  AN  UNEXPECTED  INCONSISTENCY:
  msdosfs:  /dev/acd0s5  (/mnt/win)
  Automatic  file  system  check  failed;  help!
  Aug  7  20:08:07  int:  /bin/sh  on  /etc/rc  terminated  abnormally,  going 

  to  single  user  mode
  Enter  full  pathname  of  shell  or  RETURN  for  /bin/sh:

  QUESTIONS
  Can  I  rewrite  the  file  /etc/fstab  in  text  mode?
  If  it's  possible,  how  can  I  do  this?

  I  tried  fsck_manually  and  also  to  boot  by  option  '6'  (Escape  to  
   
  loader)  but  I  was  not  able  to  resolve  the  problem.
  If  someone  can  help  me,  thank  you.
__
  get into a console maybe by booting single user.
  remote root as read/write you may or may not have to
  remount root as write but...

  mount -u /
  ee /etc/fstab

  fix the error hit [esc] cc [esc] a and you should be
  good to go. 

  hope that helps

  -brian

I have tried. Result:

can't exec mount -u / for single user: No such file or directory
and
ee: not found

About ee in the FreeBSD command reference I have tried this:
This is a simpler alternative to 'vi' and is installed as part of the FreeBSD 
base system. However it may not always be available (there
is /rescue/vi for emergencies when /usr is not mounted, but no emergency 'ee').

I have tried 'vi': not found

But in my /rescue 'vi' is listed and I have this message:
no terminal database found
__

  You  can  go  to  single  user  mode  (4)  from  the  boot  menu  and  then  
 mount  -  
  o  rw  /  .  Then  you  can  edit  /etc/fstab.

  Pramod  Venugopal

I have tried. Result:

can't exec mount -o rw / for single user: No such file or directory
___

Thank you for your answers. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Re: /etc/fstab error and I can't start the system normally

2006-08-08 Thread backyard


--- micman [EMAIL PROTECTED] wrote:

   On  Aug  7,  2006,  at  1:26  PM,  micman  wrote:
 
   Hello.
 
   PROBLEM
   I  tried  and  configured  FreeBSD  6.1  for 
 many  days  and  I  mounted  my
   FAT  extended  partition  to  exchange  my  files
  between  Windows  and  my
   new  Operating  System.  That  was  OK.  After  I
  tried  to  mount
   automatically  at  boot  this  partition  and  I 
 make  an  error
   (grammatical  error):  I  wrote  “acd0s5” 
 instead  of  “ad0s5”  in  /etc/  
   fstab.
   Now,  when  I  start  the  system,  I  receive 
 this  message  at  the  end  of
   the  boot  process:
   Can't  open  (No  such  file  or  directory)
   /dev/acd0s5:  UNEXPECTED  INCONSISTENCY;  RUN 
 fsck_msdosfs  MANUALLY.
   THE  FOLLOWING  FILE  SYSTEM  HAD  AN  UNEXPECTED
  INCONSISTENCY:
   msdosfs:  /dev/acd0s5  (/mnt/win)
   Automatic  file  system  check  failed;  help!
   Aug  7  20:08:07  int:  /bin/sh  on  /etc/rc 
 terminated  abnormally,  going
   to  single  user  mode
   Enter  full  pathname  of  shell  or  RETURN  for
  /bin/sh:
 
   QUESTIONS
   Can  I  rewrite  the  file  /etc/fstab  in  text 
 mode?
   If  it's  possible,  how  can  I  do  this?
 
   I  tried  fsck_manually  and  also  to  boot  by 
 option  '6'  (Escape  to
   loader)  but  I  was  not  able  to  resolve 
 the  problem.
   If  someone  can  help  me,  thank  you.
 __
   get into a console maybe by booting single user.
   remote root as read/write you may or may not have
 to
   remount root as write but...
 
   mount -u /
   ee /etc/fstab
 
   fix the error hit [esc] cc [esc] a and you should
 be
   good to go. 
 
   hope that helps
 
   -brian
 
 I have tried. Result:
 
 can't exec mount -u / for single user: No such file
 or directory
 and
 ee: not found
 
 About ee in the FreeBSD command reference I have
 tried this:
 This is a simpler alternative to 'vi' and is
 installed as part of the FreeBSD base system.
 However it may not always be available (there
 is /rescue/vi for emergencies when /usr is not
 mounted, but no emergency 'ee').
 
 I have tried 'vi': not found
 
 But in my /rescue 'vi' is listed and I have this
 message:
 no terminal database found
 __
 
   You  can  go  to  single  user  mode  (4)  from 
 the  boot  menu  and  then  mount  -  
   o  rw  /  .  Then  you  can  edit  /etc/fstab.
 
   Pramod  Venugopal
 
 I have tried. Result:
 
 can't exec mount -o rw / for single user: No such
 file or directory
 ___
 
 Thank you for your answers. 
 

yeah sorry about the ee thing for some reason it is
not in the rescue directory only vi is which will
work, but not my favorite editor. to get ee you would
have to mount /usr and its in /usr/bin if I'm not
mistaken. you might have to use absolute paths to get
programs to run like /usr/bin/ee /etc/fstab or
/rescue/vi /etc/fstab if your gungho about things.

as for the mount error that is odd. did you check the
output of just a plain

mount

if it tells you root is mounted r/w which I think
would be so unless it says readonly then you don't
have to worry about that step. Bur single user mode
always puts root in readonly. I haven't experienced it
puking during boot because of a bad line in fstab
though so I am not certain how that works.

Your best bet is probably to boot from the FreeBSD
install disk, run Fixit shell from the CD/DVD-Rom
option.

then type

/dist/sbin/mount /dev/ad0s(insert your bsd slice \
here)a /mnt

then run ee /mnt/etc/fstab
or
/dist/usr/bin/ee /mnt/etc/fstab

I don't think the absolute paths to everything is
necessary, but I'll give them anyway to cover the
bases.

note if your want to mount that msdosfs for whatever
reason you have to do this
sysctl kern.module_path=/dist/boot/kernel
/dist/sbin/mount_msdosfs /dev/ad0s5 /foobar
I've had to deal with that little problem before. 
the fixit shell does not load all the kernel modules
you might need only a subset, and mount -t msdosfs
doesn't seem to work anytime I try it so that one
REQUIRES the absolute path to work.

good luck

-brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/etc/fstab error and I can't start the system normally

2006-08-07 Thread micman
Hello.

PROBLEM
I tried and configured FreeBSD 6.1 for many days and I mounted my FAT extended 
partition to exchange my files between Windows and my new Operating System. 
That was OK. After I tried to mount automatically at boot this partition and I 
make an error (grammatical error): I wrote “acd0s5” instead of “ad0s5” in 
/etc/fstab. 
Now, when I start the system, I receive this message at the end of the boot 
process:
Can't open (No such file or directory)
/dev/acd0s5: UNEXPECTED INCONSISTENCY; RUN fsck_msdosfs MANUALLY.
THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY:
msdosfs: /dev/acd0s5 (/mnt/win)
Automatic file system check failed; help!
Aug 7 20:08:07 int: /bin/sh on /etc/rc terminated abnormally, going to single 
user mode
Enter full pathname of shell or RETURN for /bin/sh:
 
QUESTIONS
Can I rewrite the file /etc/fstab in text mode?
If it's possible, how can I do this?

I tried fsck_manually and also to boot by option '6' (Escape to loader) but I 
was not able to resolve the problem.
If someone can help me, thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: /etc/fstab error and I can't start the system normally

2006-08-07 Thread backyard


--- micman [EMAIL PROTECTED] wrote:

 Hello.
 
 PROBLEM
 I tried and configured FreeBSD 6.1 for many days and
 I mounted my FAT extended partition to exchange my
 files between Windows and my new Operating System.
 That was OK. After I tried to mount automatically at
 boot this partition and I make an error (grammatical
 error): I wrote “acd0s5” instead of “ad0s5” in
 /etc/fstab. 
 Now, when I start the system, I receive this message
 at the end of the boot process:
 Can't open (No such file or directory)
 /dev/acd0s5: UNEXPECTED INCONSISTENCY; RUN
 fsck_msdosfs MANUALLY.
 THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED
 INCONSISTENCY:
 msdosfs: /dev/acd0s5 (/mnt/win)
 Automatic file system check failed; help!
 Aug 7 20:08:07 int: /bin/sh on /etc/rc terminated
 abnormally, going to single user mode
 Enter full pathname of shell or RETURN for /bin/sh:
  
 QUESTIONS
 Can I rewrite the file /etc/fstab in text mode?
 If it's possible, how can I do this?
 
 I tried fsck_manually and also to boot by option '6'
 (Escape to loader) but I was not able to resolve
 the problem.
 If someone can help me, thank you.
 [EMAIL PROTECTED]

get into a console maybe by booting single user.
remote root as read/write you may or may not have to
remount root as write but...

mount -u /
ee /etc/fstab

fix the error hit [esc] cc [esc] a and you should be
good to go. 

hope that helps

-brian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/fstab error and I can't start the system normally

2006-08-07 Thread Pramod Venugopal
You can go to single user mode (4) from the boot menu and then mount - 
o rw / . Then you can edit /etc/fstab.


Pramod Venugopal
[EMAIL PROTECTED]



On Aug 7, 2006, at 1:26 PM, micman wrote:


Hello.

PROBLEM
I tried and configured FreeBSD 6.1 for many days and I mounted my  
FAT extended partition to exchange my files between Windows and my  
new Operating System. That was OK. After I tried to mount  
automatically at boot this partition and I make an error  
(grammatical error): I wrote “acd0s5” instead of “ad0s5” in /etc/ 
fstab.
Now, when I start the system, I receive this message at the end of  
the boot process:

Can't open (No such file or directory)
/dev/acd0s5: UNEXPECTED INCONSISTENCY; RUN fsck_msdosfs MANUALLY.
THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY:
msdosfs: /dev/acd0s5 (/mnt/win)
Automatic file system check failed; help!
Aug 7 20:08:07 int: /bin/sh on /etc/rc terminated abnormally, going  
to single user mode

Enter full pathname of shell or RETURN for /bin/sh:

QUESTIONS
Can I rewrite the file /etc/fstab in text mode?
If it's possible, how can I do this?

I tried fsck_manually and also to boot by option '6' (Escape to  
loader) but I was not able to resolve the problem.

If someone can help me, thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/fstab FS-specific parameters

2006-04-10 Thread Björn König

Andrey V. Semyonov schrieb:

Hi there!

How do you use FS-specific parameters in /etc/fstab (like -E for 
mount_msdosfs, or -I for mount_smbfs, etc...) ?


As far as I know this is not possible. I had a similar problem when I 
wanted to mount NFS with -L using fstab. In my case there was a 
solution, because if you specify -o nolockd then it has the same effect 
as -L. I just wrote nolockd into the options column of /etc/fstab. I 
guess this won't help you much, because mount_smbfs seems to don't make 
use of the -o parameter.


Regards
Björn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/etc/fstab FS-specific parameters

2006-04-09 Thread Andrey V. Semyonov

Hi there!

How do you use FS-specific parameters in /etc/fstab (like -E for 
mount_msdosfs, or -I for mount_smbfs, etc...) ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Setting mount_nfs options in /etc/fstab

2005-10-06 Thread Brian Candler
I am reading large log files via NFS, and I find that if I mount them with
mount_nfs -a 4 then performance is improved.

My question is: is there any way to set the option '-a 4' in /etc/fstab? Or
am I forced to mount the filesystems the manual way in /etc/rc.local?

mount_nfs supports a number of options via -o, many of which it describes as
historic and deprecated, but they don't include something to set
readahead as far as I can see.

Thanks,

Brian.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting mount_nfs options in /etc/fstab

2005-10-06 Thread Brian Candler
On Thu, Oct 06, 2005 at 10:10:14AM -0500, Doug Poland wrote:
 Here's an fstab entry of mine for an nfs mount.
 
 fs:/data  /data   nfs -3,-R=3,-b,-i,-s,-r=32768,-w=32768,rw   
 0   0
 
 Your options and milage may vary...

That works for me, thank you. Perhaps the fstab(5) page could be clearer
then. It says:

 The fourth field, (fs_mntops), describes the mount options associated
 with the file system.  It is formatted as a comma separated list of
 options.  It contains at least the type of mount (see fs_type below) plus
 any additional options appropriate to the file system type.  See the
 options flag (-o) in the mount(8) page and the file system specific page,
 such as mount_nfs(8), for additional options that may be specified.

and also later:

 struct fstab {
 char*fs_spec;   /* block special device name */
 char*fs_file;   /* file system path prefix */
 char*fs_vfstype;/* File system type, ufs, nfs */
 char*fs_mntops; /* Mount options ala -o */ 
 char*fs_type;   /* FSTAB_* from fs_mntops */
 int fs_freq;/* dump frequency, in days */
 int fs_passno;  /* pass number on parallel fsck */
 };

When I read this, the implication to me was that only options which you
could pass using -o to mount or mount_nfs were permitted.

Cheers,

Brian.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting mount_nfs options in /etc/fstab

2005-10-06 Thread Doug Poland
On Thu, Oct 06, 2005 at 03:45:32PM +0100, Brian Candler wrote:
 I am reading large log files via NFS, and I find that if I mount them
 with mount_nfs -a 4 then performance is improved.
 
 My question is: is there any way to set the option '-a 4' in
 /etc/fstab? Or am I forced to mount the filesystems the manual way in
 /etc/rc.local?
 
 mount_nfs supports a number of options via -o, many of which it
 describes as historic and deprecated, but they don't include
 something to set readahead as far as I can see.
 
Here's an fstab entry of mine for an nfs mount.

fs:/data/data   nfs -3,-R=3,-b,-i,-s,-r=32768,-w=32768,rw   
0   0

Your options and milage may vary...

-- 
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount ntfs (windows) file system in /etc/fstab fails at boot

2004-11-30 Thread CHris Rich
On Fri, 26 Nov 2004 01:53:11 -0800, Kevin Smith [EMAIL PROTECTED] wrote:
 I am able to mount my windows partition manually by either:
 
  mount -t ntfs /dev/ad0s1 /windows
 
 or by putting an entry in by /dev/fstab that looks like:
 
 /dev/ad0s1 /windows  ntfs ro  2   2
 
 and using command:
 
  mount /windows
 
 -however,
 
 If I leave this entry in my /etc/fstab, the OS reports inconsistency
 errors on bootup when it tries to mount and goes into single-user mode.
 I then had to remount / for read-write and delete the line in the fstab
 before it would boot again.

I put a script in /usr/local/etc/rc.d/ that mounts my windows partition for me
not sure if it is the best way to do it but it works for me

Regards

 
 Am I using the wrong syntax for the fstab entry  ?- also, why does it
 mount manually with no error - but complain at boot time ?
 
 -K
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount ntfs (windows) file system in /etc/fstab fails at boot

2004-11-30 Thread Kevin Smith
Kris K. explained the problem earlier in the thread.
The correct entry in your /etc/fstab should be somethig like bellow. I 
had a 2 in the 6th field (instead of 0 or leave it out); this causes 
the file system to be checked on bootup which fails with the ntfs file 
system. If you have this in your fstab, you should not need to mount it 
in your rc files. Mine mounts automatically with no problem with the 
following line:

/dev/ad0s1 /windows ntfs ro 2 0
CHris Rich wrote:
On Fri, 26 Nov 2004 01:53:11 -0800, Kevin Smith [EMAIL PROTECTED] wrote:
 

I am able to mount my windows partition manually by either:
   

mount -t ntfs /dev/ad0s1 /windows
 

or by putting an entry in by /dev/fstab that looks like:
/dev/ad0s1 /windows  ntfs ro  2   2
and using command:
   

mount /windows
 

-however,
If I leave this entry in my /etc/fstab, the OS reports inconsistency
errors on bootup when it tries to mount and goes into single-user mode.
I then had to remount / for read-write and delete the line in the fstab
before it would boot again.
   

I put a script in /usr/local/etc/rc.d/ that mounts my windows partition for 
me
not sure if it is the best way to do it but it works for me
Regards
 

Am I using the wrong syntax for the fstab entry  ?- also, why does it
mount manually with no error - but complain at boot time ?
-K
   

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount ntfs (windows) file system in /etc/fstab fails at boot

2004-11-30 Thread Giorgos Keramidas
On 2004-11-30 10:31, Kevin Smith [EMAIL PROTECTED] wrote:
 Kris K. explained the problem earlier in the thread.

 The correct entry in your /etc/fstab should be somethig like bellow. I
 had a 2 in the 6th field (instead of 0 or leave it out); this causes
 the file system to be checked on bootup which fails with the ntfs file
 system. If you have this in your fstab, you should not need to mount it
 in your rc files. Mine mounts automatically with no problem with the
 following line:

 /dev/ad0s1 /windows ntfs ro 2 0

Hi Kevin,

Since the second from the last column is the dump frequency and I
wouldn't really expect anyone to take backups of NTFS volumes with
dump(8) and restore(8), you can safely use a second zero there too:

/dev/ad0s1 /windows ntfs ro 0 0

Regards,
Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mount ntfs (windows) file system in /etc/fstab fails at boot

2004-11-25 Thread Kevin Smith
I am able to mount my windows partition manually by either:
 mount -t ntfs /dev/ad0s1 /windows
or by putting an entry in by /dev/fstab that looks like:
/dev/ad0s1 /windows  ntfs ro  2   2
and using command:
 mount /windows
-however,
If I leave this entry in my /etc/fstab, the OS reports inconsistency 
errors on bootup when it tries to mount and goes into single-user mode.  
I then had to remount / for read-write and delete the line in the fstab 
before it would boot again.

Am I using the wrong syntax for the fstab entry  ?- also, why does it 
mount manually with no error - but complain at boot time ?

-K
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount ntfs (windows) file system in /etc/fstab fails at boot

2004-11-25 Thread Kris Kennaway
On Fri, Nov 26, 2004 at 01:53:11AM -0800, Kevin Smith wrote:
 I am able to mount my windows partition manually by either:
 
  mount -t ntfs /dev/ad0s1 /windows
 
 or by putting an entry in by /dev/fstab that looks like:
 
 /dev/ad0s1 /windows  ntfs ro  2   2
 
 and using command:
   ^^^ 

 The sixth field, (fs_passno), is used by the fsck(8) program to determine
 the order in which filesystem checks are done at reboot time.  The root
 filesystem should be specified with a fs_passno of 1, and other filesys-
 tems should have a fs_passno of 2.  Filesystems within a drive will be
 checked sequentially, but filesystems on different drives will be checked
 at the same time to utilize parallelism available in the hardware.  If
 the sixth field is not present or is zero, a value of zero is returned
 and fsck(8) will assume that the filesystem does not need to be checked.

Since you don't want to run fsck on the ntfs volume, set this to zero.

 If I leave this entry in my /etc/fstab, the OS reports inconsistency 
 errors on bootup when it tries to mount and goes into single-user mode.  
 I then had to remount / for read-write and delete the line in the fstab 
 before it would boot again.

P.S. It's usually helpful to transcribe the exact error, instead of
describing vague symptoms.

Kris


pgpuxfgXZStFZ.pgp
Description: PGP signature


Re: mount ntfs (windows) file system in /etc/fstab fails at boot

2004-11-25 Thread Kevin Smith
Yes, putting a 0 in the sixth field takes care of the problem and the 
/windows file system is now mounted. thanks.

P.S. It's usually helpful to transcribe the exact error, instead of
describing vague symptoms.

Yes,I agree. I was not able to retreive the exact error message from 
dmesg on boot as I had rebooted again and lost that. If you can tell me 
where I can get previous boot messages (dmesg.today didn have it 
either), I will post the message for the benefit of others in case they 
have this problem.

Thanks again.
-K
Kris Kennaway wrote:
On Fri, Nov 26, 2004 at 01:53:11AM -0800, Kevin Smith wrote:
 

I am able to mount my windows partition manually by either:
   

mount -t ntfs /dev/ad0s1 /windows
 

or by putting an entry in by /dev/fstab that looks like:
/dev/ad0s1 /windows  ntfs ro  2   2
and using command:
   

  ^^^ 

The sixth field, (fs_passno), is used by the fsck(8) program to determine
the order in which filesystem checks are done at reboot time.  The root
filesystem should be specified with a fs_passno of 1, and other filesys-
tems should have a fs_passno of 2.  Filesystems within a drive will be
checked sequentially, but filesystems on different drives will be checked
at the same time to utilize parallelism available in the hardware.  If
the sixth field is not present or is zero, a value of zero is returned
and fsck(8) will assume that the filesystem does not need to be checked.
Since you don't want to run fsck on the ntfs volume, set this to zero.
 

If I leave this entry in my /etc/fstab, the OS reports inconsistency 
errors on bootup when it tries to mount and goes into single-user mode.  
I then had to remount / for read-write and delete the line in the fstab 
before it would boot again.
   

P.S. It's usually helpful to transcribe the exact error, instead of
describing vague symptoms.
Kris
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mount ntfs (windows) file system in /etc/fstab fails at boot

2004-11-25 Thread Kris Kennaway
On Fri, Nov 26, 2004 at 02:16:45AM -0800, Kevin Smith wrote:
 Yes, putting a 0 in the sixth field takes care of the problem and the 
 /windows file system is now mounted. thanks.
 
 P.S. It's usually helpful to transcribe the exact error, instead of
 describing vague symptoms.
 
 
 
 Yes,I agree. I was not able to retreive the exact error message from 
 dmesg on boot as I had rebooted again and lost that. If you can tell me 
 where I can get previous boot messages (dmesg.today didn have it 
 either), I will post the message for the benefit of others in case they 
 have this problem.

Thanks for the offer, although it may not be logged so you'd have to
have transcribed it by hand during boot (e.g. pause the display with
the pause key to give you time to copy it down, or use the scroll lock
and then page up back to it after the system has booted)

Kris


pgpNFDA1gMlYQ.pgp
Description: PGP signature


/etc/fstab explain me please.....

2003-09-13 Thread Denis
Hi All!!!

  I want to mount automatically my second disk drive which has Fat32
  file system. Could you tell me what i must write in FSType section in
  /etc/fstab??
  Maybe msdos or fat32???

-- 
Best regards, Denis
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/fstab explain me please.....

2003-09-13 Thread Jerry Bell
msdosfs should work so long as it's fat or fat32. 

Jerry
http://www.syslog.org
- Original Message - 
From: Denis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 7:11 AM
Subject: /etc/fstab explain me please.


Hi All!!!

  I want to mount automatically my second disk drive which has Fat32
  file system. Could you tell me what i must write in FSType section in
  /etc/fstab??
  Maybe msdos or fat32???

-- 
Best regards, Denis
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/fstab explain me please.....

2003-09-13 Thread Guilmot Mike
Denis wrote:
 Hi All!!!
 
   I want to mount automatically my second disk drive which has Fat32
   file system. Could you tell me what i must write in FSType section
   in /etc/fstab??
   Maybe msdos or fat32???

msdos is what you're looking for :)
Like mount_msdos when it's not automatic.

Kind regards,

Guilmot Mike

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/fstab explain me please.....

2003-09-13 Thread David Gerard
On 09/13/03 11:11, Denis wrote:

 I want to mount automatically my second disk drive which has Fat32
 file system. Could you tell me what i must write in FSType section in
 /etc/fstab??
 Maybe msdos or fat32???
msdos is correct. Here's mine:

$ cat /etc/fstab
# See the fstab(5) manual page for important information on automatic mounts
# of network filesystems before modifying this file.
#
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/acd0c  /cdrom  cd9660  ro,noauto   0   0
/dev/ad3s1  /mp3msdos   rw  1   2
proc/proc   procfs  rw  0   0

The drive called 'mp3' was mounted in a Windows box. Rather
than mess about with 40 gig of ripped CDs, I just put it straight
into this box and mounted it as shown.
- d.



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


putting mount_smbfs -N into /etc/fstab

2003-08-03 Thread Alexander Farber
Hi,

I have:

//pref/pref /pref smbfs rw,noauto 0 0

in my /etc/fstab and it works, but I have to press 
the return key to submit the empty password when I 
mount /pref and thus I have to use the noauto option.

I there a way to put the mount_smbfs option -N and 
also -E koi8-r:cp866 into the /etc/fstab so that no 
user interaction is required during the boot process? 

I couldn't find the answer in man mount_smbfs nor
in /usr/src/contrib/smbfs/mount_smbfs/* yet.

Thanks
Alex
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: putting mount_smbfs -N into /etc/fstab

2003-08-03 Thread Petersen
Alexander Farber said:

 Hi,
 
 I have:
 
 //pref/pref /pref smbfs rw,noauto 0 0
 
 in my /etc/fstab and it works, but I have to press 
 the return key to submit the empty password when I 
 mount /pref and thus I have to use the noauto option.
 
 I there a way to put the mount_smbfs option -N and 
 also -E koi8-r:cp866 into the /etc/fstab so that no 
 user interaction is required during the boot process? 
 
 I couldn't find the answer in man mount_smbfs nor
 in /usr/src/contrib/smbfs/mount_smbfs/* yet.
 

This can be solved with the smbfs config file.
Please see /usr/src/contrib/smbfs/examples/dot.nsmbrc

Petersen

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/fstab config

2003-02-13 Thread Jason Hunt
On Wed, Feb 12, 2003 at 10:29:33PM -0500, george donnelly wrote:
 hi i've got a 3 disk raid 5 partition that is my main fs and then an 80gb
 ide drive on a separate partition at /vol1. i need to config my /etc/fstab
 for this and this is what i've got (see below). can someone tell me if looks
 correct? 
 

 # DeviceMountpoint  FStype  Options Dump   Pass#
 /dev/da0s1b noneswapsw  0   0
 /dev/da0s1a /   ufs rw  1   1
 /dev/ad2s1e /vol1   ufs rw  2   2
 proc/proc   procfs  rw  0   0
 

Check the fstab(5) man page.  I think maybe the Dump field for /vol1 should
be 1 as well.  dump(8) tells you more about this.  I am not 100% sure.


 also, if i were to reboot the machine with the pass # for /dev/ad2s1e
 (/vol1)  set to 1, would this be incorrect (i think so) and would it cause
 damage to the disk?

The fstab(5) man page says that the root filesystem should be set to 1
andother filesystems should be set to 2.  If you set them to 0, they will
not be checked.  I don't think setting that field to 1 will damage
anything, but should be set 2 anyways.

Hope this helps.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



/etc/fstab config

2003-02-12 Thread george donnelly
hi i've got a 3 disk raid 5 partition that is my main fs and then an 80gb
ide drive on a separate partition at /vol1. i need to config my /etc/fstab
for this and this is what i've got (see below). can someone tell me if looks
correct? 

also, if i were to reboot the machine with the pass # for /dev/ad2s1e
(/vol1)  set to 1, would this be incorrect (i think so) and would it cause
damage to the disk?

# DeviceMountpoint  FStype  Options Dump   Pass#
/dev/da0s1b noneswapsw  0   0
/dev/da0s1a /   ufs rw  1   1
/dev/ad2s1e /vol1   ufs rw  2   2
proc/proc   procfs  rw  0   0

thanks

--
george donnelly - http://zettai.net/ - We Love Newbies :)
Zope Hosting - Dynamic Website Design - Search Engine Promotion
Yahoo, AIM: zettainet - ICQ: 51907738 - e:[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message