Re: How to create a partition for FreeBSD 9.0?

2012-11-28 Thread Ralf Mardorf
On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote:
 On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote:
   # gpart create -s bsd ada0s1
   gpart: geom 'ada0s1': File exists
  
  Sorry, no idea on that.  Because of the extended partitions, maybe.
 
 Thank you,
 
 so this should work and if it doesn't work, I can't install FreeBSD?
 
 Anything else I can try?

I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will
it be possible to update to FreeBSD 9.x or do they differ, similar as
different Linux distros can differ?

Regards,
Ralf

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-28 Thread Warren Block

On Wed, 28 Nov 2012, Ralf Mardorf wrote:


On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote:

# gpart create -s bsd ada0s1
gpart: geom 'ada0s1': File exists


Sorry, no idea on that.  Because of the extended partitions, maybe.


Thank you,

so this should work and if it doesn't work, I can't install FreeBSD?


I tried a few experiments just now, and it still looks to me like the 
EBR is the problem.  Unfortunately, I don't know how to work around it. 
Certainly it should be possible to do this.  It's a matter of getting 
the partitioning tools to do it.



Anything else I can try?


Share sda10 with FreeBSD swap.  Then use slice 1 for one bare FreeBSD 
filesystem with no subpartitioning at all.


# gpart modify -i1 -t freebsd-ufs da0

It will require some work with the installer.  Probably you'll have to 
newfs and mount it as mentioned before.  After FreeBSD boots, figure out 
which is the swap partition and add that to /etc/fstab.



spinymouse@q:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f2fc6

  Device Boot  Start End  Blocks   Id  System
/dev/sda1  63   12127468460637311   a5  FreeBSD
/dev/sda2   *   121274746   625137344   251931299+   5  Extended
/dev/sda5   121274748   183751469312383617  HPFS/NTFS/exFAT
/dev/sda6   183751533   24642103431334751   83  Linux
/dev/sda7   246421098   30928337931431141   83  Linux
/dev/sda8   309283443   36196761526342086+  83  Linux
/dev/sda9   361969664   43561779136824064   83  Linux
/dev/sda10  435618603   440164934 2273166   82  Linux swap /
Solaris
/dev/sda11  440164998   56187337460854188+  83  Linux
/dev/sda12  561873438   569215079 3670821   83  Linux
/dev/sda13  569215143   61551440923149633+  83  Linux
/dev/sda14  615514473   625137344 4811436   83  Linux

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-28 Thread Warren Block

On Wed, 28 Nov 2012, Ralf Mardorf wrote:


On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote:

On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote:

# gpart create -s bsd ada0s1
gpart: geom 'ada0s1': File exists


Sorry, no idea on that.  Because of the extended partitions, maybe.


Thank you,

so this should work and if it doesn't work, I can't install FreeBSD?

Anything else I can try?


I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will
it be possible to update to FreeBSD 9.x or do they differ, similar as
different Linux distros can differ?


PC-BSD is FreeBSD, and there is a 9.x version.  I don't know what it 
uses for partitioning code, but if you value your data, back up first.

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-28 Thread Ralf Mardorf
On Wed, 2012-11-28 at 09:25 -0700, Warren Block wrote:
 On Wed, 28 Nov 2012, Ralf Mardorf wrote:
 
  On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote:
  On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote:
  # gpart create -s bsd ada0s1
  gpart: geom 'ada0s1': File exists
 
  Sorry, no idea on that.  Because of the extended partitions, maybe.
 
  Thank you,
 
  so this should work and if it doesn't work, I can't install FreeBSD?
 
  Anything else I can try?
 
  I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will
  it be possible to update to FreeBSD 9.x or do they differ, similar as
  different Linux distros can differ?
 
 PC-BSD is FreeBSD, and there is a 9.x version.  I don't know what it 
 uses for partitioning code, but if you value your data, back up first.

I chose 8.2, to get another version for partitioning.
However, I'll also test your recommendation from your previous mail.

# gpart modify -i1 -t freebsd-ufs da0

And I'll avoid to use the cursor keys next time, to get a better log
file.

Thank you for your help,
Ralf

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
All instructions failed. Is there a way to mount a linux partition or
USB-stick and to redirect the output of the gpart commands to a log
file?

In linux after mounting a partition or usb-stick I would do it like
that:

