Re: modify existing partitions - newbie

2005-01-28 Thread Jerry McAllister
 
 # raw part, don't edit
 d: 41943040 419430404.2BSD 2048 16384
  28552
   
   Is it the correct way to delete the partitions?
  
  First guess is not having permission.   
  It should be done in single user mode.
  
  Second guess is the partition you want to delete is
  mounted.
  
  I have never tried to modify partitions on the disk
  with root on it, 
  so maybe that presents special problems.   You may
  need to boot
  from something else - live CD for example.
  
 
 Now I tried to create new partitions on the free space
 of the existing slice in single mode, but I am getting
 the same error as 'unable to write data on ad0' . I am
 doing this in root user only. What are all the
 permissions should I have for this? 
 
 Or please suggest me to create a partition in another
 way?

As I say, I have never tried to modify partitions on the root/boot
disk currently being used.  I suspect that, since the root partition
of that disk is mounted, you will not be able to write in the label
even for other not-currently mounted partitions on that disk.

You may have to boot from some other device, either another disk
or a live CD or fixit floppy in order to work on that particular 
disk label. 

Maybe someone else on the list knows for sure.j

jerry

 
 Sarav
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


modify existing partitions - newbie

2005-01-27 Thread saravanan ganapathy
Hai,

I just needed to delete some partitions(ad0s1e 
ad0s1f) in my existing slice(ad0s1) and recreate with
some changes. 

1) I tried using 'sysinstll -- Config -- Label' ,
then delete e  f , but this couldn't write. It says
'unable to write data on ad0' . What is the problem?

2) Tried using 'disklabel -e ad0s1', then a file
opens. I deleted the last two lines(e  f) and saved. 
Now it shows as the following 

# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize
bps/cpg]
  a: 4194304004.2BSD 2048 16384 28552
  b:  4194304 83886080  swap
  c: 3201593220unused0 0  
  # raw part, don't edit
  d: 41943040 419430404.2BSD 2048 16384 28552

Is it the correct way to delete the partitions?

3) How to add new partitions in the same slice?

( I read lot of links, all are about formatting a new
slice) 


Please help me

Sarav



__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: modify existing partitions - newbie

2005-01-27 Thread Jerry McAllister
 
 Hai,
 
 I just needed to delete some partitions(ad0s1e 
 ad0s1f) in my existing slice(ad0s1) and recreate with
 some changes. 
 
 1) I tried using 'sysinstll -- Config -- Label' ,
 then delete e  f , but this couldn't write. It says
 'unable to write data on ad0' . What is the problem?
 
 2) Tried using 'disklabel -e ad0s1', then a file
 opens. I deleted the last two lines(e  f) and saved. 
 Now it shows as the following 
 
 # /dev/ad0s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize
 bps/cpg]
   a: 4194304004.2BSD 2048 16384 28552
   b:  4194304 83886080  swap
   c: 3201593220unused0 0  
   # raw part, don't edit
   d: 41943040 419430404.2BSD 2048 16384 28552
 
 Is it the correct way to delete the partitions?

First guess is not having permission.   
It should be done in single user mode.

Second guess is the partition you want to delete is mounted.

I have never tried to modify partitions on the disk with root on it, 
so maybe that presents special problems.   You may need to boot
from something else - live CD for example.

jerry

 
 3) How to add new partitions in the same slice?
 
 ( I read lot of links, all are about formatting a new
 slice) 
 
 
 Please help me
 
 Sarav
 
 
   
 __ 
 Do you Yahoo!? 
 All your favorites on one personal page – Try My Yahoo!
 http://my.yahoo.com 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: modify existing partitions - newbie

2005-01-27 Thread saravanan ganapathy

--- Jerry McAllister [EMAIL PROTECTED]
wrote:

  
  Hai,
  
  I just needed to delete some partitions(ad0s1e 
  ad0s1f) in my existing slice(ad0s1) and recreate
 with
  some changes. 
  
  1) I tried using 'sysinstll -- Config -- Label'
 ,
  then delete e  f , but this couldn't write. It
 says
  'unable to write data on ad0' . What is the
 problem?
  
  2) Tried using 'disklabel -e ad0s1', then a file
  opens. I deleted the last two lines(e  f) and
 saved. 
  Now it shows as the following 
  
  # /dev/ad0s1:
  8 partitions:
  #size   offsetfstype   [fsize bsize
  bps/cpg]
a: 4194304004.2BSD 2048 16384
 28552
b:  4194304 83886080  swap
c: 3201593220unused0 0  

# raw part, don't edit
d: 41943040 419430404.2BSD 2048 16384
 28552
  
  Is it the correct way to delete the partitions?
 
 First guess is not having permission.   
 It should be done in single user mode.
 
 Second guess is the partition you want to delete is
 mounted.
 
 I have never tried to modify partitions on the disk
 with root on it, 
 so maybe that presents special problems.   You may
 need to boot
 from something else - live CD for example.
 

Now I tried to create new partitions on the free space
of the existing slice in single mode, but I am getting
the same error as 'unable to write data on ad0' . I am
doing this in root user only. What are all the
permissions should I have for this? 

Or please suggest me to create a partition in another
way?

Sarav




__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]