* Re: format a zipdisk and make it a linux disk
[not found] <36A0959E.9CC63FAB@berenschot.com>
@ 1999-01-16 5:00 ` Rod Smith
0 siblings, 0 replies; only message in thread
From: Rod Smith @ 1999-01-16 5:00 UTC (permalink / raw)
To: Onion Ok
[Posted and mailed]
[Newsgroups trimmed; Followup-To specified]
In article <36A0959E.9CC63FAB@berenschot.com>,
Onion Ok <DjK@berenschot.com> writes:
> Hi (again),
>
> Another question:
>
> How can I format a zipdisk onder linux and make a linux native partition
> on it.
> Cause if there is a msdos fs on the zipdisk I'm not able to copy
> symlinks and I get some other errors.
There are a number of ways to do this. My preferred method is:
1) In /etc/fstab, make sure that the entry for the Zip disk lists the
filesystem type as "auto". This will ensure that Linux will
auto-detect the filesystem type, so you can just insert a disk and
issue a mount command and not have to know what filesystem it has.
2) Insert a disk that already has a FAT filesystem on it (created from
Windows, say).
3) Type "mke2fs /dev/sda4" (I'm assuming this is the first SCSI drive,
given your identification below.
4) Type "fdisk /dev/sda" and change the type of partition 4 to "Linux
native." This is done with the "t" command. This will keep Windows or
other OSes from trying to read the disk and possibly trashing it.
Other people prefer to either create a partition with a different number
or not partition the disk at all, and create separate mount points for FAT
and ext2 Zip disks. This is generally less convenient, but would make it
more obvious what type of disk you're using, which could be useful in some
cases.
> I tried with fdisk /dev/sda4 but this didn't work. Can someone tell me
> how I can do this?
The fdisk command is used to PARTITION a disk -- that is, to split it up
into big segments that will be mounted via separate mount commands or
lines in /etc/fstab, or which will appear with different drive letters
under DOS or Windows. This is entirely separate from CREATING A
FILESYSTEM ("formatting" in DOS or Windows, though "formatting" has
another meaning, too, which is why it's not used in this context in
Linux). Creating a filesystem lays down the data structures WITHIN a
partition which allow it to store data. What you describe as your goal is
creating a filesystem, not formatting. Also, fdisk is given the name of
an ENTIRE DISK as its argument, not one specific partition, as you've
specified. In Linux, you DO need to use fdisk to change the partition
identifier when you change the filesystem type on a disk, but other than
that, creating a filesystem doesn't use fdisk. (In fact, Linux itself
mostly ignores the partition type, so my step #4, above, is unnecessary if
you're sure the disk will never be used in any OS but Linux.)
--
Rod Smith
rodsmith@fast9.uceprotect.net
http://www.users.fast.net/~rodsmith
NOTE: Remove the digit and following word from my address to mail me
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-01-16 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <36A0959E.9CC63FAB@berenschot.com>
1999-01-16 5:00 ` format a zipdisk and make it a linux disk Rod Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox