LinuxQuestions.org
Help answer threads with 0 replies.
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 03-04-2009, 11:26 PM   #1
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Rep: Reputation: 16
cannot open /proc/partitions


Hello,

Yesterday when i opened my home PC, i witnesed that there were no icon on my desktop. This pc is having two OS; 1.RHEL 4 2.Windows XP SP-2. I just ignored that may be something happened and i started to work on it in XP. After working few minutes, i got a blue screen error which generally comes when there is something serious problem in the machine. I simply switched off by PC and then it started to saying loading grub message.

I inserted RHEL 4's 1st CD and then linux rescue...
then chroot /mnt/sysimage
here i suppose that i have to install grub so i gave;
grub-install /dev/hda
it returned me error that no device name something like that (exactly not remembering)
then i gave;
fdisk -l
it returned me
cannot open /proc/partitions

Please guide me how to resolve this issue. I am very new to linux.

Thanks and Regards
Girish Sharma
 
Old 03-04-2009, 11:32 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
first of all you never got a blue screen in linux ok. so I can not help you with windows.
 
Old 03-05-2009, 12:00 AM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Quote:
Originally Posted by Drakeo View Post
first of all you never got a blue screen in linux ok. so I can not help you with windows.
??? did you even read the OP's whole post??
the OP is dual boot XP/RHEL
the BSOD was in windows and was just the first symptom of a bigger problem

@ the OP
when booted from the rescue mode do fdisk -l
also try 'dmesg' and see if there are any errors
 
Old 03-05-2009, 01:42 AM   #4
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Thanks Friza for your reply and interest in my problem.
Just now i checked with following that there is no ext3 partition on the machine as i checked from fdisk -l before chroot /mnt/sysimage. I got following list of partitions:
/dev/hda1 * W95 FAT32 c:
/dev/hda2 * W95 Extd'd (LBA)
/dev/hda5 * W95 FAT32 d:
/dev/hda6 * W95 FAT32 e:
/dev/hda7 * W95 FAT32 f:
/dev/hda8 * W95 FAT32 g:
/dev/hda9 * W95 FAT32 h:
/dev/hda10 * W95 Linux
/dev/hda11 * W95 Linux
/dev/hda12 * W95 Linux Swap

sh-3.00# dmesg
...
...
...
VFS: Can'nt find ext3 filesystem on the dev hda8.

Now please tell me:
1.How to create ext3 partition in my case?
2.Where should i create this partition?

Because i checked that there is something great mis-happening with machine. Earlier there was no drive for F2 GB) and G17.26 GB) blank parititions.

Thanks & Regards
Girish Sharma

Last edited by GirishSharma; 03-05-2009 at 01:47 AM.
 
Old 03-05-2009, 03:13 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
if this was me ...
i would first get ride of the fat partitions and use ntfs ( 1 ntfs partition) ntfs-3g can R/W to win just fine from red hat

also why "Windows XP SP-2" are you not running service pack 3 . there were a mess of security fixes in there .
 
Old 03-05-2009, 03:42 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by John VV View Post
if this was me ...
i would first get ride of the fat partitions and use ntfs
I don't see anything in OP replies related to problematic FAT partitions that would warrant such advice? I doubt that would fix any of his problems...
 
Old 03-05-2009, 10:37 PM   #7
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by unSpawn View Post
I don't see anything in OP replies related to problematic FAT partitions that would warrant such advice? I doubt that would fix any of his problems...
Thanks Moderator Sir. I am still trying to start my home PC, even though i searched a lot; but no luck. Since i am having narrow knowledge in Linux, so i do'nt know how to create ext3 parition or convert any FAT32 partition for installing grub. I suppose there was any virus attack or something else happened; by which i am not seeing any ext3 paritition and got 2 empty additional parititions i.e. 2 and 17GBs.

Please help and guide me.
Kind Regards
Girish Sharma
 
Old 03-06-2009, 01:10 AM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
hmm
come ti think of it...
/proc/partitions is a file
it should look something like this
Code:
major minor  #blocks  name

   8     0  156289847 sda
   8     1     104391 sda1
   8     2  156183930 sda2
   8    16  156290904 sdb
   8    17    4192933 sdb1
   8    18  152095387 sdb2
   8    32   78150744 sdc
   8    33   78148161 sdc1
   8    48  488385527 sdd
   8    49  488384001 sdd1
it should be automatically generated
/proc is a virtual filesystem that keeps track of hardware and running process info in the form of either text or binary files.
if you issue the 'mount' command you usually see a line like

Code:
/proc on /proc type proc (rw)
so if /proc/partitions is wrong there must be trouble with the procfs or /proc directory.. unfortunatly i don't know how to fix that or even if that's your problem.. but it's a start

Last edited by frieza; 03-06-2009 at 01:11 AM.
 
Old 03-06-2009, 02:58 AM   #9
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Thanks frieza for reply and keeping countine interest in my problem.
What i am asking that is it necessary to have ext3 type parittion on the machine to install grub? If it is mandatory; then next question is how to format / convert any FAT32 paritition into ext3; so that i can install grub and then restart my pc.

Kind Regards
Girish Sharma
 
Old 03-06-2009, 03:32 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You can't simply convert a fat32 partition into ext3. Either hda10 or hda11 are probably already ext3.

The boot strap loader is written to the MBR in the first 240 bytes of the disk. This will load the next stage of the grub loader which is probably located in /boot/grub/ on one of your linux partitions.

Quote:
I inserted RHEL 4's 1st CD and then linux rescue...
then chroot /mnt/sysimage
Before chroot'ing, look at what is in /mnt/sysimage. Make sure that this is your root partition. Check if the /boot directory contains the kernel and root directory. If not, you may need to mount the boot partition under /mnt/sysimage/boot.

After chrooting, I will run "bash -l" to run root's .profile & .bashrc scripts. This will set up the paths.

Then try mounting /proc.
Code:
proc    /proc   proc    defaults 0 0

I think that fedora has a command to repopulate the devices in your new /dev directory but I don't remember what it is. You could copy the files from /dev/* to /mnt/sysimage/dev/ before chrooting.

I don't have RHEL so I don't know if you are using LVM. Perhaps the rescue disk created the Logical volume for you and mounted it under /mnt/sysimage/.

Last edited by jschiwal; 03-06-2009 at 03:36 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
/proc/partitions does not exist Impaler Linux - Software 5 12-10-2008 11:54 PM
/proc/partitions disk usage Fippy Linux - General 4 07-25-2008 10:17 AM
workaround /proc/partitions/ matters Slackware 12 06-10-2007 03:01 PM
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 02:11 PM
/proc/partitions sighini Linux - General 0 11-17-2003 04:32 AM


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