LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2003, 07:05 AM   #1
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
out with the old, in with the new


Hi,

I have Red Hat 7.2 on a partition, I now want to get rid of it totally and stick on a new distro (either Knoppix or Mandrake).

Should I:
a. delete it using a Live Linux CD (if so, what commands?)
b. format it using window boot disk (which also deletes everything) and then get cfdisk to convert the partition type to ext2/3
c. don't delete at all, and simply install a new distro. Presumably it will take care of th necessary disabling of the underlying Red Hat.

Thanks in adv for ans /cs.
 
Old 12-01-2003, 07:18 AM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
If you go for Knoppix, delete it before you start.
If you go for Mandrake, leave it. Mandy will take care of it.
 
Old 12-02-2003, 04:18 AM   #3
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
Ok, with Knoppix then, do I just "rm" and "rmdir" everything? I expect I'd need special switches to get rid of the hidden and system files ...
 
Old 12-02-2003, 04:36 AM   #4
Velvet Elvis
Member
 
Registered: Dec 2003
Distribution: debian (when I can) RHEL (when I must)
Posts: 98

Rep: Reputation: 15
I'd fdisk it rather than use rm. I've never used knoppix, so I have no idea what it expects your disk to look like before you use it, however.
 
Old 12-02-2003, 05:19 AM   #5
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
partition vs. filesystem

Well, I thought FDISK was pretty partition-oriented. I mean it would delete the partition for me, and actually leave the filesystem intact, as long as I give it another (compatible) partition to go to.

I'm not so interested in the partitions as such. It's the Red Hat filesystem, and how to "sweep" it off the HD safely.

Maybe Knoppix will write its own filesystem with total disregard for what's under it, though this sounds really sloppy. If I was using windows, I would just format the partition, but my trusty "Linux for TTs" book tells me there' s no equivalent MSDOS' FORMAT command in Linux.
 
Old 12-03-2003, 03:37 PM   #6
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
I'm revising my plans on this. If one has enough space on one's HD, it may not be necessary to get rid of the old Linux. So I'm now looking into creating a new partition for the new Linux. THat probably means I will have to use FDISK at some stage.
 
Old 12-03-2003, 03:45 PM   #7
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
Do you have a seperate /home partition??? If so, take care that you use expert partitioning to prevent re-formatting that partition. That way you can keep all your user data.
 
Old 12-03-2003, 04:04 PM   #8
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
Hi,

No I don't. I'm now trying to find out how to resize my rh7.2 PART (EXT3) and then create another one or two partitions which would hold my new Linux.

What's "expert partitioning"? Are you referring to a certain command, a certain procedure?
 
Old 12-03-2003, 04:06 PM   #9
Shachaf
Member
 
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30

Rep: Reputation: 15
mke2fs <your root filesystem> creates a new, empty ext2 filesystem. Give it the -j switch for ext3, and read the manpage for more details.
 
Old 12-03-2003, 05:38 PM   #10
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks 4 replies.

I read the mke2fs man (just about) and I don't understand how you can create a new filesystem, if you don't have a seperate partition for it to sit on.

If you do, that's fine, but I don't.

Anyhow, once you happen to have free, unpartitioned space on your HD, FDISK will allow you create a new partition, and even if it doesn't physically create a filesystem for you, it will allow you to tell the partition what type of filesystem to be expecting.

For my purposes mke2fs, isn't so interesting, but ... resize2fs is. However, it's really geared towards ext2 and not ext3, so I'm just trying to sort that out at the moment.
 
Old 12-04-2003, 05:39 PM   #11
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
I'm going to continue posting on this thread, because I think it does follow a valid and even (fairly) common line of investigation.
However, I still haven't sorted it out 100%. In fact, I've run into some problems.

What I had to do was convert ext3 to ext2 (using TUNE2FS), then resize (using RESIZE2FS) and finally repartition using CFDISK. It worked .. cough cough .. almost. I can still read the directories and files of my old RH7.2 installation but I can't boot into it.

Pending confirmation, it looks as if you have to tell the kernel somehow not to expect any journalling anymore (it is not enough for it to only see ext2, it does not make the assumption that just because it only sees an ext2, that there's no journalling). So I have to try and sort this out now.

However, as a halfway stop, I can report, that I have acheieved the reduction of an old ext 3 partition in order to make space for a new partition upon which I installed Knoppix/Debian Linux. So now I have two Linux Distros on the HD, as well as Windouse. Readable, writeable and not yet bootable, but that' s coming ...
 
Old 12-07-2003, 05:14 PM   #12
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
oh ... the loneliness of it all!

Anyhow, even if there's only one reader in the audience for this thread, and even if it happens to be the resident Forum beetle, I'm going to continue.

The way to clean up your windows MBR widely accepted as fdisk /mbr, where fdisk is the DOS programme on your emergency windows bootdisk.

I tried it and it worked well. I am now able to boot into Windows, and through my Linux bootdisk, boot into Knoppix. I cannot boot into Redhat, but I have access to all its files, anyhows I'm not particuclarly interested in it anymore.

I know I can clean up the procedure with LILO or GRUB, but really, I am operational now, and it isn't totally necessary.

So that's the conclusion of this thread. I got a (bearly) working Windblows-Knoppix Dual Boot Box.

END OF STORY ***
 
  


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 Off
HTML code is Off




All times are GMT -5. The time now is 09:23 PM.

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