Jump to content

Help! It's all screwed up!


Recommended Posts

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

Ok that worked, here are the results,

Thanks

 

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot	  Start		 End	  Blocks   Id  System
/dev/sda1			   2		2157	17318070	f  W95 Ext'd (LBA)
/dev/sda2			2158		2159	   10369+   1  FAT12
/dev/sda3   *		5343		9666	34732530	c  W95 FAT32 (LBA)
/dev/sda4			   1		   1		8001   83  Linux
/dev/sda5			   2		   2		8001	6  FAT16
/dev/sda6			   3		2157	17310006   83  Linux

Partition table entries are not in disk order
ubuntu@ubuntu:~$

Link to comment
Share on other sites

OK, you could do this:

 

sudo mkdir /mnt/part1
sudo mkdir /mnt/part2
sudo mkdir /mnt/part3
sudo mkdir /mnt/part4

 

this will create mount points for us to now try and mount each of the FAT partitions listed above. Then do:

 

sudo mount /dev/sda /mnt/part1
sudo mount /dev/sda2 /mnt/part2
sudo mount /dev/sda3 /mnt/part3
sudo mount /dev/sda5 /mnt/part4

 

then check if any files exist once they have mounted:

 

ls /mnt/part1
ls /mnt/part2
ls /mnt/part3
ls /mnt/part4

 

and let us know how you get on.

Link to comment
Share on other sites

In case of problems, try this and then repeat the above:

 

[root@esprit ~]# fdisk /dev/sda

The number of cylinders for this disk is set to 19457.
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): m
Command action
  a   toggle a bootable flag
  b   edit bsd disklabel
  c   toggle the dos compatibility flag
  d   delete a partition
  l   list known partition types
  m   print this menu
  n   add a new partition
  o   create a new empty DOS partition table
  p   print the partition table
  q   quit without saving changes
  s   create a new empty Sun disklabel
  t   change a partition's system id
  u   change display/entry units
  v   verify the partition table
  w   write table to disk and exit
  x   extra functionality (experts only)

Command (m for help): x

Expert command (m for help): m
Command action
  b   move beginning of data in a partition
  c   change number of cylinders
  d   print the raw data in the partition table
  e   list extended partitions
  f   fix partition order
  g   create an IRIX (SGI) partition table
  h   change number of heads
  m   print this menu
  p   print the partition table
  q   quit without saving changes
  r   return to main menu
  s   change number of sectors/track
  v   verify the partition table
  w   write table to disk and exit

Expert command (m for help):

 

what I'm asking you to do here is is then choose option F for fixing the partition order. Once you've done this, press W to save and then check and mount the partitions again as mentioned in previous post. I suggest this because of the last line in your post saying that the partitions weren't in order. Of course, verify the fdisk -l again to see if the partitions are in a different order, and then amend the instructions I listed for each of the FAT partitions.

Link to comment
Share on other sites

My guess is that you added removed a partition and now when mdv tries to mount root it hangs.  (before 2008.1 devices were mounted by device name rather than uuid)

 

missing ntldr means you are trying to boot a bootable windows disk without the windows root directory (like a windows data partition) on it or that your windows install is completely fubar...

 

 

 

but both mdv and windows not booting like the way they aren't means your partitions are messed and you have to fix grub and your /etc/fstab file

 

 

 

Although I would just download 2008.1 spring or maybe 2009.0 beta2 (available today or tomorrow) rescue your files and reinstall mdv, this will most likey also sort out the windows mess so you can boot straight into your windows bsod again.

Link to comment
Share on other sites

Any idea how I do that? What about the drive being corrupt?

 

