Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2008, 03:50 AM
zeiztm zeiztm is offline
Junior Member
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to mount floppy and "hidden" partition?
Hi everybody,

I love the OS but I cannot find answers:

1. How to mount (better automount) a floppy? I cannot see it in "storage".
2. I also cannot see in storage my data partition (fat32) but I can see (rw) another fat32 partition on my second HDD.

fstab:
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1b none swap sw 0 0
/dev/ad0s1a / ufs rw 1 1
linprocfs /compat/linux/proc linprocfs rw 0 0
/dev/fd0 /mnt/floppy msdos rw,noauto 0 0

Many thanx in advance
Reply With Quote
  #2  
Old 02-10-2008, 05:09 AM
Oko Oko is offline
Senior Member
 
Join Date: May 2007
Posts: 677
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to mount floppy and "hidden" partition?
Originally Posted by zeiztm
Hi everybody,

I love the OS but I cannot find answers:

1. How to mount (better automount) a floppy? I cannot see it in "storage".
2. I also cannot see in storage my data partition (fat32) but I can see (rw) another fat32 partition on my second HDD.

fstab:
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1b none swap sw 0 0
/dev/ad0s1a / ufs rw 1 1
linprocfs /compat/linux/proc linprocfs rw 0 0
/dev/fd0 /mnt/floppy msdos rw,noauto 0 0

Many thanx in advance
/mnt/floppy does not belong to you. It belongs to root.
Change it into something like

/home/me/mnt/floppy

which belongs to you


You must also alter the permission on /dev/fdo. The easies but not the bast way to do it
is just to put

perm /dev/fd0 0666 into your devfs.conf file


Remember in Unix you have to be owner of the device node and the mount point in order to be able to mount file system.
Take a clue from the above post for floppy.
It is the same kind of procedure.

sysctl.conf sould read vfs.usermount=1

Cheers
Reply With Quote
  #3  
Old 02-10-2008, 03:05 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: how to mount floppy and "hidden" partition?
Originally Posted by zeiztm
2. I also cannot see in storage my data partition (fat32) but I can see (rw) another fat32 partition on my second HDD.

You'll have to give an accurate description of your partitioning scheme for us to describe fstab entries for them ;-)

Especially if they are logical drives in an extended partition or primary partitions as it changes the drive #'s FreeBSD will assign to them.

For example my system:


first hard drive
PP - WinXP, NTFS: ad0s1
PP - Linux, EXT3 (usually): ad0s2
PP - PC-BSD, UFS (usually): ad0s3*
EP - : ad0s4 (probably)
LD -- Linux Swap : unusable
LD -- FAT32 : ad0s6
LD -- FAT32 : ad0s7
LD -- FAT32 : ad0s8

* UFS partitions are sub-partitioned, ad0s1a, ad0s1b etc.

e.g. my notation was := type - data: freebsd device name
Reply With Quote
  #4  
Old 02-10-2008, 04:05 PM
zeiztm zeiztm is offline
Junior Member
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to mount floppy and "hidden" partition?
OKO, TerryP, thank you very much for fast reply. Fist of all today i cannot see another fat32 as well :shock:
I created directories: /usr/home/kevin/mnt/floppy and /usr/home/kevin/mnt/docs

%mount /dev/fd0 /usr/home/kevin/mnt/floppy
mount: /dev/fd0 on /usr/home/kevin/mnt/floppy: incorrect super block
%mount /dev/ad0s3 /usr/home/kevin/mnt/docs
mount: /dev/ad0s3: Operation not permitted
%mount /dev/ad0s4 /usr/home/kevin/mnt/docs
mount: /dev/ad0s4: Operation not permitted
%su
Password:
pcbsd# mount /dev/fd0 /mnt/floppy
mount: /dev/fd0 on /mnt/floppy: incorrect super block
pcbsd# mount /dev/ad0s3 /root/mnt/docs
mount: /dev/ad0s3 on /root/mnt/docs: incorrect super block
pcbsd# mount /dev/ad0s4 /root/mnt/docs
mount: /dev/ad0s4 on /root/mnt/docs: incorrect super block