spinymouse@q:~$ echo $ ls -l  logfile
spinymouse@q:~$ ls -l  logfile
spinymouse@q:~$ cat logfile
$ ls -l
total 2644
-rw-rwxr-- 1 test_user_q spinymouse2614 Nov 24 03:43 bak_q_arch-mail
drwxr-xr-x 2 spinymouse  spinymouse4096 Oct 13 22:47 Desktop
drwxr-xr-x 2 spinymouse  spinymouse4096 Nov  1 18:19 Documents
drwxr-xr-x 2 spinymouse  spinymouse4096 Nov 24 15:56 Downloads
-rw-rw-r-- 1 spinymouse  spinymouse   53724 Nov 24 14:39 freebsd_logo1.png
-rw-rw-r-- 1 spinymouse  spinymouse  127098 Nov 24 14:39 freebsd_logo1.xcf
-rw-r--r-- 1 spinymouse  spinymouse 2492653 Nov 12 09:54 hdsp.1.mix
-rw-rw-r-- 1 spinymouse  spinymouse   8 Nov 27 15:57 logfile
drwx-- 7 spinymouse  spinymouse4096 Nov 15 18:50 Spinymouse

So how can I mount e.g. an USB stick?

And could I then run something similar to

# echo gpart show ada0s1  /path/to/usbstick/logfile
# gpart show ada0s1  /path/to/usbstick/logfile
# echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
# echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile

etc.?

I would like to post the output to the list.

TIA
Ralf

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
On Tue, 2012-11-27 at 16:13 +0100, Ralf Mardorf wrote:
 All instructions failed. Is there a way to mount a linux partition or
 USB-stick and to redirect the output of the gpart commands to a log
 file?
 
 In linux after mounting a partition or usb-stick I would do it like
 that:
 
 spinymouse@q:~$ echo $ ls -l  logfile
 spinymouse@q:~$ ls -l  logfile
 spinymouse@q:~$ cat logfile
 $ ls -l
 total 2644
 -rw-rwxr-- 1 test_user_q spinymouse2614 Nov 24 03:43 bak_q_arch-mail
 drwxr-xr-x 2 spinymouse  spinymouse4096 Oct 13 22:47 Desktop
 drwxr-xr-x 2 spinymouse  spinymouse4096 Nov  1 18:19 Documents
 drwxr-xr-x 2 spinymouse  spinymouse4096 Nov 24 15:56 Downloads
 -rw-rw-r-- 1 spinymouse  spinymouse   53724 Nov 24 14:39 freebsd_logo1.png
 -rw-rw-r-- 1 spinymouse  spinymouse  127098 Nov 24 14:39 freebsd_logo1.xcf
 -rw-r--r-- 1 spinymouse  spinymouse 2492653 Nov 12 09:54 hdsp.1.mix
 -rw-rw-r-- 1 spinymouse  spinymouse   8 Nov 27 15:57 logfile
 drwx-- 7 spinymouse  spinymouse4096 Nov 15 18:50 Spinymouse
 
 So how can I mount e.g. an USB stick?
 
 And could I then run something similar to
 
 # echo gpart show ada0s1  /path/to/usbstick/logfile
 # gpart show ada0s1  /path/to/usbstick/logfile
 # echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
 # echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
    oops, but I guess you know what I mean
 etc.?
 
 I would like to post the output to the list.
 
 TIA
 Ralf


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


Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Warren Block

On Tue, 27 Nov 2012, Ralf Mardorf wrote:


All instructions failed. Is there a way to mount a linux partition or
USB-stick and to redirect the output of the gpart commands to a log
file?

In linux after mounting a partition or usb-stick I would do it like
that:

spinymouse@q:~$ echo $ ls -l  logfile
spinymouse@q:~$ ls -l  logfile


Too much work.  Use script(1):
$ script /tmp/session.log
$ (do a bunch of stuff)
$ exit

And session.log will contain everything.  Including control characters, 
so edit it before posting.



So how can I mount e.g. an USB stick?


This is in the Handbook somewhere, but a quick look didn't find it, so:

# mount -t msdosfs /dev/da0s1 /mnt

That assumes there is a FAT filesystem in the first partition of the 
memory stick, a common setup.  Please don't use NTFS.

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Mike Clarke
On Tuesday 27 November 2012 15:15:52 Ralf Mardorf wrote:

  And could I then run something similar to
 
  # echo gpart show ada0s1  /path/to/usbstick/logfile
  # gpart show ada0s1  /path/to/usbstick/logfile
  # echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
  # echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
     oops, but I guess you know what I mean

  etc.?
 
  I would like to post the output to the list.

The neater way

 # script /path/to/usbstick/logfile
 # gpart show ada0
 # gpart add -t freebsd -i1 ada0
 # gpart show ada0
 # CTRL+D

Then /path/to/usbstick/logfile will contain a full log of your commands and 
output showing the partition information for ada0 before and after creating 
the new partition.

