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 05-18-2005, 02:18 PM   #1
bnj
Member
 
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 16
partitioning a mounted drive or from a boot DVD


Hello,

I wonder if there is a way to partition a mounted drive or to partition a hard drive when booting from a Linux-distro installation DVD.

I run SuSE 9.3 on an intel PC. There is no other OS on my PC but this one.

fdisk tells me:
Code:
Command (m for help): p

Disk /dev/hda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         113      907641   82  Linux swap / Solaris
/dev/hda2   *         114       10010    79497652+  83  Linux
I also have the original DVD of SuSE Linux Pro 9.3 that I can use if needed. I have tried to look a bit around what I could do when I boot from the DVD, but I could not find anything interesting.

Your hints will highly be apperciated. Best regards,

Benjamin
 
Old 05-18-2005, 04:34 PM   #2
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
I donīt know if you can partition a mounted drive. The best thing to do IMHO is boot from a live/rescue cd and use fdisk of cfdisk to repartition it. You will loose all the data on that drive though.

Good luck
 
Old 05-19-2005, 01:57 AM   #3
bnj
Member
 
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Original Poster
Rep: Reputation: 16
Hmm. Thank you. But I would like not to loose my data. Is there no way to partition a disk without loosing the data on it?
 
Old 05-19-2005, 05:49 AM   #4
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Use something like partimage to backup the partition. Do your partitioning and then restore the image to your new partition.

Quote:
http://www.partimage.org/
 
Old 05-19-2005, 09:26 AM   #5
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
I believe QTParted allows resizing without data loss. As a general rule, you can't redefine partitions belonging to the system you're using.
You will need it unmounted, but it should work from Knoppix, for instance.
 
Old 05-20-2005, 06:01 AM   #6
bnj
Member
 
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Original Poster
Rep: Reputation: 16
So, if I understand it well, it is impossible to partition a mounted drive. Which means that, on a "normal" PC, with only one HD, I _have_ to use something like a live CD (knoppix, for example).
Am I correct?

Now what if I had a partitioned HD?

I am asking because I will probably re-install my system from scratch, this time making a partition at install-time, using YaST. After having googled a lot and searched on these forums, the partition I am planing to do is the following one. Your comments about this partition-scheme are most welcome.

Let's say I have a 80 GB Hard Drive that is partitionned this way:
512 MB for Swap
5 GB for the / folder
5 GB for the /usr folder
7 GB for the /tmp folder (I think it is necessary if I want to burn DVDs, which I want to. Am I correct?)
40 GB for /home

So I would have about 22 GB unused disk-space.

Will I be able to use this disk-space later? Will I be able to increase the size of one of my existing partitions? Or will I be able to create a new partition on it? If yes, how? Will the solution be to boot from a live-CD and to do any operation using fdisk or QTParted or something alike? And that would be possible without data loss?

Last edited by bnj; 05-20-2005 at 06:03 AM.
 
  


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
Laptop DVD drive has died, will linux boot from an external drive? Stevetgn Linux - Newbie 2 05-14-2005 06:18 PM
hard drive won't boot after partitioning WannaLearnLinux Linux - General 4 04-01-2004 12:57 AM
Permission denied to drive when mounted at boot wr3ck3d Linux - General 2 12-30-2003 04:38 AM
Can't get dvd/cdrom drive mounted on toshiba laptop jzero Linux - Laptop and Netbook 5 09-29-2003 08:41 PM
Partitioning a dual-boot and large drive (not what you think...) SprinterPD Linux - Software 3 10-06-2001 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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