Re: using bsdlabel



On 2006-05-31 15:30, Robert Huff <roberthuff@xxxxxxx> wrote:

I've never used bsdlabel before; would someone please confirm
I've got this right?
Status quo:

huff@>> bsdlabel da0s1
# /dev/da0s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 1024000 0 4.2BSD 0 0 0
b: 2097152 1024000 swap
c: 8916012 0 unused 0 0 # "raw" part, don't edit
d: 2097152 3121152 4.2BSD 0 0 0

As I understand it, if I run this:

huff@>> bsdlabel -w da0s1 -f /label.new

where /label.new has:

# /dev/da0s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 1024000 0 4.2BSD 0 0 0
b: 2097152 1024000 swap
c: 8916012 0 unused 0 0 # "raw" part, don't edit
d: 2097152 3121152 4.2BSD 0 0 0
e: 3697708 5128304 4.2BSD 0 0 0

this will allocate the rest of the slice to partition 'e'.
(And we're ready to newfs.)

Yes, this looks ok :)

The 'e' partition can only start *after* the 'd' partition, so it should
have an offset of:


'd' start + 'd' size
--------- --------
3121152 + 2097152 = 5218304

The 'rest' of the disk is:

'c' size - 'e' start
-------- ---------
8916012 - 5218304 = 3697708

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Security of data in memory
    ... swap partition, key protection, secure data deletion. ... being stolen or otherwise disclosed they will often respond with filesystem ... permissions on a file, user, group and other as a bare minimum. ...
    (SecProg)
  • Re: Hibernation woes
    ... this) or a swap PARTITION needs to be created from disk space ... which I take to mean unformatted free physical unused disk space just ... swap "file" creation and change. ... Unfortunately this is a dual boot machine (XP and Ubuntu) and will ...
    (Ubuntu)
  • Re: Pagefile problem after duplicating Win2000 partition
    ... Boot into safe mode ... set your new swap file appropriatly ... > like the old one was (using Partition Magic 7): ... So that the actual Windows desktop never comes up, ...
    (microsoft.public.win2000.general)
  • Re: Script to change swap <-> FAT partition on reboot?
    ... access with either operating system to transfer files, ... script that changes my swap space to FAT. ... I rarely transfer files from Windows to Linux but if I do, ... choose whether I want to change the FAT partition to a swap one? ...
    (comp.os.linux.misc)
  • Re: Few questions before I try to install Ubuntu
    ... As long i use Ubuntu my swap was used max. 10MB if even that. ... in your e-mail you mention that you have 512 MB of RAM. ... your swap partition will see relatively ...
    (Ubuntu)