Re: Linux-Partition umlabeln

From: Harold Gutch <logix(at)foobar.franken.de>
Date: Tue, 16 Dec 2003 00:27:57 +0100

On Mon, Dec 15, 2003 at 08:15:36PM +0100, Karsten Rothemund wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hallo Liste,
>
> folgende Situation: mein Heimrechner besitzt 2 Festplatten. Platte 1
> (ad0) ist vollstaendig fuer FreeBSD gelabelt und soll so bleiben.
> Platte 2 (ad2) ist aus der Linuxzeit etwas zersplittert :
>
> # fdisk -v /dev/ad2
> ...
> The data for partition 1 is:
> sysid 130,(Linux swap or Solaris x86)
> ~ start 63, size 2097585 (1024 Meg), flag 0
> ~ beg: cyl 0/ head 1/ sector 1;
> ~ end: cyl 141/ head 19/ sector 63
> The data for partition 2 is:
> sysid 131,(Linux filesystem)
> ~ start 2097648, size 40960080 (20000 Meg), flag 0
> ~ beg: cyl 141/ head 20/ sector 1;
> ~ end: cyl 1023/ head 235/ sector 63
> The data for partition 3 is:
> sysid 165,(FreeBSD/NetBSD/386BSD)
> ~ start 43057728, size 117028800 (57142 Meg), flag 80 (active)
> ~ beg: cyl 1023/ head 255/ sector 63;
> ~ end: cyl 1023/ head 43/ sector 63
> The data for partition 4 is:
> <UNUSED>
>
> d.h. da ist eine Linux-SWAP-Partition (1GB) und eine
> Linux(=ext2)-Partition von 20 GB. Daran schliesst sich dann das ca.
> 60GB-Slice von FreeBSD mit den wichtigen Filesystemen an:
> # mount
> /dev/ad2s3a on / (ufs, local)
> /dev/ad2s3g on /home (ufs, local, soft-updates)
> /dev/ad2s3f on /usr (ufs, local, soft-updates)
> /dev/ad2s3e on /var (ufs, local, soft-updates)
> /dev/ad0s1e on /home/karo/Fotos (ufs, local, soft-updates)
> /dev/ad0s1f on /usr/ports (ufs, local, soft-updates)
> /dev/ad0s1g on /usr/obj (ufs, local, soft-updates)
>
> Nun moechte ich gerne die 20 GB fuer FreeBSD nutzbar machen
> (vielleicht koennte man ja auch die SWAP-Partition in FreeBSD
> einbauen). Bevor ich aber mein ganzes System gefaehrde, wollte ich
> erstmal die Gurus fragen, bevor ich anfange an der Platte zu labeln.

Du musst nichts umlabeln, sondern einfach nur /dev/ad2s2
irgendwohin mounten. Dein Kernel muss natuerlich noch ext2fs
unterstuetzen, das kannst du aber auch als Modul laden.

bye,
  Harold

To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Tue 16 Dec 2003 - 00:28:29 CET

search this site