Re: [newbie] Reformat a spare partition

2002-10-13 Thread John Richard Smith

Brian Parish wrote:

On Mon, 2002-10-14 at 00:09, John Richard Smith wrote:
  

Brian Parish wrote:



On Sun, 2002-10-13 at 23:09, John Richard Smith wrote:
 

  

I want to change the file system on partition /dev/hda10  /mnt/ntfs-vol7
to   
/dev/hda10  /mnt/ext2-vol7

I'm perfectly confident about changing the necessary entries in fstab
and creating the /mnt/ext2-vol7 directory.

but I am not sure how to format  /dev/hda10 to ext2 file system
with a root shell command line, in mandrake.

Can someone please explain the command.

John

-- 
John Richard Smith
[EMAIL PROTECTED] 

   



mkfs /dev/hda10

will do that for you.  It defaults to ext2, so no other switches are
required.  You may like to

man mkfs

first to check whether there are other options you'd like to use.

HTH
Brian



 

  

Thanks Brian,
Fair enough.
Just a further thought, since I am not repartitioning, merely changing
the filesystem, nothing needs to be written to disk in regard to partition
table. In otherwords, I suppose I am saying, knowledge of partition
file systems is part of the OS , not part of the partition table ?
John

-- 
John Richard Smith
[EMAIL PROTECTED] 




That's right.  You are just reformatting, so the partition table remains unchanged.

Brian



  

Thaks,
One further thought,
What's the betting I need to remake the mandrake boot floppy.
In the past , in my experience, you change anything to do with the
partition table/file system and the old boot floppy won't work.
Any thoughts,

John

-- 
John Richard Smith
[EMAIL PROTECTED] 






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Reformat a spare partition

2002-10-13 Thread John Richard Smith

Brian Parish wrote:

  



  

Thanks,
One further thought,
What's the betting I need to remake the mandrake boot floppy.
In the past , in my experience, you change anything to do with the
partition table/file system and the old boot floppy won't work.
Any thoughts,

John

-- 
John Richard Smith
[EMAIL PROTECTED] 


  

Shouldn't be an issue here as you are not changing the numbering of any
partitions.  If this is just a data partition, I can't see how the boot
floppy config would be impacted.

Brian




  

You are correct, all is done and dusted and went smoothly, I now have
a hda10 which is mounted nicely as /mnt/ext2-vol7, and the old boot floppy
still works. Just cor clarity's sake I include:-

[root@localhost root]# mkfs -v /dev/hda10
mke2fs 1.26 (3-Feb-2002)
/dev/hda10 is mounted; will not make a filesystem here!

[root@localhost root]# umount /mnt/ntfs-vol7
[root@localhost root]# mkfs -v /dev/hda10
mke2fs 1.26 (3-Feb-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
641280 inodes, 1281175 blocks
64058 blocks (5.00%) reserved for the super user
First data block=0
40 block groups
32768 blocks per group, 32768 fragments per group
16032 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@localhost root]#


and what is more I didn't even need to remount either,though I
had the new fstab in place before I did this.so it must of read
the fstab file as it did all this. Clever , hey,

John


-- 
John Richard Smith
[EMAIL PROTECTED] 






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com