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 06-05-2013, 07:09 AM   #1
Bhanu999
LQ Newbie
 
Registered: Jun 2013
Location: India
Posts: 27

Rep: Reputation: Disabled
How to format and install Linux without deleting other Linux partitions ?


How to format and install Linux without deleting other Linux partitions ?

In windows if we format only C drive and install windows, the other partitions (D:, E:, F: etc) and data in them is not deleted.

How to do the similar thing in Linux ?
 
Old 06-05-2013, 07:13 AM   #2
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 45

Rep: Reputation: Disabled
How many Hard disks are there in your system ?

update the output of fdisk -l command.



sunil popaliya
 
Old 06-05-2013, 07:34 AM   #3
Bhanu999
LQ Newbie
 
Registered: Jun 2013
Location: India
Posts: 27

Original Poster
Rep: Reputation: Disabled
I have only one hard disk in my system.

My problem is;
Consider if I have the partitions like stated below

dev/sda1 for / (root)
dev/sda2 for /usr
dev/sda3 for /home
dev/sda4 for /bin

If I format and install Linux on the root (/) partition, the data in the other drives is also deleted.

Can I format and install Linux on the root (/) partition and protect the data in the other partitions (i.e., dev/sda2(/usr), dev/sda2(/home), dev/sda2(/bin)).
 
Old 06-05-2013, 07:44 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,796

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
I cannot understand it. /usr and /bin belong to the os, so it will be overwritten by the new install
If you want to keep them you need to ignore those partitions and install the whole system on sda1 (or use extended partitions). You will need to mount those other drives using another path (like old_usr, old_home, old_bin)
 
1 members found this post helpful.
Old 06-05-2013, 07:54 AM   #5
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 45

Rep: Reputation: Disabled
Once you will start installation it will ask in which partition you want install? And by default it will create /usr and /bin but you don't do this just create one partition / at the time installation.

I think if you are going install go with default installation it will ask to protect current data and also ask to mount it on different mount point.


sunil popaliya
 
Old 06-05-2013, 08:36 AM   #6
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Rep: Reputation: 53
Really you'd need some open space to do what you're proposing. Sounds like you might need a second hard drive.

For future reference, here' what I do

/
swap
/home

That way, if I ever want to wipe out the entire system, I retain all my files and settings (since I don't format the /home directory). Of course, when doing any formating it is always a good idea to make a backup anyways.
 
Old 06-05-2013, 10:37 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You have 4 primary partitions, is 1 of them an extended?
If not then your only option would be to backup your data or save your /home & reinstall.
 
  


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
select partitions or format during install junme Solaris / OpenSolaris 4 12-24-2004 06:13 AM
Redo Linux Partitions & Clean Format Thanatos Linux - General 2 12-22-2004 01:05 PM
Deleting Linux, All Partitions, Every Shred of Data! g-force Linux - Newbie 2 05-03-2004 10:04 PM
how to format windows partitions from linux? skora Linux - Hardware 7 09-18-2003 06:57 PM
deleting linux partitions m4rqs Linux - General 6 07-04-2002 08:27 PM


All times are GMT -5. The time now is 10:01 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