From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111240,9108b9ed0ed9ed3b,start X-Google-Attributes: gid111240,public X-Google-Thread: 111c93,9108b9ed0ed9ed3b,start X-Google-Attributes: gid111c93,public X-Google-Thread: 10d8ad,9108b9ed0ed9ed3b,start X-Google-Attributes: gid10d8ad,public X-Google-Thread: fb7d6,9108b9ed0ed9ed3b,start X-Google-Attributes: gidfb7d6,public X-Google-Thread: ff9be,9108b9ed0ed9ed3b,start X-Google-Attributes: gidff9be,public X-Google-Thread: f9382,9108b9ed0ed9ed3b,start X-Google-Attributes: gidf9382,public X-Google-Thread: 1103af,18588f12e319d8e2 X-Google-Attributes: gid1103af,public From: rodsmith@fast9.uceprotect.net (Rod Smith) Subject: Re: format a zipdisk and make it a linux disk Date: 1999/01/16 Message-ID: <77q7e9$j2$1@news1.fast.net>#1/1 X-Deja-AN: 433330248 References: <36A0959E.9CC63FAB@berenschot.com> To: Onion Ok Followup-To: comp.os.linux.misc Content-Type: text/plain; charset=us-ascii Organization: FASTNET(tm) PA/NJ/DE Internet Mime-Version: 1.0 Newsgroups: comp.os.linux,comp.os.linux.alpha,comp.os.linux.misc,comp.os.linux.questions,linux.redhat.misc,nl.comp.os.linux,uk.comp.os.linux [Posted and mailed] [Newsgroups trimmed; Followup-To specified] In article <36A0959E.9CC63FAB@berenschot.com>, Onion Ok 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