fstab:
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1b none swap sw 0 0
/dev/ad0s1a / ufs rw 1 1
/dev/ad0s3 /home/kevin/mnt/docs vfat rw 0 0
linprocfs /compat/linux/proc linprocfs rw 0 0
/dev/fd0 /user/home/keivn/mnt/floppy vfat rw,noauto 0 0
/dev/fd0 /root/mnt/floppy vfat rw,noauto 0 0

sysctl.conf:
# Disable coredump
kern.coredump=0

# Allow users to mount CD's
vfs.usermount=1
kern.ipc.shmmax=67108864

devfs.conf:
# Commonly used by many ports
link cd0 cdrom
link cd0 dvd

# Allow all users to access CD's
perm /dev/acd0 0666
perm /dev/acd1 0666
perm /dev/cd0 0666
perm /dev/cd1 0666

# Allow all USB Devices to be mounted ##Nice mount! How to do same with floppy?
perm /dev/da0 0666
perm /dev/da1 0666
perm /dev/da2 0666
perm /dev/da3 0666

# Misc other devices
perm /dev/pass0 0666
perm /dev/xpt0 0666
perm /dev/agpart 0666
perm /dev/uscanner0 0666
perm /dev/fd0 0666

What could be wrong again?

Well, maybe I can live without floppy but I do need docs partitions. Currently I have following drives and partitions (just in case: my total memory is 768MB):
Master:
PP 62GB /dev/ad0s1a (pcbsd)
EP? 268MB /dev/ad0s2a (swap?)-shown
EP? 536MB /dev/ad0s2d (swap?)-shown
PP 51GB /dev/ad0s2e (dbsd)
PP 40GB /dev/ad0s3 (or ad0s4),fat32 -INVISIBLE (created before Ubuntu install)
EP 24GB /dev/ad0s5 (Ubuntu)
EP 1GB /dev/ad0s6 (Ubuntu,swap,ext3)-INVISIBLE
EP 20GB /dev/ad0s7 (Kubuntu) -INVISIBLE
EP 21GB /dev/ad0s8 (or ad0s9) (Mandriva)-INVISIBLE
Slave:
PP 32Mb /dev/ad1s1 fat16,boot
EP 31Gb /dev/ad1s5 ntfs, WinXP
PP 8GB /dev/ad1s6 fat32, docs -INVISIBLE

Maybe I need to edit something for vfat32? Also I cannot understand why I cannot see other Linux partitions? All of them are ext3 and EP.

If all my trouble depend on permissions where to learn? I used to google a lot but no result like nobody has same problem or obsolete data: a guy wrote entire manual in 2005 (nothing works from his manual) then I noticed "update 2007" -where he announced his sound driver still in conflict, nobody can help and he abandoned BSD for Linux.
Reply With Quote
  #5  
Old 02-10-2008, 04:35 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: how to mount floppy and "hidden" partition?
Code:
%mount /dev/fd0 /usr/home/kevin/mnt/floppy
mount: /dev/fd0 on /usr/home/kevin/mnt/floppy: incorrect super block

mount by default works on bsd's file systems so you need to tell it to work on a FAT file system. Just replace mount with

mount_msdosfs [rest of command]

or

mount -t msdosfs [rest of command]


same thing on FreeBSD boxes :\



