Solved

formating ext2 floppy

Posted on 1998-07-22
3
281 Views
Last Modified: 2013-12-15
This is probably a dumb question, but.
I just installed RedHat 4.2 and been playing with it..
I can mount a dos floppy..
But,I want to know how to setup an ext2 file system on a floppy.. or can you even do that..
also, is there a way to switch disketts without unmounting and remounting..
really easy questions..
0
Comment
Question by:Tinkerer
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
mikegrb earned 50 total points
ID: 1628476
1. To make an ext2 file system:
        # mkfs -t ext2 /dev/fd0
      # fsck -f -y /dev/fd0 (recommended)
NOTE: I would not recommend this except for cases where the kernel does not have support for umsdos fs.
2. Switch disks w/o remounting:
        Nope, you may want to make a simple shell script to               execute after switching disks... aka something like:
#!/bin/sh
umount /dev/fd0
mount /dev/fd0 /floppy
        Assuming you are the only user on the system you could                 make this +SUID and owned by root so you don't have to su         -c '/usr/sbin/fswitch' every time you switch floppys
0
 
LVL 1

Expert Comment

by:mikegrb
ID: 1628477
sorry about the  formating
0
 

Author Comment

by:Tinkerer
ID: 1628478
mind if I ask what +SUID is?

and your saying just mount floppys as dos filesystems unless it's
not supported by the kernel?

and would that shell script be a text file like dos batch files?
I assume the permissions would have to be set to make it executable?

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS RDS 3 68
Java / Linux and Regular Expressions 11 71
add some character at the end of line in vi 7 63
networking details on centos 6.6 4 52
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now