LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-12-2005, 01:29 PM   #1
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Any problem to install Linux in my /dev/hda4?


Hi,

Here is how my disk is partitioned:

Code:
Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         974     7823623+  83  Linux
/dev/hda2             975        1097      987997+  82  Linux swap
/dev/hda3            1098        4137    24418800    5  Extended
/dev/hda4            4138        4870     5887822+  83  Linux
/dev/hda5            1098        4137    24418768+  83  Linux
I have Gentoo in /dev/hda1, working fine so far, but wanted to try Debian. Is there any problem to install it in my /dev/hda4? I tried, but is fails.

Thank you very much in advance!

PS: What about removing /dev/hda4 and creating it inside the extended partition? Would it be possible/impossible? I ask this because that was what I had in the beginning, but since the installation failed I changed it to a primary partition. Thanks again...
 
Old 03-12-2005, 03:34 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Someone more knowledgeable than I am, please correct me if I am wrong.
If you are using one hard disk, you may have one primary partition, and an extended partition which may be divided into as many sub-partitions as you desire.
I have a 40 G disk set up with one primary, and one extended partition, which is divided into six sub-partitions of the extended partition. I have three OS's installed; one in the primary, and two in the secondary (set up with six sub-partitions) and I have no problems with booting.
So. I'd recommend that you delete hda4 and hda5. Then increase the size of the extended partition to take up the free space. Then partition the extended partition to re-create hda4 and hda5.
I recall something about having only one primary bootable partition, and an extended partition with bootable sub-partitions, but I don't recall what that document was nor where I found it.
My own setup is one primary bootable, an extended with two bootable sub-partitions, and other partitions. Namely, the two extended bootable are the root of their respective OS's, plus partitions for /home and /usr.
At any rate, it works for me.
 
Old 03-12-2005, 05:00 PM   #3
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
I think you can have 3 primary and one extended
 
Old 03-12-2005, 08:13 PM   #4
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
You can have up to 4 primary partitions on one drive. If you require more than 4 you have to make one an extended partition and then create logical partitions on that one. You're showing 3 primaries, 1 extended, and 1 logical.
You should be able to install a Linux on hda4, at least I can't see a reason why not with that information. What error are you getting?

Last edited by masonm; 03-12-2005 at 08:16 PM.
 
Old 03-13-2005, 01:36 AM   #5
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Original Poster
Rep: Reputation: 31
Well it fails to create the filesystem. I tried ReiserFS also and didn't work. Well... didn't work until I restarted. I was able to install Debian, but not tu run it. I put

Code:
title=Debian
root (hd0,3)
kernel /boot/vmlinuz-2.4.27-2-686 root=/dev/hda4 initrd=initrd.img-2.4.27-2-686
in my menu.lst for grub. It is able to load the kernel, but then hangs claiming that the root is not properly set. I thought it could be something very stupid (as the kernel without support for ReiserFS), hence tried ext3 again today morning, and got the same problem than yesterday. It fails to create the file system.

Thank you...

Last edited by enemorales; 03-13-2005 at 01:48 AM.
 
Old 03-13-2005, 01:52 PM   #6
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Original Poster
Rep: Reputation: 31
Found that the problem appeared only when started with kernel 2.6. Anything worked fine if 2.4 was used.
 
  


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
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
/dev/hda4 already mounted or z busy tunasashimi Ubuntu 13 09-06-2005 01:55 PM
no hda4? 212121 Linux - Newbie 5 09-01-2005 08:24 PM
/dev/hda4 Couldn't find ext2 superblock a10392 Linux - Hardware 1 11-17-2004 11:01 AM
"unable to find device node for /dev/x in /dev!" during install zombiedeth *BSD 0 02-02-2004 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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