Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a floppy diskette, creating UFS filesystem & mounting it.

Status
Not open for further replies.

suryanamaskar

Programmer
Jan 17, 2001
1
US
Hello

I was writing a script to format a 3.5'', 1.44 mb floppy disk on a solaris 2.7 box. This is what i do.
fdforat -v -U -f
This goes through smoothly.
Next I want to create UFS fs on the floppy. This is what I do.
newfs -v /vol/dev/aliases/floppy0
My volume management is running by default. Running the above command gives me problems at times and at other times it goes through.
Next I want to mount the floppy.
mount /vol/dev/diskette0/unnamed_floppy /mnt/floppy
is also behaving unreliably. At times I am able to mount the floppy and at other times i get an error which says either of the files: /vol/dev/diskette0/unnamed_floppy or /mnt/floppy does not exist.

Any help.

Please see that if i shut down volume management and do the following:-
fdformat -v -U -f
newfs -v /dev/rfd0
mount /dev/diskette0 /mnt/floppy
Everything works smoothly.
But there is a slight glitch here too, if I try to open the floppy thus created through a file manager it asks me if I want to format the floppy. To get around this, i had to eject the floppy, then run volcheck and everything worked fine from there on.

Please tell me how to format, create filesystem and mount a floppy through a script while volume management is running.
Alternatively i cannot alwasy mount a floppy which is Solaris formatted and has UFS from the command line.

Thanks
 
1) why do you need ufs formatted floppies ... will dos disks not do?

2) why do you want floppies, are you able to connect to a network? can you access any other kind of device anywhere?

Floppies are the most temperamental thing in solaris ... the only time my machine goes down is if i stick a non-dos/non-ufs floppy in the floppy drive ... i then get a really nasty loop trying to format the disk in cde, and sometimes it kills the desktop ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top