suryanamaskar
Programmer
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
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