LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-12-2011, 11:11 AM   #16
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 867

Rep: Reputation: 80

Excellent! You disk is as healthy as it was before. I never pai any attention to this warnning of fdisk. It is only the question of units to compute the disk size. Ok, now
Code:
Command (m for help): p
after this command fdisk will show all partitions on your hardrive. This is on my computer
Code:
root@enzo3:/home/piotr# fdisk /dev/hda

The number of cylinders for this disk is set to 4864.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x14eaeaee

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2007    16118752+   7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/hda2            3597        4748     9253440   83  Linux
/dev/hda3            4749        4864      931770   82  Linux swap
/dev/hda4            2007        3596    12765184   a6  OpenBSD
Partition 4 does not end on cylinder boundary.
as you see I have four partitions: NTFS (with W$), Linux (Slackware 12.2) and OpenBSD (OpenBSD).
So my Slackware is on /dev/hda2 - and there are my files. Ok, when you will find you Linux partition ( I suspect /dev/sda1) you will have to mount this partition somewhere
Code:
# mount -t auto /dev/sda1 /mnt
After this under the directory /mnt you should find the root directory of you system on the hard drive and under /mnt/home your personal files.

Last edited by igadoter; 08-12-2011 at 11:12 AM.
 
Old 08-12-2011, 11:21 AM   #17
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Oh well that's good.


Command (m for help): p

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ebc96

Device Boot Start End Blocks Id System
/dev/sda1 1 262 2103296 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 262 2873 20972544 83 Linux
/dev/sda3 2873 38914 289494016 83 Linux


This is what I get. So would the cylinder boundary thing be the problem?
 
Old 08-12-2011, 11:26 AM   #18
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 867

Rep: Reputation: 80
Not at all. People from OpenBSD tell Linux fdisk is brain damaged. It seems your root directory (that matched by *) is on /dev/sda2 and probably your personal files are on the /dev/sda3 partition. Now to accsess you personal files mount /dev/sda3. That's all.

Before doing all this you have to quit fdisk. To quit
Code:
Command (m for help):q

Last edited by igadoter; 08-12-2011 at 11:28 AM. Reason: very important
 
Old 08-12-2011, 11:36 AM   #19
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
No error messages putting the mount command in. But the mnt folder is empty.
 
Old 08-12-2011, 11:41 AM   #20
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 867

Rep: Reputation: 80
The both partitions? I mean /dev/sda2 and /dev/sda3?

Ok. Let check /dev/sda2
Code:
umount /mnt
mount -t auto /dev/sda2 /mnt

Last edited by igadoter; 08-12-2011 at 11:46 AM.
 
Old 08-12-2011, 12:01 PM   #21
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,923

Rep: Reputation: 278Reputation: 278Reputation: 278
You have two choices: use the hdd manufacturer's utilities to try to get the drive working. Use the SuSE rescue option from the install media and reinstall the bootloader to the MBR. The machine is actually reading "Hard Disk Read Error" off the hard drive. "No Operating System" is from the bios. But at least you know the MBR can be read:

This is a piece of raw hex off the MBR of a Linux system:

00000170 00 be 93 7d e8 2a 00 eb fe 47 52 55 42 20 00 47 |...}.*...GRUB .G|
00000180 65 6f 6d 00 48 61 72 64 20 44 69 73 6b 00 52 65 |eom.Hard Disk.Re|
00000190 61 64 00 20 45 72 72 6f 72 00 bb 01 00 b4 0e cd |ad. Error.......|
 
Old 08-12-2011, 12:05 PM   #22
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
knoppix@Microknoppix:~$ unmount /mnt
bash: unmount: command not found

Tried mounting sda2 anyway and the folder is still empty. I don't mind running rescue options or re installing if I have to. And most of my files can be replaced. Music etc. But there are a couple of files that I really need to save first if I can that are too new to have been backed up yet.
 
Old 08-12-2011, 12:17 PM   #23
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 867

Rep: Reputation: 80
Quote:
Originally Posted by AwesomeMachine View Post
You have two choices: use the hdd manufacturer's utilities to try to get the drive working.
Where did you get an idea that the drive is not working?
Quote:
Use the SuSE rescue option from the install media and reinstall the bootloader to the MBR.
Possibly there is an option to boot a system on the hard drive using an installation kernel. I can do this with Slackware.
 
Old 08-12-2011, 12:28 PM   #24
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 867

