[EMAIL PROTECTED] wrote on 09/11/2006 03:08:46 PM:

> Is there a way of creating partitions using fdisk, and not having to
> reboot before creating filesystems on the new partitions? ie getting the
> kernel to be aware of the new partions.
> 
Does it have to be fdisk?
cfdisk is recommended over fdisk (at least on my dist), and from the man:
W      Write  partition table to disk (must enter an upper case W).  Since 
this might destroy data on the disk, you must either confirm or deny the 
write by entering `yes' or `no'.  If you enter `yes', cfdisk will write 
the partition table to disk and the tell the kernel to  re-read  the 
partition  table  from the disk.  The re-reading of the partition table 
works is most cases, but I have seen it fail.  Don't panic.  It will be 
correct after you reboot the system.  In all cases, I still recommend 
rebooting the system--just to be safe.

If you need to use fdisk, I guess you could find out what cfdisk does to 
re-read the partition tables and use that.

Cheers,

Scott

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to