For the logical drives in an extended dos partition the extended partition gets ad0s4 (at least on my box, where it was the fourth partition created; I've never heard of other users getting any thing else but slice4 for the EP root) with the logical drives ascending from slice 5.


Your linux partitions would probably be in fstab like this give or take wanting them mounted on boot;

/dev/ad0s5 /your/mount_point ext2fs rw 0 0
/dev/ad0s6 /your/mount_point ext2fs rw 0 0
/dev/ad0s7 /your/mount_point ext2fs rw 0 0
/dev/ad0s8 /your/mount_point ext2fs rw 0 0



For permissions the handbook should cover most of it outside of /dev
Reply With Quote
  #6  
Old 02-10-2008, 06:17 PM
Oko Oko is offline
Senior Member
 
Join Date: May 2007
Posts: 677
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to mount floppy and "hidden" partition?
http://8help.osu.edu/wks/sysadm_course/ ... adm-1.html

http://8help.osu.edu/wks/sysadm_course/ ... adm-1.html

http://uwsg.iu.edu/UAU/uau.html
Reply With Quote
  #7  
Old 02-10-2008, 11:49 PM
zeiztm zeiztm is offline
Junior Member
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to mount floppy and "hidden" partition?
Thank you very much, guys.
I mistyped: of course EP only 1 and the rest are LD. I checked my disk again and it has for sure 3 PP ad0s1, ad0s2 and ad0s3-my missing docs partition. Linuxes sit on LD's inside that EP where ad0s3 is PP. I tried to change entries to fstab but I just got many icons in KwikDisk without changes in Storage Media. KwikDisk mounts nothing and says "improper argument" or similar. That's fine I'll try again later. I have also DBSD; in there I can see my fat32 partitions. Both OS's are based on FreeBSD so I'll try to find out why DBSD sees fat32 and PCBSD doesn't. It's interesting that they have no one line in devfs.conf starting with "perm".
One last quesiton: we have floppy formatter here and it do formats. But what to do with this floppy after formating if I cannot mount it? I tried format with UFS and I couldn't mount it again even with its native fs. :?:
Reply With Quote
  #8  
Old 02-11-2008, 04:49 AM
Oko Oko is offline
Senior Member
 
Join Date: May 2007
Posts: 677
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to mount floppy and "hidden" partition?
Originally Posted by zeiztm
Thank you very much, guys.
I mistyped: of course EP only 1 and the rest are LD. I checked my disk again and it has for sure 3 PP ad0s1, ad0s2 and ad0s3-my missing docs partition. Linuxes sit on LD's inside that EP where ad0s3 is PP. I tried to change entries to fstab but I just got many icons in KwikDisk without changes in Storage Media. KwikDisk mounts nothing and says "improper argument" or similar. That's fine I'll try again later. I have also DBSD; in there I can see my fat32 partitions. Both OS's are based on FreeBSD so I'll try to find out why DBSD sees fat32 and PCBSD doesn't. It's interesting that they have no one line in devfs.conf starting with "perm".
One last quesiton: we have floppy formatter here and it do formats. But what to do with this floppy after formating if I cannot mount it? I tried format with UFS and I couldn't mount it again even with its native fs. :?:

After you format the floppy you must create file system. Otherwise there is nothing to mount. It does not have to be necessary UFS. Actually probably you want to create msdos
FAT32 file system so that you can use it across the platforms.

Read man pages for newfs.

Speaking of the previous problem. Use ls -l command to list the files with permissions.
As a matter of fact the FreeBSB specific way of giving dynamical permissions by editing
devfs.conf is not used by other BSD flavours. It is very possible that the file permissions in DesktopBSD are created by different methods than by editing devfs.conf file. So list files and permissions with ls -l and then compare Desktop and PCBSD

You probably want to read man pages for chown.
Reply With Quote
  #9  
Old 02-12-2008, 12:57 AM
zeiztm zeiztm is offline
Junior Member
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: how to mount floppy and "hidden" partition?
OKO, I believed that formatting exactly creates a fs. If it doesn't what it does?
Mans look great! Thank you for this "door"!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimal (no "eye candy") install or turning "effects" off.. danytancou Tips and Tricks 6 04-26-2010 02:45 PM
wireless card flipping between "associated" and "no carrier" gabi General Questions 2 06-08-2008 07:16 PM
[Solved]:can't mount DVD/CD in pcbsd 1.5 "after" install supercobrajet Drives 2 04-15-2008 06:21 PM
At Start-up "file" & "media" process Astro Girl Usage Bug Reports 2 12-26-2007 07:15 PM
Howto "Mount" usb scan device L1mP General Questions 2 01-12-2007 05:31 PM


All times are GMT. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.