Rep: Reputation: 80
Quote:
Originally Posted by Glaedr View Post
knoppix@Microknoppix:~$ unmount /mnt
bash: unmount: command not found
common error - umount not u(n)mount. Seems that mount command fails. Try again to mount /dev/sda2, next plain mount will list all mounted devices and filesystems. Linux uses several different filesystems ; ext2, ext3, ext4 and many others. You can try to repair the filesystem but commands are different depending on what is on your disk
Code:
piotr@enzo3:~$ mount
/dev/hda2 on / type jfs (rw)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
the second line tells that /dev/hda2 is mounted on / (root) and it uses jfs filesystem (rw - read-write).
 
Old 08-12-2011, 12:43 PM   #25
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Oops, sorry should have noticed that.

It says only root can mount, so I added sudo to the beginning of it. It didn't ask for a password despite one having been set. And knoppix@Microknoppix:~$ doesn't reappear when it's entered now that I look at it again. Mount in a new terminal displays:

rootfs on / type rootfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/sr0 on /mnt-system type iso9660 (ro,relatime)
tmpfs on /ramdisk type tmpfs (rw,relatime,size=1646592k)
/dev/cloop on /KNOPPIX type iso9660 (ro,relatime)
unionfs on /UNIONFS type aufs (rw,relatime,si=4ceec722,noplink)
unionfs on /home type aufs (rw,relatime,si=4ceec722,noplink)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
tmpfs on /UNIONFS/var/run type tmpfs (rw,relatime,size=10240k)
tmpfs on /run type tmpfs (rw,relatime,size=10240k)
tmpfs on /UNIONFS/var/lock type tmpfs (rw,relatime,size=10240k)
tmpfs on /UNIONFS/var/log type tmpfs (rw,relatime,size=102400k)
tmpfs on /tmp type tmpfs (rw,relatime,size=2097152k)
udev on /dev type tmpfs (rw,relatime,size=20480k)
tmpfs on /dev/shm type tmpfs (rw,relatime,size=2097152k)
devpts on /dev/pts type devpts (rw,relatime,mode=1777)
 
Old 08-12-2011, 12:52 PM   #26
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 867

Rep: Reputation: 80
You see none of partitions /dev/sda2 or /dev/sda3 is mounted. Sometimes using the /mnt directory on Live systems is not a good idea: let do this
Code:
$ mkdir /home/part2 /home/part3
next mount the partitions under these directories
Code:
$ mount -t auto /dev/sda2 /home/part2 
$ mount -t auto /dev/sda3 /home/part3
you need sudo or root privileges.
 
Old 08-12-2011, 01:04 PM   #27
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
mkdir worked. Left the window open in case it was just lagging and eventually got a message about having to specify the file system.

Last edited by Glaedr; 08-12-2011 at 01:12 PM.
 
Old 08-12-2011, 01:22 PM   #28
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 867

Rep: Reputation: 80
I don't understand. `hanging' means that after the mount command the prompt doesn't appear? There is no other output? No messages? Maybe this will help
Code:
$ tail /var/log/syslog
look at the messages about read errors.

I had a look at OpenSuse website. I found there are two predefined way of installation: 1) using extended partitons 2) using LVM - the output of fdisk command doesn't suggest there are extended partition on /dev/sda or LVM but I guess you simply followed partioning methods during the installation - so they should be extended partitions on /dev/sda but they started from /dev/sda5. The possible explanation is you partioned the disk yourself or for some reason fdisk prints wrongly the partition table. Look into /dev directory if there are other /dev/sda entries.

Last edited by igadoter; 08-12-2011 at 01:31 PM.
 
Old 08-12-2011, 01:25 PM   #29
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
I'm sorry I edited in the response when it finally appeared but I guess the page didn't refresh fast enough for you to see it. The message is:

knoppix@Microknoppix:~$ sudo mount -t auto /dev/sda2 /home/part2
mount: you must specify the filesystem type
 
Old 08-12-2011, 01:58 PM   #30
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 867

Rep: Reputation: 80
Strange. ext4 is a default filesystem for OpenSuse, so let
Code:
mount -t ext4 -o ro /dev/sda2 /home/part2
-o ro is an option: mount as read-only
 
  


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
No operating system found walthi Linux - Newbie 3 04-13-2010 11:52 AM
test how much mem the operating system has free in C smeezekitty Programming 7 10-18-2009 07:32 PM
'Operating system not found' Any operating system installed wont work. TechniSlave Linux - Newbie 55 02-09-2009 12:02 PM
operating system not found plotty Linux - Software 4 01-19-2006 10:52 PM
Operating system not found domon#1 Linux - Hardware 20 07-01-2005 01:40 PM


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