maybe :( you didn' t add or remove any other driver or partitions?

 

 

your screenshot shows 3 devices, some with all these small partitions, maybe because of messing with supergrub?

Link to comment
Share on other sites

I don't think there is a maybe about it. I'm sure it had to be my messing with supergrub and Qparted, I wish I had waited till I could get a boot disk, but I still have to deal with the disk being corrupt and until I am absolutely sure it's good, I can't take a chance on loading it up. As for Mandriva, you are saying that 2008 LiveCD should bootup just like this liveCD of Ubuntu did? I would really love it if I could go back to the way my grub was with Mandriva and Xp but I have my serious doubt about whether that is even possible the way things got screwed up. But I'm willing to try anything at this point since I"m going 7 days like this, I'm just grateful I can use a LIveCD to be able to surf and stuff and of course I would guess that the less I use the drive and more the CD the less the drive gets accessed and corrupted further?

Thanks

Link to comment
Share on other sites

Ok the mount returned these folders, as you can see some are expanded others are not the ones that are not contain nothing, I don't see anything remotely close to the contents of my data.

Screenshot-mnt-FileBrowser.png

I had problems with some of the commands here is the output.

 

Terminal output

 

ubuntu@ubuntu:~$ ls /mnt/part1

ubuntu@ubuntu:~$ ls /mnt/part2

lost+found

ubuntu@ubuntu:~$ ls /mnt/part3

AUTORUN D2DSING.TAG IMAGES P3.DAT PATCH Pre1.tag $RECYCLE.BIN SECTORS WINRE

ubuntu@ubuntu:~$ ls /mnt/part4

ubuntu@ubuntu:~$ root@esprit ~]# fdisk /dev/sda

bash: root@esprit: command not found

ubuntu@ubuntu:~$ [root@esprit ~]# fdisk /dev/sda

bash: [root@esprit: command not found

ubuntu@ubuntu:~$ m

bash: m: command not found

ubuntu@ubuntu:~$

 

As you can see I could not run the root command, I'm not sure where to run those other two commands m and x?

 

What do you think about the suggestion of my trying to restore the old GRUB setup, anything chance of that?

 

Thanks

Link to comment
Share on other sites

on the ubuntu live-cd use sudo before commands to become root (the password is blank)

 

Ok well I tried what was suggested and what you suggested but it still says I must specify filesystem, take a look

 

Terminal output

 

ubuntu@ubuntu:~$ sudo # fdisk /dev/sda

usage: sudo -K | -L | -V | -h | -k | -l | -v

usage: sudo [-HPSb] [-p prompt] [-u username|#uid]

{ -e file [...] | -i | -s | <command> }

ubuntu@ubuntu:~$ sudo ls /mnt/part1

ubuntu@ubuntu:~$ sudo ls /mnt/part2

lost+found

ubuntu@ubuntu:~$ sudo mount /dev/sda /mnt/part1

mount: you must specify the filesystem type

ubuntu@ubuntu:~$

 

Thanks

Link to comment
Share on other sites

My guess is that you added removed a partition and now when mdv tries to mount root it hangs.  (before 2008.1 devices were mounted by device name rather than uuid)

 

Using uuid's even if the partition order changed, it shouldn't cause a problem as you're using the uuid rather than the physical partition reference. It's also the same when using labels on filesystems. For example, in my /etc/fstab I have LABEL=/ or LABEL=/usr for example to mount my partitions. It won't care if I move them about since it will use the label on the partition.

 

If using /dev/whatever in /etc/fstab, then yeah, this could be a problem.

Link to comment
Share on other sites

Ok now I have the 2008.1 LiveCD working all I had to do was do the apci=off to get it to work, why does it have to be off? Anyhow, I ran the sudo command in Konsole but it doesn't work, so I"m guessing it's different with Mandriva, I will search for how to do it, but if you can post instructions I would greatly appreciate it. I opted for 2008 because 2009 is massive and I don't have the means to burn a DVD, so far I like what I see in 2008.

Thanks

Link to comment
Share on other sites

sudo is not configures by default in mandrive, mdv uses su, just type su in a console and your root password (default for mdv one is blank again)

 

no clue about acpi though, I guess some motherboards simply don't support it....

Edited by ffi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...