I want to install Fedora to sdb. The boot should be ext2, but what about the swap? The root partition should be ext3.
For instance:
mkfs -t ext2 -j /dev/sdb2
would format the third partition?
then,
mkfs -t ext2 /dev/sdb0 mkfs -t ext2 /dev/sdb1
to format the boot and swap, respectively?
Once things are formatted, can I mount the filesystems and copy some files over from Fedora 7 to the slave, sdb ? Or, do I have to install by booting a cd?
here's what I have so far:
[thufir@localhost ~]$ su - Password: [root@localhost ~]# [root@localhost ~]# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS /dev/sda2 1913 1925 104422+ 83 Linux /dev/sda3 1926 9729 62685630 8e Linux LVM
Disk /dev/sdb: 30.7 GB, 30750031872 bytes 255 heads, 63 sectors/track, 3738 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sdb1 1 13 104391 83 Linux /dev/sdb2 14 77 514080 83 Linux /dev/sdb3 78 3738 29406982+ 83 Linux [root@localhost ~]# [root@localhost ~]# date Wed Jun 27 21:06:41 PDT 2007 [root@localhost ~]# [root@localhost ~]#
thanks,
Thufir
On Thu, 28 Jun 2007 04:12:22 +0000, Thufir wrote:
I want to install Fedora to sdb. The boot should be ext2, but what about the swap? The root partition should be ext3.
I'll be trying to install FC3. Here's what I have so far in terms of the filesystem:
[root@localhost ~]# [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS /dev/sda2 1913 1925 104422+ 83 Linux /dev/sda3 1926 9729 62685630 8e Linux LVM
Disk /dev/sdb: 30.7 GB, 30750031872 bytes 255 heads, 63 sectors/track, 3738 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sdb1 * 1 13 104391 83 Linux /dev/sdb2 14 77 514080 82 Linux swap / Solaris /dev/sdb3 78 3738 29406982+ 83 Linux [root@localhost ~]# [root@localhost ~]# date Wed Jun 27 21:42:36 PDT 2007 [root@localhost ~]#
Now, when I get started anaconda will take care of the mount point automagically?
thanks,
Thufir
Well, I did get it to install :)
So, now to just get it all booting, and mounting. Fedora 7, FC3, and win2k :)
[root@localhost ~]# [root@localhost ~]# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 1912 15358108+ 7 HPFS/NTFS /dev/hda2 1913 1925 104422+ 83 Linux /dev/hda3 1926 9729 62685630 8e Linux LVM
Disk /dev/hdb: 30.7 GB, 30750031872 bytes 255 heads, 63 sectors/track, 3738 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hdb1 * 1 13 104391 83 Linux /dev/hdb2 14 3738 29921062+ 8e Linux LVM [root@localhost ~]# [root@localhost ~]# cat /etc/fstab # This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/VolGroup01/LogVol00 / ext3 defaults 1 1 LABEL=/boot1 /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/VolGroup01/LogVol01 swap swap defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /dev/hdd /media/cdrecorder auto pamconsole,ro,exec,noauto,managed 0 0 /dev/hdc /media/cdrom auto pamconsole,ro,exec,noauto,managed 0 0 [root@localhost ~]# [root@localhost ~]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd1,0) # kernel /vmlinuz-version ro root=/dev/VolGroup01/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd1,0)/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.9-1.667) root (hd1,0) kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup01/LogVol00 rhgb quiet initrd /initrd-2.6.9-1.667.img title Other rootnoverify (hd0,0) chainloader +1 [root@localhost ~]# [root@localhost ~]# date Wed Jun 27 23:15:36 PDT 2007 [root@localhost ~]# [root@localhost ~]#
thanks,
Thufir
I'm on the live, now just have to edit the grub file on hda so that I can boot into win2k, Fedora 7 or FC3 :)
from the live cd:
[fedora@localhost ~]$ [fedora@localhost ~]$ [fedora@localhost ~]$ su - [root@localhost ~]# [root@localhost ~]# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS /dev/sda2 1913 1925 104422+ 83 Linux /dev/sda3 1926 9729 62685630 8e Linux LVM
Disk /dev/sdb: 30.7 GB, 30750031872 bytes 255 heads, 63 sectors/track, 3738 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sdb1 * 1 13 104391 83 Linux /dev/sdb2 14 3738 29921062+ 8e Linux LVM
Disk /dev/dm-0: 4294 MB, 4294967296 bytes 255 heads, 63 sectors/track, 522 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 29.5 GB, 29595009024 bytes 255 heads, 63 sectors/track, 3598 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 1006 MB, 1006632960 bytes 255 heads, 63 sectors/track, 122 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3: 63.1 GB, 63149441024 bytes 255 heads, 63 sectors/track, 7677 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-3 doesn't contain a valid partition table
Disk /dev/dm-4: 1006 MB, 1006632960 bytes 255 heads, 63 sectors/track, 122 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-4 doesn't contain a valid partition table [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# mount /dev/sda2 /mnt/sda2 [root@localhost ~]# mount /dev/sdb1 /mnt/sdb1 [root@localhost ~]# [root@localhost ~]# ll /mnt/sda2/grub/grub.conf -rw------- 1 root root 1122 2007-06-27 03:10 /mnt/sda2/grub/grub.conf [root@localhost ~]# [root@localhost ~]# cat /mnt/sda2/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,1) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,1)/grub/splash.xpm.gz #hiddenmenu title Fedora (2.6.21-1.3228.fc7) root (hd0,1) kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.21-1.3228.fc7.img title Fedora (2.6.21-1.3194.fc7) root (hd0,1) kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.21-1.3194.fc7.img title win2k rootnoverify (hd0,0) chainloader +1
#OLD GRUB ADDED ON
title Fedora Core (2.6.20-1.2952.fc6) root (hd1,1) kernel /vmlinuz-2.6.20-1.2952.fc6 ro root=/dev/VolGroup01/LogVol00 rhgb quiet initrd /initrd-2.6.20-1.2952.fc6.img
title win2k map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) chainloader +1 [root@localhost ~]# [root@localhost ~]# cat /mnt/sdb1/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd1,0) # kernel /vmlinuz-version ro root=/dev/VolGroup01/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd1,0)/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.9-1.667) root (hd1,0) kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup01/LogVol00 rhgb quiet initrd /initrd-2.6.9-1.667.img title Other rootnoverify (hd0,0) chainloader +1 [root@localhost ~]# [root@localhost ~]# date Thu Jun 28 06:45:42 EDT 2007 [root@localhost ~]# [root@localhost ~]#
thanks,
Thufir
On Thu, 2007-06-28 at 04:12 +0000, Thufir wrote:
mkfs -t ext2 /dev/sdb0 mkfs -t ext2 /dev/sdb1
to format the boot and swap, respectively?
"mkswap" to make a swap partition.
Using volume labels? Read the mkswap man file to see how to make a volume label at the same time. Don't trust me, but I did:
mkswap -c -L drivename-swap /dev/sdb7
The "-c" checks the drive for errors as it goes along. I did the same with formatting the main partitions, since suffering drive problems in the past. I'd rather find out about problems while setting up a drive, rather than while trying to use the OS.
I have a box with two drives, and two OSs, so I gave each drive a name (individualised where I wrote "drivename"), to make it easy to use labels without name clashes.
mkfs.ext3 -c -v -L drivename/home /dev/sdb2
The "-v" gave me more information while it did its business.