-- 
Mike Clarke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [Bulk] Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
On Tue, 2012-11-27 at 09:05 -0700, Warren Block wrote:
 On Tue, 27 Nov 2012, Ralf Mardorf wrote:
 
  All instructions failed. Is there a way to mount a linux partition or
  USB-stick and to redirect the output of the gpart commands to a log
  file?
 
  In linux after mounting a partition or usb-stick I would do it like
  that:
 
  spinymouse@q:~$ echo $ ls -l  logfile
  spinymouse@q:~$ ls -l  logfile
 
 Too much work.  Use script(1):
 $ script /tmp/session.log
 $ (do a bunch of stuff)
 $ exit
 
 And session.log will contain everything.  Including control characters, 
 so edit it before posting.
 
  So how can I mount e.g. an USB stick?
 
 This is in the Handbook somewhere, but a quick look didn't find it, so:
 
 # mount -t msdosfs /dev/da0s1 /mnt
 
 That assumes there is a FAT filesystem in the first partition of the 
 memory stick, a common setup.  Please don't use NTFS.

Thank you :)

I use USB sticks as they are, with FAT, if I e.g. need Linux
permissions, I use an archive on the USB stick.

Yes, I'll edit the logfile, before posting.

Indeed script /tmp/session.log is better, than my stupid idea.

Regards,
Ralf

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


Re: [Bulk] Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
# mount -t msdosfs /dev/da0s1 /mnt
did not work. It has to be
# mount -t msdosfs /dev/da0 /mnt

This is from the log:

# gpart show ada0
=   63  625142385  ada0  MBR  (298G)
 63  121274683- free -  (57G)
  121274746  503862599 2  ebr  [active]  (240G)
  625137345   5103- free -  (2.5M)

# gpart add -t freebsd -i1 ada0
ada0s1 added

Now it becomes complicated, since the log is a mess:

=   63  625142385  ada0  MBR  (298G)
 63  121274622 1  freebsd  (57G)
  121274685 61- free -  (30k)
  121274746  503862599 2  ebr  [active]  (240G)
  625137345   5103- free -  (2.5M)

# gpart show ada0s1
=0  121274622  ada0s1  EBR  (57G)
  0  121274622  - free -  (57G)

# gpart create -s bsd ada0s1
gpart: geom 'ada0s1': File exists

# gpart create -s bsd da0s1
gpart: arg0 'da0s1': Invalid argument

And now log is missing output:

# gpart -t freebsd-ufs -a 4k -s 53g [???]
However, since create already didn't work, the missing output anyway is 
unimportant.

Regards,
Ralf





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


Re: [Bulk] Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
PS: In Linux the result does look like this:

$ sudo fdisk -l /dev/sda | grep BSD
/dev/sda1  63   12127468460637311   a5  FreeBSD
$ sudo parted -l | grep pri
 1  32.3kB  62.1GB  62.1GB  primary   ext3
 1  32.3kB  22.0GB  22.0GB  primary   ext4

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


Re: [Bulk] Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Warren Block

On Tue, 27 Nov 2012, Ralf Mardorf wrote:


This is from the log:

# gpart show ada0
=   63  625142385  ada0  MBR  (298G)
63  121274683- free -  (57G)
 121274746  503862599 2  ebr  [active]  (240G)
 625137345   5103- free -  (2.5M)

# gpart add -t freebsd -i1 ada0
ada0s1 added

Now it becomes complicated, since the log is a mess:

=   63  625142385  ada0  MBR  (298G)
63  121274622 1  freebsd  (57G)
 121274685 61- free -  (30k)
 121274746  503862599 2  ebr  [active]  (240G)
 625137345   5103- free -  (2.5M)


That looks okay.


# gpart show ada0s1
=0  121274622  ada0s1  EBR  (57G)
 0  121274622  - free -  (57G)

# gpart create -s bsd ada0s1
gpart: geom 'ada0s1': File exists


Sorry, no idea on that.  Because of the extended partitions, maybe.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote:
  # gpart create -s bsd ada0s1
  gpart: geom 'ada0s1': File exists
 
 Sorry, no idea on that.  Because of the extended partitions, maybe.

Thank you,

so this should work and if it doesn't work, I can't install FreeBSD?

Anything else I can try?

FWIW on this machine are Linux installs only, used file systems are
ext3, ext4 and ntfs [1].

Regards,
Ralf

[1]
spinymouse@q:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f2fc6

   Device Boot  Start End  Blocks   Id  System
