LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-21-2006, 02:36 PM   #1
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Rep: Reputation: 30
Complicated, can not see or access partitions


I have done fresh installs of ubuntu and kubuntu distros. Since then I have not been able to view or access my partitions. I also have a external CD-RW/DVD-RW drive that is not recognized. I have booted up Knoppix 5.0 live CD, drilled down to my partitions and nothing shows up. If I open Gparted, it confirms that the proper amount of disk space is being used on all four of my partions. Here is my info:

/dev/hda1 Ubuntu ext3 17.58 GB
/dev/hda3 storage reiserfs 18.15 GB
/dev/hda5 swap

/dev/hdb1 Kubuntu ext3 19.53 GB
/dev/hdb3 storage reiserfs 34.07 GB
/dev/hdb5 swap

/dev/hdc /media/cdrom0 udf,iso9660 user,noauto

Code:
obnascar@emachines1:~$ sudo fdisk -l
Password:

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

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2295    18434556   83  Linux
/dev/hda2            4665        4865     1614532+   5  Extended
/dev/hda3            2296        4664    19028992+  83  Linux
/dev/hda5            4665        4865     1614501   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/hdb: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        2550    20482843+  83  Linux
/dev/hdb2            6998        7297     2409750    5  Extended
/dev/hdb3            2551        6997    35720527+  83  Linux
/dev/hdb5            6998        7297     2409718+  82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sda: 259 MB, 259522560 bytes
65 heads, 32 sectors/track, 243 cylinders
Units = cylinders of 2080 * 512 = 1064960 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         244      253424    4  FAT16 <32M
Partition 1 has different physical/logical endings:
     phys=(249, 64, 32) logical=(243, 44, 32)
Code:
obnascar@emachines1:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdb1 /media/hdb1 auto user 0 0
Code:
obnascar@emachines1:~$ sudo ls -la /media/hda1
Password:
total 8
drwxr-xr-x 2 root root 4096 2006-11-20 20:19 .
drwxr-xr-x 9 root root 4096 2006-11-21 10:38 ..

obnascar@emachines1:~$ sudo ls -la /media/hdb2
total 8
drwxr-xr-x 2 root root 4096 2006-11-21 10:38 .
drwxr-xr-x 9 root root 4096 2006-11-21 10:38 ..

obnascar@emachines1:~$ sudo ls -la /media/hda3
total 8
drwxr-xr-x 2 root root 4096 2006-11-20 20:23 .
drwxr-xr-x 9 root root 4096 2006-11-21 10:38 ..

obnascar@emachines1:~$ sudo ls -la /media/hdb1
total 8
drwxrwxrwx 2 jerryo jerryo 4096 2006-11-21 00:09 .
drwxr-xr-x 9 root   root   4096 2006-11-21 10:38 ..

obnascar@emachines1:~$ sudo ls -la /media/hdb3
total 8
drwxr-xr-x 2 root root 4096 2006-11-20 20:17 .
drwxr-xr-x 9 root root 4096 2006-11-21 10:38 ..
I personally have never seen or heard of anyone not being able to view or access partitions such as this. I hope someone can help me with this mess.

regards,
obnascar
 
Old 11-21-2006, 03:03 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OK--let's start with the fstab:
It says (among other things) that:
  1. hda1 and hda5 get mounted automatically
  2. hdc does NOT get automatically, but can be mounted by the user
  3. hdb1 gets mounted automatically AND can be mounted by the user

So--unless you do something, the only things you can access are hda1 hda5, and hdb1. If you want a partition mounted at startup, then you must put an entry into fstab....Otherwise you can always mount it manually.
 
Old 11-21-2006, 03:28 PM   #3
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pixellany
OK--let's start with the fstab:
It says (among other things) that:
  1. hda1 and hda5 get mounted automatically
  2. hdc does NOT get automatically, but can be mounted by the user
  3. hdb1 gets mounted automatically AND can be mounted by the user
I had to manually mkdir and mount hda1, hda3, hdb1, and hdb3, after the kubuntu and ubuntu installs, they did not exsist before I did so, the /media directory was empty. But I still can not view or access these. I want to get these fixed first before I worry about the CD-rom and CD-RW/DVD-RW drive. If I can not view or access my four critical partions this computer is toast.
This computer was working fine before I did these fresh installs.

Quote:
So--unless you do something, the only things you can access are hda1 hda5, and hdb1. If you want a partition mounted at startup, then you must put an entry into fstab....Otherwise you can always mount it manually.
no, I can not access hda1, hdb1....hda5 is swap so that is not an issue. When I try to mount them manually at start up, the terminal tells me they are already mounted. Have you ever heard of such a thing as I am experiencing ? That I can not view or access any of my partitions ?
 
Old 11-21-2006, 08:34 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Look at this line from the fstab that you posted:
Quote:
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
If hda1 were not mounted, you could not be running your system!!!!!

We need to sort out some more details:
  1. Please post the output of "fdisk -l" (run as root)
  2. Tell us which Linux is on which partition
  3. Tell us which Linux you were running when you got the fstab that you posted

For example, is it possible that you were running in system A and somehow looked at the fstab from system B?
 
Old 11-21-2006, 09:12 PM   #5
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pixellany
Look at this line from the fstab that you posted:

