LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 03-20-2006, 05:20 PM   #1
frazelle09
Member
 
Registered: Dec 2004
Location: Mexicali, Baja California, México
Distribution: PCLinuxOS 2011 on four machines, including a laptop.
Posts: 87

Rep: Reputation: 15
Combining partitions on one Harddisk


i have reinstalled Linux 2006 free on my 14 Gig hd. It now has what appear to be six partitions, up from the three i think it had the first time.

Using DiskDrake i see it has hda1,:/, swap (hda8), /home (hda9), swap (hda6), and 7Gig of what appears to be empty space called hda7.

i have a couple of questions. Might hda7 still have my old /home on it? If so, what might be the command to see it or how can i access it from Konqueror in order to transfer at least some things to my "new" /home on hda9?

If it is empty, how can i transfer its space to the other partitions?

Thanks a lot for whatever help you can give. Have a great afternoon!
 
Old 03-20-2006, 06:29 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
cfdisk /dev/hda will show you the layout and what filesystem is on which partition.
...run as root and do not change anything - quit with "q"...
you can then mount each partition manually (in case mounting via the gui does not work somehow)

for instance:
make a directory as a mount-point for each partition you want to mount
:
mkdir /mnt/hda1
.
.
.
mkdir /mnt/hda9

then mount the partitions to the directory you made:
mount -t filesystem-type /dev/hdaX /mnt/hdaX
filesystem-type being what cfdisk told you
 
Old 03-20-2006, 06:37 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Perhaps the best way of getting out of the hole is to delete all the partitions, re-create only a swap say 0.5Gb large plus about one 8Gb partition and tell the installer to use it for "/". My installed Mandriva 2006 is only 4.8Gb large.

I always install one distro per partition to avoid the type of problem you are having. Unless you run Mandriva as a server and want optimum performance in each partition you will be far better off to have a single partition so that /boot, /usr, /root, /home.... etc as subdirectories inside one partition.
 
Old 03-20-2006, 07:42 PM   #4
frazelle09
Member
 
Registered: Dec 2004
Location: Mexicali, Baja California, México
Distribution: PCLinuxOS 2011 on four machines, including a laptop.
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks guys!

My cfdisk /dev/hda shows me essentially the same list as DiskDruid. How would i "mount", for example, hda9, which is a ext3 file system, through my gui?

Have a great evening!
 
Old 03-21-2006, 02:14 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Code:
mkdir /mnt/hda9
mount /dev/hda9 /mnt/hda9
only works if hda9 has a filing system. If it is unformatted nothing can be mounted.
 
Old 03-21-2006, 03:10 AM   #6
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
mount -t filesystem-type /dev/hdaX /mnt/hdaX as I already said:
in this case this would translate to:
Code:
mkdir /mnt/hda9
mount -t ext3 /dev/hda9 /mnt/hda9
this has to be done as root
- to have it available via gui it'll probably need to be in /etc/fstab.
A line like this should do it:
/dev/hda9 /mnt/hda9 ext3 noauto,noatime,users,rw 0 0
 
Old 03-21-2006, 03:38 AM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Jomen instruction has better details.

I omitted the file type because most modern Linux seem to be able to detect the common filing systems used both in Linux, Dos and Windows. The file type is only asked if there is something not quite right with the partition.
 
Old 03-21-2006, 02:57 PM   #8
frazelle09
Member
 
Registered: Dec 2004
Location: Mexicali, Baja California, México
Distribution: PCLinuxOS 2011 on four machines, including a laptop.
Posts: 87

Original Poster
Rep: Reputation: 15
Great! Finally got something from this great Forum which actually worked! Thanks a lot guys! Now i can see it in Kong and should be able to move most of the stuff to the new /home. Now all i need to do is to figure out how to, after moving everything out, incorporate this disk space into the other partitions.

Have a great afternoon!
 
  


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
Combining files into one cobra7x Linux - General 10 05-05-2005 01:39 AM
Combining EXT3 Partitions Mr_Munkey Linux - Hardware 4 03-14-2005 09:23 AM
combining linux partitions wolfe2554 Linux - Software 3 04-19-2004 07:10 PM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM
combining old 486's??? Peppercorn Linux - Software 5 01-22-2004 06:04 PM


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