/dev/sda1  63   12127468460637311   a5  FreeBSD
/dev/sda2   *   121274746   625137344   251931299+   5  Extended
/dev/sda5   121274748   183751469312383617  HPFS/NTFS/exFAT
/dev/sda6   183751533   24642103431334751   83  Linux
/dev/sda7   246421098   30928337931431141   83  Linux
/dev/sda8   309283443   36196761526342086+  83  Linux
/dev/sda9   361969664   43561779136824064   83  Linux
/dev/sda10  435618603   440164934 2273166   82  Linux swap /
Solaris
/dev/sda11  440164998   56187337460854188+  83  Linux
/dev/sda12  561873438   569215079 3670821   83  Linux
/dev/sda13  569215143   61551440923149633+  83  Linux
/dev/sda14  615514473   625137344 4811436   83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000525e5

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1  634297387421486906   83  Linux
/dev/sdb242973936   976768064   466897064+   5  Extended
/dev/sdb5429739388593168421478873+  83  Linux
/dev/sdb685931748   12869671421382483+  83  Linux
/dev/sdb7   128696778   133789319 2546271   82  Linux swap /
Solaris
/dev/sdb8   133789383   17594387921077248+  83  Linux
/dev/sdb9   175943943   21919085921623458+  83  Linux
/dev/sdb10  219190923   220211199  510138+  83  Linux
/dev/sdb11  220213248   24668774313237248   83  Linux
/dev/sdb12  246689792   34754969550429952   83  Linux
/dev/sdb13  347550273   557309951   104879839+  83  Linux
/dev/sdb14  557312000   976766975   209727488   83  Linux