If hda1 were not mounted, you could not be running your system!!!!!

We need to sort out some more details:[LIST=1][*]Please post the output of "fdisk -l" (run as root)
Code:

obnascar@emachines1:~$ sudo fdisk -l
Password:
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2295    18434556   83  Linux
/dev/hda2            4665        4865     1614532+   5  Extended
/dev/hda3            2296        4664    19028992+  83  Linux
/dev/hda5            4665        4865     1614501   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/hdb: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        2550    20482843+  83  Linux
/dev/hdb2            6998        7297     2409750    5  Extended
/dev/hdb3            2551        6997    35720527+  83  Linux
/dev/hdb5            6998        7297     2409718+  82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sda: 259 MB, 259522560 bytes
65 heads, 32 sectors/track, 243 cylinders
Units = cylinders of 2080 * 512 = 1064960 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         244      253424    4  FAT16 <32M
Partition 1 has different physical/logical endings:
     phys=(249, 64, 32) logical=(243, 44, 32)


Quote:
[*]Tell us which Linux is on which partition
I may have answered that in my first post.....ubuntu (hda1), kubuntu (hdb1)

Quote:
[*]Tell us which Linux you were running when you got the fstab that you posted
I was running ubuntu hda1....the system files on kubuntu hdb1 are corrupt right now, I will fix them later after I get this mess fixed. Even before the system files were Broke, I had the same problem though.



Quote:
For example, is it possible that you were running in system A and somehow looked at the fstab from system B?
I saved a copy of them on my USB flash drive:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hdb1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdb5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
 
Old 11-21-2006, 09:56 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,458

Rep: Reputation: 5826Reputation: 5826Reputation: 5826Reputation: 5826Reputation: 5826Reputation: 5826Reputation: 5826Reputation: 5826Reputation: 5826Reputation: 5826Reputation: 5826
linux does not have seperate drives like windows c: d: etc. Every filesystem be it a data CD or external flash drive is attached to the tree where / is the top. When you boot ubuntu hda1 is your / so it is already mounted. Since there is no entry in your fstab for hda3, hdb1 or hdb3 they are not automatically mounted. Add an entry like
/dev/hda3 /media/hda3 reiserfs defaults 1 2
It you want to mount your hdb3 i.e. kubuntu partition
/dev/hdb1 /media/hdb1 ext3 defaults 1 2

Last edited by michaelk; 11-21-2006 at 09:58 PM.
 
Old 11-21-2006, 10:33 PM   #7
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Original Poster
Rep: Reputation: 30
This is what my fstab looks like now:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda3 /media/hda3 reiserfs defaults 1 2
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdb1 /media/hdb1 ext3 defaults 1 2
/dev/hdb3 /media/hdb3 reiserfs defaults 1 2
/dev/hdb5       none            swap    sw              0       0
Then I did a reboot and I am now able to view and access the contents of hdb3 only. The strange part of it though is, the /media/hdb3 directory has a sub-directory of /hdb3 and that is were I can see its content......how did I do that do you suppose ?????

Last edited by obnascar; 11-21-2006 at 11:09 PM.
 
Old 11-21-2006, 11:08 PM   #8
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Original Poster
Rep: Reputation: 30
Complicated, can not see or access partitions

Ok, I obtained permission of /media, moved the image file from the subdirectory of hdb3 into the directory /media and then deleted the subdirectory /media/hdb3/hdb3, so that is fixed. Then I tried coping things from my USB flash drive into /media/hdb3 and that was successful.

Now if we can figure out how we got that partition fixed, we would be back in bussiness.

Thanks,
obnascar
 
Old 11-22-2006, 12:29 AM   #9
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Original Poster
Rep: Reputation: 30
I got one other drive fixed, hda1. But now I am having more problems that may be related to the problem I am posting about. I am on a Knoppix live CD now because I have lost the internet connection on ubuntu hda1. I am wondering if there isn't something wrong with my mother board or my bios. There have been way to many strange things that have been going wrong with this computer.

I did get hda1 fixed though also with the command:
'sudo mount /dev/hda1 /media/hda1'
And that is how I think I got hdb3 fixed also with that command, it appears so to me anyway.

I thought I had it made, but then all of a sudden I was not able to enter a command in a terminal. I can not say right now what it was telling me, I did not write it down, I will have to boot up ubuntu again and write it down and then boot up knoppix again and post the terminal error message.

I now have icons on the desk top of hda1, hda3, hdb1, and hdb3......hdb1 is the only one left to fix with the command above, I can not go further with the terminal giving me errors.

I'll be back but it will be a while
 
  


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
Can access only 1 of 2 ntfs partitions Mykolas Linux - Hardware 1 05-12-2006 07:22 PM
Cannot access ntfs partitions patman362 Ubuntu 3 12-30-2005 03:53 AM
Can't access windows partitions jessj SUSE / openSUSE 3 08-29-2005 12:00 AM
can't access my windows partitions!!!!!!! devdas Linux - Newbie 10 07-21-2005 07:57 PM
How can I access window partitions? sourav Red Hat 1 08-12-2004 03:54 PM

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

All times are GMT -5. The time now is 10:38 AM.

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