Re: Reformat Slave HDD - Clarification Please



In article <md0g42l2hth5tfa831a10qih7km47va3bh@xxxxxxx>,
jonah <jonah123@xxxxxxxxxxx> wrote:

do I have to un-mount it first - this book is wittering on about the
kernel getting confused if I do not unmount.

Yes you do. If you're going to reformat a partition, then obviously that
partition must not be mounted .If you're going to reformat/repartition a
whole disk, then none of the disk's existing partitions must be in use
for anything (including swap).

the unmount command example I have is as follows

"umount /media/cdrom"

This makes no sense at all; I apparantly need to unmount a HDD called
"20G Media" this is VERY confusing please clarify the command
parameters to unmount a HDD assuming I need to do so.

I take it the drive is currently connected via a hotplug interface of
some kind (USB?). SuSE has default rules for mounting such a device and
automatically giving it some kind of descriptive name in the /media
directory, which is what you're seeing above.

To find out the real device name, do

cat /proc/mounts

and look for the line mentioning the mount point in /media. For example,

/dev/sdb1 /media/20G_Media ...

(would SuSE put a space in the mount point name?) In this example, the
real device name is /dev/sdb1, which is the first partition on disk sdb.
Now you should be able to do

umount /media/20G_Media

(leave the disk plugged in, of course) and then you can reformat
/dev/sdb1, or even do an fdisk to repartition the whole of /dev/sdb
(assuming there aren't any other /dev/sdbn mounts).

Another thought: would you have to issue the umount command twice?
Because I have sometimes seen two lines in /proc/mount referencing the
same device. Or maybe that was only for non-hotpluggable, removable
media like CDs/DVDs.
.



Relevant Pages

  • Re: Reformat Slave HDD - Clarification Please
    ... If you're going to reformat a partition, ... This makes no sense at all; I apparantly need to unmount a HDD called ... "20G Media" this is VERY confusing please clarify the command ...
    (alt.os.linux.suse)
  • Re: Reformat Slave HDD - Clarification Please
    ... If you're going to reformat a partition, ... This makes no sense at all; I apparantly need to unmount a HDD called ... "20G Media" this is VERY confusing please clarify the command ...
    (alt.os.linux.suse)
  • Re: Reformat Slave HDD - Clarification Please
    ... If you're going to reformat a partition, ... This makes no sense at all; I apparantly need to unmount a HDD called ... "20G Media" this is VERY confusing please clarify the command ...
    (alt.os.linux.suse)
  • Re: Attempts to format G: hard drive partition fail
    ... If you choose the full format, ... and searched on "reformat" but the only thing I ... Because Disk Management utterly fails to format the ... partition also. ...
    (microsoft.public.windowsxp.general)
  • Re: Booting - Enterprise Volume Management System
    ... that this is one of the reasons why I don't use ext3. ... If you're going to keep large chunks of disk unallocated to allow LVM to work, ... You don't think there are any disadvantages of one big partition? ... I don't claim you never have to unmount, but with LVM you have to unmount with ...
    (Ubuntu)

Loading