LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-31-2003, 04:44 PM   #1
drick
LQ Newbie
 
Registered: Jul 2002
Posts: 23

Rep: Reputation: 15
Question relayour dual boot system


hi,

i have a dual boot system (xp pro with 2 ntfs drives, and red hat 9 with 2 jfs drives) and i want to do the following:

1. delete the xp partitions
2. add the drives into red hat
3. format them to jfs
4. do all this without reinstalling the os
5. modify the grub boot loader to not look for xp anymore

here is fdisk output:

# fdisk -l

Disk /dev/hdg: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdg1 * 1 13 104391 83 Linux
/dev/hdg2 14 14816 118905097+ 83 Linux
/dev/hdg3 14817 14946 1044225 82 Linux swap

Disk /dev/hdh: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdh1 * 1 9726 78124063+ 7 HPFS/NTFS

Disk /dev/hda: 10.0 GB, 10005037056 bytes
240 heads, 63 sectors/track, 1292 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1291 9759928+ 7 HPFS/NTFS

Disk /dev/hdb: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2434 19551073+ 83 Linux
 
Old 05-31-2003, 06:36 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
1. Unmount the partitions you wish to convert.
2. If you want to use the partitions as is, changing each one to jfs, then mkfs.jfs /dev/hd<whatever>.
3. Create mount points
4. Edit /etc/fstab to reflect
5. Edit /boot/grub/grub.conf and remove the Windows stanza.
 
Old 06-01-2003, 04:56 PM   #3
drick
LQ Newbie
 
Registered: Jul 2002
Posts: 23

Original Poster
Rep: Reputation: 15
Question weird

ok, here is what i did:

#mkfs.ext3 -L /data1 /dev/hda1
mke2fs 1.32 (09-Nov-2002)
Filesystem label=/data1
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1221600 inodes, 2439982 blocks
121999 blocks (5.00%) reserved for the super user
First data block=0
75 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override

# fdisk -l
Disk /dev/hda: 10.0 GB, 10005037056 bytes
240 heads, 63 sectors/track, 1292 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1291 9759928+ 7 HPFS/NTFS

added this line to /etc/fstab

LABEL=/data1 /data1 ext3 defaults 1 2

made a /data1 directory, and mounted it.

why does it still show up as hpfs in the fdisk??
 
Old 06-01-2003, 04:58 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
because the flag in the partition table is a static value, and doesn't actaully need to correspond to the format of the partition, use fdisk to toggle the type value.
 
Old 06-01-2003, 05:06 PM   #5
drick
LQ Newbie
 
Registered: Jul 2002
Posts: 23

Original Poster
Rep: Reputation: 15
i checked the man pages but don't see how to do that??

how should i do that?

[root@palpatine root]# fdisk -?
fdisk: invalid option -- ?

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors

[root@palpatine root]# fdisk

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...
[root@palpatine root]# fdisk -v
fdisk v2.11y
 
Old 06-01-2003, 05:10 PM   #6
drick
LQ Newbie
 
Registered: Jul 2002
Posts: 23

Original Poster
Rep: Reputation: 15
never mind, i looked in my oreilly book and found the answer..

#fdisk /dev/hda

thnx kewpie & piper

Last edited by drick; 06-01-2003 at 05:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system alarm on boot in slackware 10.0 but not win2000(dual boot) Arch Stanton Slackware 3 01-24-2005 10:33 AM
cloning both partitions, dual boot system, master boot record, logical volume manager saranga2000 Linux - Hardware 3 01-10-2005 11:04 AM
FC1 boot hangs on dual boot system billlee Fedora 10 05-10-2004 05:34 PM
Newbie needs Mandrake/Win98 dual-HD, dual boot system design help... buddha Linux - Newbie 20 09-04-2003 08:57 PM
What to do with /boot/System.map on dual Kernel boot? cathodion Linux - General 2 05-17-2002 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration