LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-15-2009, 07:36 PM   #1
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,227

Rep: Reputation: 170Reputation: 170

i want to change the format of my root partition (/dev/hda1)
without losing data.
got any ideas?

BUMP?

Last edited by XavierP; 10-17-2009 at 11:31 AM.
 
Old 10-15-2009, 10:45 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by smeezekitty View Post
BUMP?
Zero-reply threads are automatically "bumped" several times. You have only succeeded in taking your question off of the zero-reply list, so it will no longer get bumped automatically. Also, as you only posted the question yesterday, give people a chance to answer-- not everyone is online when you are, nor are at least half of our members even necessarily awake at any given time, as members are from all around the planet so time-zone differences apply.

You might find that, instead of waiting for people to ask "What is it now, and what do you want to change it to?", you may get better results if you tell folks what file system is on the drive now, and what you wish to change it to.

As far as I know, unless it is one of the Ext* formats, you will have the most success and least trouble by simply backing the data up somewhere, and re/formatting a/the new partition, and putting the data back.

If it IS one of the Ext file systems, such as Ext2, you could upgrade it to Ext3 or Ext4.

Regards,
Sasha

Last edited by GrapefruiTgirl; 10-15-2009 at 10:47 PM.
 
Old 10-15-2009, 10:48 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,227

Original Poster
Rep: Reputation: 170Reputation: 170
it is ext2 and i am changing it to something else but not quite sure what
Quote:
Zero-reply threads are automatically "bumped" several times. You have only succeeded in taking your question off of the zero-reply list, so it will no longer get bumbed automatically.
i dont get it.

i have a bad habit of bumping after a few hours if i dont get a response and am ver persistent about the problem.
 
Old 10-15-2009, 10:53 PM   #4
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by smeezekitty View Post
i dont get it.
*what* exactly 'don't you get'?
Quote:
i have a bad habit of bumping after a few hours if i dont get a response and am ver persistent about the problem.
That is a habit you will want to get out of here on LQ, for two reasons:

1) Impatience will not win you any friends here; people don't care how urgent your problem is, nor how persistent you are, and this sort of behavior will cause folks to ignore you, not help you faster.

2) As mentioned, threads with zero-replies, i.e., a question which has not yet had a reply, will automatically get 'bumped' several times to the top of the queue, before finally being allowed to drift into oblivion. Therefore, it is not necessary, nor etiquetically correct, to bump threads.

Cheers,

Sasha
 
Old 10-15-2009, 11:17 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,840

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
back up your data and reformat

that is how .
 
Old 10-15-2009, 11:21 PM   #6
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,227

Original Poster
Rep: Reputation: 170Reputation: 170
Quote:
Originally Posted by John VV View Post
back up your data and reformat

that is how .
how do you do it on the root partition as in /
 
Old 10-15-2009, 11:51 PM   #7
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
cp -a -x /* /path/your/backupdrv

if you don't have back up room and all important files are already safe, just reinstall

Last edited by lumak; 10-15-2009 at 11:56 PM.
 
Old 10-16-2009, 12:02 AM   #8
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,227

Original Poster
Rep: Reputation: 170Reputation: 170
Quote:
Originally Posted by lumak View Post
cp -a -x /* /path/your/backupdrv

if you don't have back up room and all important files are already safe, just reinstall
i am copying / to /mnt/hdb1
but wont i go into an infinite loop when it gets to /mnt/hdb1
coping the files into themselves?
 
Old 10-16-2009, 12:16 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Perhaps lumak was just exaggerating to make a point?

What's relevant here is that there is no need to copy **everything** if you are going to re-install the OS. If you are trying to keep the existing OS, but on a different filesystem format, then copying **everything** and then copying it back is about the most difficult method I can imagine.

Let's back off for a moment: What is the context of all this---ie what problem are you trying to solve?
 
Old 10-16-2009, 12:18 AM   #10
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,227

Original Poster
Rep: Reputation: 170Reputation: 170
no problem i just dont like the ext file system
 
Old 10-16-2009, 12:19 AM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,541
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by smeezekitty View Post
i am copying / to /mnt/hdb1
but wont i go into an infinite loop when it gets to /mnt/hdb1
coping the files into themselves?
You may but the command will not because of the cp -x option, detailed in the man page.
 
Old 10-16-2009, 12:22 AM   #12
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,227

Original Poster
Rep: Reputation: 170Reputation: 170
how do i know if *ALL* of it is copied?
i do not want to loose it all
 
Old 10-16-2009, 12:28 AM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Since you really did not completely address my last questions and comments, allow me to suggest a plan:

1. Backup your DATA ONLY somewhere. (eg external USB drive)

2. Reinstall the OS, picking your desired filesystem format.

3. Copy your data back into your /home directory.
 
Old 10-16-2009, 12:34 AM   #14
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,227

Original Poster
Rep: Reputation: 170Reputation: 170
Quote:
Originally Posted by pixellany View Post
Since you really did not completely address my last questions and comments, allow me to suggest a plan:

1. Backup your DATA ONLY somewhere. (eg external USB drive)

2. Reinstall the OS, picking your desired filesystem format.

3. Copy your data back into your /home directory.
not so good
i would rather keep evreything intact and reinstall the bootloader
 
Old 10-16-2009, 12:37 AM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I'm afraid that you are making things too difficult, but: Good Luck!

Regardless of what else you do, get your DATA safely backed up FIRST.
 
  


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
How to partition my HDD without losing any data? deepumnit Debian 4 03-28-2008 03:05 PM
Re-partition without losing data goodtogo Linux - Software 4 06-22-2007 08:20 AM
resize existing partition w/o losing data rebelscum Slackware 8 07-21-2005 05:44 PM
change partition label w/o format gjo Linux - General 5 06-28-2005 12:50 PM
How to resize the Mandrake partition without losing all my data? Cezaro Mandriva 2 09-28-2004 09:14 AM


All times are GMT -5. The time now is 10:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration