LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-28-2003, 02:11 AM   #1
tinaa
Member
 
Registered: Mar 2003
Posts: 58

Rep: Reputation: 15
Question Newbie question....


Hello All,

I had created four partitions on my PC while installing the linux on a secondry HDD.

/other
/music
/movie
/games

The size of the secondry HDD is 40 GB. Now I want to reformat my secondry HDD and mount it again as /backup using ext3 filesystem without creating any trouble for my system.

Also it has enteries in /etc/fstab.

How do I safely do it. Please help.

Thank you,

Tinaa..
 
Old 03-28-2003, 09:21 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,531

Rep: Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224
So are you running a dual boot with windows on the primary HDD? Here is a couple of options.

First back up any data from the existing partitions you want to save.

Remove out any references in your fstab files for the mentioned partitions.

If so and you have access to Partition Magic you can use it to delete and resize the partition you want for your /backup. Reboot to linux to reformat the new partition to ext2 and then convert to ext3 (tune2fs -j /dev/hdx). Then create a mount point and create a line in the fstab.

The second method using linux. If you have a CD distro like Mandrake or Redhat that has a rescue mode on the install CD use that to boot up the PC. You can use parted to delete and resize similar to Partition Magic. Reformat like above.

If not then you will need a boot floppy with fdisk or cfdisk or parted.

I suggest reformating the new partition.

As long as you are carefull this is fairly safe. Of course backup anything important.
 
Old 03-28-2003, 02:00 PM   #3
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Don't have to cough up money for PM if you don't want to or can't.

I just used cfdisk to create the same partition structure I did with PM. Just boot any modern distro. Pick expert/advanced. You'll have a choice of fdisk or cfdisk. cfdisk is a simplified text version of PM. I love to learn. What do you know?

boot cd1
cfdisk /dev/hdb
delete all parts
create one full part
[write][quit]
mkfs -t ext3 /dev/hdb1
mount /dev/hdb1 /backup
pop open a can of coke/pepis and enjoy

fdisk-created Windows parts must be formatted by Windows. At least 98 wouldn't recognize it.
format c:
 
Old 03-28-2003, 02:14 PM   #4
tinaa
Member
 
Registered: Mar 2003
Posts: 58

Original Poster
Rep: Reputation: 15
Sorry I'll me More clear to you.

I have a WebHosting server with Redhat 7.3 . The HDD is 40 GB. and i have mounted partions as /usr /var /home /oldvar /oldusr /oldhome. I want to Remove the /oldxxx stuff and Recreate a /backup partion.
The server is a WebHosting server and I can't take a chance to make Trials on it.

Any Help Would be Appreciated.

Regards,
Tinaa
 
Old 03-28-2003, 03:46 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
1) Backup the files in
/other
/music
/movie
/games
2) Use either fdisk in DOS or LINUX and make a primary partition.
3) Format the drive and label it /backup. You can also label it as /root/backup so users can not access it.
4) Insert boot disk or knoppix and change your fstab file to suit your filesystem. Then reboot
5) Test to make sure you can access the partition.
6) To make a backup you can either use a script that is run every 5 minutes or a software RAID to mirror your web space.
 
Old 03-29-2003, 03:19 PM   #6
tinaa
Member
 
Registered: Mar 2003
Posts: 58

Original Poster
Rep: Reputation: 15
Hello,

Can u post me the link to download cfdisk for RH 7.3 or 7.2 as i didn't found it anywhere. I suppose its not default with the OS.

or if someone can send me rpm or the util !!! Will be Appreciated.

Regards,
 
Old 03-29-2003, 03:31 PM   #7
tinaa
Member
 
Registered: Mar 2003
Posts: 58

Original Poster
Rep: Reputation: 15
Hello,

I forgot to search on this forum and i got the cfdisk link.
Thanks Forum.
Regards,
 
Old 03-29-2003, 03:54 PM   #8
tinaa
Member
 
Registered: Mar 2003
Posts: 58

Original Poster
Rep: Reputation: 15
Hello,

Sorry i found the link but i have the upgraded version of util-linux.
I downloaded the latest version of util-linuc which may contian cfdisk but while upgrading it says.

"libcrypt needed by util-linux"
and many others.

Help Needed Again

Regards,
 
Old 03-29-2003, 05:06 PM   #9
onurb
Member
 
Registered: Dec 2002
Posts: 263

Rep: Reputation: 30
Tinaa,
As you got Red Hat already installed, and the partitions you want to resize are linux-partitions with only old-backup-stuff on it. There must be a far simpeler way to do this then sugested above.
I don't use RH but Mandrake, mandrake has a ControlCenter where you can resize, wipe, join partitions in a super easy way. Surely RH must have the same posebilleties.
I suggest starting another thread, with a CLEAR-explaining title, mentioning RH and re-partitioning backuppartitions, ( people often only scan the titles, and "newbiequestion" does not say much about what you're after ) You might just get a very easy answer to your question.

Bruno

Last edited by onurb; 03-29-2003 at 05:08 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Newbie Question. Please Help imfineru Linux - Newbie 8 08-20-2005 06:09 AM
Apache newbie question.. (very newbie question) tarballed Linux - Newbie 1 02-07-2003 09:41 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 01:53 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 07:40 PM
Security question {newbie question} Radio Linux - Security 3 05-17-2002 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:50 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
Open Source Consulting | Domain Registration