spinymouse@q:~$ sudo parted -l
Model: ATA SAMSUNG HD321KJ (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End SizeType  File system Flags
 1  32.3kB  62.1GB  62.1GB  primary   ext3
 2  62.1GB  320GB   258GB   extended  boot
 5  62.1GB  94.1GB  32.0GB  logical   ntfs
 6  94.1GB  126GB   32.1GB  logical   ext3
 7  126GB   158GB   32.2GB  logical   ext3
 8  158GB   185GB   27.0GB  logical   ext3
 9  185GB   223GB   37.7GB  logical   ext3
10  223GB   225GB   2328MB  logical   linux-swap(v1)
11  225GB   288GB   62.3GB  logical   ext3
12  288GB   291GB   3759MB  logical   ext3
13  291GB   315GB   23.7GB  logical   ext3
14  315GB   320GB   4927MB  logical   ext3


Model: ATA SAMSUNG HD502HJ (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End SizeType  File system Flags
 1  32.3kB  22.0GB  22.0GB  primary   ext4
 2  22.0GB  500GB   478GB   extended
 5  22.0GB  44.0GB  22.0GB  logical   ext3
 6  44.0GB  65.9GB  21.9GB  logical   ext3
 7  65.9GB  68.5GB  2607MB  logical   linux-swap(v1)
 8  68.5GB  90.1GB  21.6GB  logical   ext4
 9  90.1GB  112GB   22.1GB  logical   ext4
10  112GB   113GB   522MB   logical   ext4
11  113GB   126GB   13.6GB  logical   ext4
12  126GB   178GB   51.6GB  logical   ext4
13  178GB   285GB   107GB   logical   ext4
14  285GB   500GB   215GB   logical   ext4

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-25 Thread Ralf Mardorf
On Sat, 2012-11-24 at 20:06 -0700, Warren Block wrote:
 On Sat, 24 Nov 2012, Ralf Mardorf wrote:
 
  I use the amd64 install DVD.
 
  With or without deleting, I can't format a bootable FreeBSD partition to
  ada0s1, aka Linux /dev/sda1. FWIW if I reinstall GRUB legacy
  to /dev/sda, the boot flag will be set for the extended
  partition. /dev/sda1 is an empty ext3 partition, size 57.83 GiB.
 
 Delete it, or set it to type 0xa5.  I think the first is probably better 
 for bsdinstall to see it as available.  Expect boot loaders to be 
 overwritten, so make a backup, preferably of everything.

It already was deleted for the last attempts. Another day, fortunately
I've got much time, so I'll read how to use the shell for partitioning.

I don't know if I'm an idiot or if the installer is broken, most likely
I'm an idiot + the installer is broken.

Regards,
Ralf

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-25 Thread Polytropon
On Sun, 25 Nov 2012 02:34:28 +0100, Ralf Mardorf wrote:
 On Sun, 2012-11-25 at 00:27 +0100, Polytropon wrote:
  I meant the really manual mode (CLI) as to be seen in
  Fig. 3-10, named Shell (that's why the confusion, sorry).
  
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html
 
 Manually Create Partitions doesn't work. The MD5sum for the ISO was ok
 and the burned DVD was verified.

How does doesn't work appear?

As far as I know, the difference to manual is that in _this_
method, you need to create your partitions yourself (the
default behaviour in ye olde sysinstall); otherwise, I think
one partition covering the whole slice will be created, this
can be sub-optimum (especially in worse case scenarios).



 I did not test Shell until now and it's to late to search and read a
 howto.

The Shell way should always work, even when the installer
should know better. You can find details on how to use the
CLI tools in Warren's article.



 When startup finished I push enter  Install  keyboard: German
 ISO-8859-1  hostname: freebsd  [*] doc, games, lib32, ports, src 
 Guided Partitioning  Select the disk on which to install FreeBSD: ada0
  Partition (not Entire Disk) 

That's the correct approach.



 Continuing doesn't work, or I don't know what to do. FWIW, I'll use MBR
 and if possible / only.

Maybe it's because you have a totally non-standard content
already on the disk (many Linusi, extended DOS partitions
and so on, and the installer gets confused). That's why it
would probably be easier to drop to the Shell command line
and use either fdisk + bsdlabel _or_ gpart.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to create a partition for FreeBSD 9.0?

2012-11-25 Thread Ralf Mardorf
On Sun, 2012-11-25 at 13:19 +0100, Polytropon wrote:
 How does doesn't work appear?

My apologies that I didn't wrote all error messages, they were about
non-bootable and other things. I guess it'
s better to ignore this and to continue with ...

 Maybe it's because you have a totally non-standard content
 already on the disk (many Linusi, extended DOS partitions
 and so on, and the installer gets confused). That's why it
 would probably be easier to drop to the Shell command line
 and use either fdisk + bsdlabel _or_ gpart.

... gpart.

Right now I'll shut down Linux and restart the installer and simply try,
what I've written here:

http://lists.freebsd.org/pipermail/freebsd-questions/2012-November/246767.html

I'll wait a few minutes, perhaps you read it and say if this is ok.

Regards,
Ralf


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


Re: How to create a partition for FreeBSD 9.0?

2012-11-25 Thread Warren Block

On Sun, 25 Nov 2012, Ralf Mardorf wrote:


On Sun, 2012-11-25 at 13:19 +0100, Polytropon wrote:

How does doesn't work appear?


My apologies that I didn't wrote all error messages, they were about
non-bootable and other things. I guess it'
s better to ignore this and to continue with ...


Maybe it's because you have a totally non-standard content
already on the disk (many Linusi, extended DOS partitions
and so on, and the installer gets confused). That's why it
would probably be easier to drop to the Shell command line
and use either fdisk + bsdlabel _or_ gpart.


... gpart.

Right now I'll shut down Linux and restart the installer and simply try,
what I've written here:

http://lists.freebsd.org/pipermail/freebsd-questions/2012-November/246767.html

I'll wait a few minutes, perhaps you read it and say if this is ok.


No, it confuses GPT and MBR issues.

I thought bsdinstall would install to an MBR partition.  That would be 
the easiest way.  If not...


Make a full backup first.

Assuming the first slice has been deleted.

# gpart add -t freebsd -i1 ada0

Create a FreeBSD disklabel/bsdlabel partitioning scheme inside the 
FreeBSD slice:


# gpart create -s bsd da0s1

Create FreeBSD partitions.  Sizes may be adjusted, but these will work.

# gpart add -t freebsd-ufs  -a 4k -s 2g   da0s1
# gpart add -t freebsd-swap -a 4k -s 512m da0s1
# gpart add -t freebsd-ufs  -a 4k -s 1g   da0s1
# gpart add -t freebsd-ufs  -a 4k -s 256m da0s1
# gpart add -t freebsd-ufs  -a 4k da0s1

After you have done all this, you can go back and use the Partition 
selection in bsdinstall to enter types and mountpoints for each.  Or you 
can newfs each and then mount them, setting the location in 
BSDINSTALL_CHROOT.

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-25 Thread Ralf Mardorf
I can't backup the whole HDDs :(. I backup some data from HDD1 to HDD2
and te other data from HDD2 to HDD1.

On Sun, 2012-11-25 at 13:43 -0700, Warren Block wrote:
 Assuming the first slice has been deleted.

Correct.

 # gpart add -t freebsd -i1 ada0
 
 Create a FreeBSD disklabel/bsdlabel partitioning scheme inside the 
 FreeBSD slice:
 
 # gpart create -s bsd da0s1
 
 Create FreeBSD partitions.  Sizes may be adjusted, but these will work.
 
 # gpart add -t freebsd-ufs  -a 4k -s 2g   da0s1
 # gpart add -t freebsd-swap -a 4k -s 512m da0s1
 # gpart add -t freebsd-ufs  -a 4k -s 1g   da0s1
 # gpart add -t freebsd-ufs  -a 4k -s 256m da0s1
 # gpart add -t freebsd-ufs  -a 4k da0s1
 
 After you have done all this, you can go back and use the Partition 
 selection in bsdinstall to enter types and mountpoints for each.  Or you 
 can newfs each and then mount them, setting the location in 
 BSDINSTALL_CHROOT.

I would prefer to continue with the installer.

However, I guess for my needs just / is needed, so I guess

# gpart add -t freebsd-swap -a 4k -s 512m da0s1
# gpart add -t freebsd-ufs  -a 4k da0s1

is what I should run?!

512m (it doesn't matter to use m or M?) is enough swap? I've got 4GB
RAM. On Linux I use 2 swaps each around 2GB, but they are not much used.
For Linux there are no valid rules any more, how to set up the swap, or
at least I don't know the rules.

Thank you,
Ralf

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-25 Thread Polytropon
On Sun, 25 Nov 2012 22:09:42 +0100, Ralf Mardorf wrote:
 I can't backup the whole HDDs :(. I backup some data from HDD1 to HDD2
 and te other data from HDD2 to HDD1.

Per definition, that's just a copy, not a backup. :-)



 I would prefer to continue with the installer.
 
 However, I guess for my needs just / is needed, so I guess
 
 # gpart add -t freebsd-swap -a 4k -s 512m da0s1
 # gpart add -t freebsd-ufs  -a 4k da0s1
 
 is what I should run?!
 
 512m (it doesn't matter to use m or M?) is enough swap?

If you have sufficient disk space, going for about 2 GB swap
won't be problematic (and offer you some free space for
unexpected use of swap).

From man gpart: Its size is given by the -s size option.
SI unit suffixes are allowed. The SI unit suffix per
definition is M, but if m also works, both seem to be valid.
There's an example reading /sbin/gpart add -s 512M -t freebsd-ufs da0
in the EXAMPLES section.


 I've got 4GB
 RAM. On Linux I use 2 swaps each around 2GB, but they are not much used.
 For Linux there are no valid rules any more, how to set up the swap, or
 at least I don't know the rules.

In fact, there are no definite rules anymore. The use of swap
depends on too many factors (HDD or SSD, how many, RAID layout,
RAM in machine, applications, ...) to make an easy rule. But
better have swap you don't need than to need swap you don't
have. :-)



I still wonder how or why the new installer fails with the
task discussed here. Basically, if there is free space on the
disk, one should be able to use fdisk to allocate it to a
FreeBSD slice (cf. DOS primary partition) and then use
disklabel (bsdlabel) to create the required partitions inside
this slice (/ and swap, in your case). There would be no need
to write any boot codes or MBR stuff as GRUB will chainload
the FreeBSD loader (hd0,a:/boot/loader).

Modern technology... :-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to create a partition for FreeBSD 9.0?

2012-11-25 Thread Warren Block

On Sun, 25 Nov 2012, Ralf Mardorf wrote:


I can't backup the whole HDDs :(. I backup some data from HDD1 to HDD2
and te other data from HDD2 to HDD1.

On Sun, 2012-11-25 at 13:43 -0700, Warren Block wrote:

Assuming the first slice has been deleted.


Correct.


# gpart add -t freebsd -i1 ada0

Create a FreeBSD disklabel/bsdlabel partitioning scheme inside the
FreeBSD slice:

# gpart create -s bsd da0s1

Create FreeBSD partitions.  Sizes may be adjusted, but these will work.

# gpart add -t freebsd-ufs  -a 4k -s 2g   da0s1
# gpart add -t freebsd-swap -a 4k -s 512m da0s1
# gpart add -t freebsd-ufs  -a 4k -s 1g   da0s1
# gpart add -t freebsd-ufs  -a 4k -s 256m da0s1
# gpart add -t freebsd-ufs  -a 4k da0s1

After you have done all this, you can go back and use the Partition
selection in bsdinstall to enter types and mountpoints for each.  Or you
can newfs each and then mount them, setting the location in
BSDINSTALL_CHROOT.


I would prefer to continue with the installer.

However, I guess for my needs just / is needed, so I guess

# gpart add -t freebsd-swap -a 4k -s 512m da0s1
# gpart add -t freebsd-ufs  -a 4k da0s1


I think we just found in another thread that the UFS partition must be 
first, but it will have to have a size stated.



512m (it doesn't matter to use m or M?) is enough swap? I've got 4GB
RAM. On Linux I use 2 swaps each around 2GB, but they are not much used.


Use more if you like.  It will not hurt, and might be useful in some 
situations.  The m or g is not case-sensitive.


So the command above to allocate 40G for a filesystem and the rest to 
swap would be


# gpart add -t freebsd-ufs  -a 4k -s 40g da0s1
# gpart add -t freebsd-swap -a 4k -s da0s1

Bootcode might also be needed on the FreeBSD slice, but I have not used 
grub, so don't know for sure.

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


How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Ralf Mardorf
I use the amd64 install DVD.

With or without deleting, I can't format a bootable FreeBSD partition to
ada0s1, aka Linux /dev/sda1. FWIW if I reinstall GRUB legacy
to /dev/sda, the boot flag will be set for the extended
partition. /dev/sda1 is an empty ext3 partition, size 57.83 GiB.

Regards,
Ralf

PS:
spinymouse@q:~$ sudo fdisk -l /dev/sda

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f2fc6

   Device Boot  Start End  Blocks   Id  System
/dev/sda1  63   12127468460637311   83  Linux
/dev/sda2   *   121274746   625137344   251931299+   5  Extended
/dev/sda5   121274748   183751469312383617  HPFS/NTFS/exFAT
/dev/sda6   183751533   24642103431334751   83  Linux
/dev/sda7   246421098   30928337931431141   83  Linux
/dev/sda8   309283443   36196761526342086+  83  Linux
/dev/sda9   361969664   43561779136824064   83  Linux
/dev/sda10  435618603   440164934 2273166   82  Linux swap / Solaris
/dev/sda11  440164998   56187337460854188+  83  Linux
/dev/sda12  561873438   569215079 3670821   83  Linux
/dev/sda13  569215143   61551440923149633+  83  Linux
/dev/sda14  615514473   625137344 4811436   83  Linux
spinymouse@q:~$ sudo fdisk -l /dev/sdb

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000525e5

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1  634297387421486906   83  Linux
/dev/sdb242973936   976768064   466897064+   5  Extended
/dev/sdb5429739388593168421478873+  83  Linux
/dev/sdb685931748   12869671421382483+  83  Linux
/dev/sdb7   128696778   133789319 2546271   82  Linux swap / Solaris
/dev/sdb8   133789383   17594387921077248+  83  Linux
/dev/sdb9   175943943   21919085921623458+  83  Linux
/dev/sdb10  219190923   220211199  510138+  83  Linux
/dev/sdb11  220213248   24668774313237248   83  Linux
/dev/sdb12  246689792   34754969550429952   83  Linux
/dev/sdb13  347550273   557309951   104879839+  83  Linux
/dev/sdb14  557312000   976766975   209727488   83  Linux
spinymouse@q:~$ sudo grub-install /dev/sda
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Polytropon
On Sat, 24 Nov 2012 23:14:40 +0100, Ralf Mardorf wrote:
 I use the amd64 install DVD.
 
 With or without deleting, I can't format a bootable FreeBSD partition to
 ada0s1, aka Linux /dev/sda1.

You mention ada0s1. This is not a partition. It's called
a slice (different term: DOS primary partition). You
need to create partitions inside the slice (or one covering
the whole slice, typically not recommended). To _format_
a partition (freebsd-ufs GPT, or MBR slice + partitions),
newfs is the tool.

I know this might sound confusing, taking DOS primary
partitions, DOS extended partition and logical volume
inside a DOS extended partition into account. Still it's
helpful to know the proper BSD terminology for those things,
and the understanding of _what_ a partition is (it's a
part of a DOS primary partition, so to say - it works
like the logical volume inside a DOS extended partition,
but without requiring the DOS extended partition).



 FWIW if I reinstall GRUB legacy
 to /dev/sda, the boot flag will be set for the extended
 partition. /dev/sda1 is an empty ext3 partition, size 57.83 GiB.

I think it would be better to delete the partition (not empty
partition, but then no partition) and let the installer
allocate the free space to a slice. Then you shouldn't need
to bother with boot flags as you're probably going to chainload
per GRUB.

When you have created the partition, either by using gpart for
the more convenient GPT or MBR approach (gpart supports this
mechanism), or by using fdisk for the traditional MBR approach,
you can create partitions inside this slice, for example a
root partition, a swap partition, and maybe partitions for
functional separation of OS and data components, such as /tmp,
/var, /usr and /home. You can do this as mentioned with
fdisk + bsdlabel (MBR approach) or gpart (GPT approach,
but only if this is supported by the rest of your disk
organisation).



Device Boot  Start End  Blocks   Id  System
 /dev/sda1  63   12127468460637311   83  Linux

This is the partition you're going to install FreeBSD to?
Good, just delete it and let the installer do the work. :-)

You can also switch to manual mode and use the CLI tools to
create a slice and partitions. It's not very complicated and
should be possible from the Fixit live system (not tested).

See this document for details on partitioning preparation
and disk initialisation:

http://www.wonkity.com/~wblock/docs/html/disksetup.html



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Ralf Mardorf
On Sat, 2012-11-24 at 23:35 +0100, Polytropon wrote:
 Device Boot  Start End  Blocks   Id  System
  /dev/sda1  63   12127468460637311   83  Linux
 
 This is the partition you're going to install FreeBSD to?
 Good, just delete it and let the installer do the work. :-)

Yes, but the install doesn't do it! I can delete it now, instead of
trying to delete it with the installer and see if the installer will
work then.

To be continued ...

Thank you,
Ralf


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


Re: How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Ralf Mardorf
On Sat, 2012-11-24 at 23:35 +0100, Polytropon wrote:
 You can also switch to manual mode

I did this first and it didn't work.

Regards,
Ralf

PS: I very often receive mails two times :(, from the list and directly
send to me. I notice that mailing list options for the MUA are broken.
Is mailman misconfigured or did I miss something I should take care off?
I don't have such issues with other mailing lists.

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Polytropon
On Sun, 25 Nov 2012 00:07:09 +0100, Ralf Mardorf wrote:
 On Sat, 2012-11-24 at 23:35 +0100, Polytropon wrote:
  Device Boot  Start End  Blocks   Id  System
   /dev/sda1  63   12127468460637311   83  Linux
  
  This is the partition you're going to install FreeBSD to?
  Good, just delete it and let the installer do the work. :-)
 
 Yes, but the install doesn't do it! I can delete it now, instead of
 trying to delete it with the installer and see if the installer will
 work then.

That sounds good. The installer should be able to detect
the free space and assign it to a slice (that can then
used to create partitions inside it) or GPT partitions
(until the free space is consumed).



On Sun, 25 Nov 2012 00:14:49 +0100, Ralf Mardorf wrote:
 On Sat, 2012-11-24 at 23:35 +0100, Polytropon wrote:
  You can also switch to manual mode
 
 I did this first and it didn't work.

I meant the really manual mode (CLI) as to be seen in
Fig. 3-10, named Shell (that's why the confusion, sorry).

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html

I have to admit that I'm not very familiar with the new
installer (bsdinstall), I've been occassionally using
the old installer (sysinstall) in the past, with less
options where one could do something wrong. :-)

It's important that you either make sure there is one
free slice (means: max. 3 DOS primary partitions are
defined, one slot is free), or use GPT (command line
tool: gpart).

This is what you should be able to do when using the
Shell option, even though the guided and manual mode
should work. What's exceptional in your case: You
have defined a lot of partitions for Linux, maybe this
confuses the new installer. :-)

You also should decide _which_ partitioning approach
works for you - MBR or (probably) GPT. This also depends
on how you have organized your Linusi.

The use of the CLI tools for this approach are documented
in Warren's article I've mentioned in a previous message.



 PS: I very often receive mails two times :(, from the list and directly
 send to me. I notice that mailing list options for the MUA are broken.
 Is mailman misconfigured or did I miss something I should take care off?
 I don't have such issues with other mailing lists.

Sorry, don't mind: This is obviously a problem on _my_ side,
the reply all vs. reply to mailing-list. The list system
should be working properly; you should receive this message
now from the list (as it is intended).

I'm just too stupid to use a computer. :-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


OT: How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Ralf Mardorf
On Sun, 2012-11-25 at 00:27 +0100, Polytropon wrote:
 I'm just too stupid to use a computer. :-)

I once wanted to delete a broken Linux, before restoring it from a
backup, but by accident deleted the broken Linux + the only backup too.
No drugs involved. In around 20 years using computers, I was able to
pull off a feat like this for only one time.


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


Re: How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Ralf Mardorf
On Sun, 2012-11-25 at 00:27 +0100, Polytropon wrote:
 I meant the really manual mode (CLI) as to be seen in
 Fig. 3-10, named Shell (that's why the confusion, sorry).
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html

Manually Create Partitions doesn't work. The MD5sum for the ISO was ok
and the burned DVD was verified.

I did not test Shell until now and it's to late to search and read a
howto.

When startup finished I push enter  Install  keyboard: German
ISO-8859-1  hostname: freebsd  [*] doc, games, lib32, ports, src 
Guided Partitioning  Select the disk on which to install FreeBSD: ada0
 Partition (not Entire Disk) 

Continuing doesn't work, or I don't know what to do. FWIW, I'll use MBR
and if possible / only.

Regards,
Ralf

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Ralf Mardorf
On Sun, 2012-11-25 at 02:34 +0100, Ralf Mardorf wrote:
 On Sun, 2012-11-25 at 00:27 +0100, Polytropon wrote:
  I meant the really manual mode (CLI) as to be seen in
  Fig. 3-10, named Shell (that's why the confusion, sorry).

PS: Don't worry, it was clear what you wanted to say. As a newbie
regarding to this kind of partitioning, I just prefer to test the
ncurses way first.

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


Re: How to create a partition for FreeBSD 9.0?

2012-11-24 Thread Warren Block

On Sat, 24 Nov 2012, Ralf Mardorf wrote:


I use the amd64 install DVD.

With or without deleting, I can't format a bootable FreeBSD partition to
ada0s1, aka Linux /dev/sda1. FWIW if I reinstall GRUB legacy
to /dev/sda, the boot flag will be set for the extended
partition. /dev/sda1 is an empty ext3 partition, size 57.83 GiB.


Delete it, or set it to type 0xa5.  I think the first is probably better 
for bsdinstall to see it as available.  Expect boot loaders to be 
overwritten, so make a backup, preferably of everything.

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