LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-03-2010, 01:59 PM   #31
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59

Quote:
Originally Posted by MTK358 View Post
cfdisk WILL DESTROY YOUR DATA!
My understanding is that [c]fdisk does no formatting. If you change the table, write the changes, then change them back and write them without any formatting of partitions in between, you should be able to recover everything, though it may be risky. Definitely not for the faint of heart or for valuable data!

So where are you at now? Can you still access your data from an installed Linux or LiveCD? First thing would be to back up your data to a USB drive, CD, DVD, or network server. Then decide how you want your partition table to look. You can't repartition the whole disk from an installed OS, you need either a live Linux CD or Windows install CD.

If a CD won't boot it has nothing to do with an installed OS. It is either a BIOS setting or a corrupted disk. You'll need to enter your BIOS configuration at boot and enable and prioritize booting from CD.

If you just want to remove a Linux system without reformatting a partition, you could run 'rm /*' and 'rm -r' on all directories except the one where your data is stored, but that won't fix your booting issue; it will just hose your Linux installation.

I don't have any more ideas without looking at your current partition table (from fdisk or cfdisk).
 
Old 02-03-2010, 02:07 PM   #32
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
If you have something to store the data on, you can mount the disk and get the data from it. I would be able to do it with a little playing around but I don't really know any simple "step-by-step" way of explaining it.
 
Old 02-03-2010, 02:13 PM   #33
linusunis
Member
 
Registered: Feb 2007
Posts: 46

Original Poster
Rep: Reputation: 15
Well i am currently using Live CD of Ubuntu 9.04 , Jaunty Jackalope.
This is the output of fdisk -l :
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
Disk identifier: 0xf920f920

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 9729 78043770 8e Linux LVM
I just ran, sudo rm -r /dev/sda1 And also
sudo rm -r /boot . But nothing happened. I mean the o/p of fdisk -l is the same as above.
 
Old 02-03-2010, 02:20 PM   #34
nicedream
Member
 
Registered: Feb 2010
Distribution: Arch Linux
Posts: 68

Rep: Reputation: 19
You can't use rm on device files and expect the partition to be removed. You need to delete the partition from within fdisk.
Run fdisk /dev/sda, and you will get a menu that will allow you to delete or create partitions.

Still, I promise you that even after you do this your Windows installation problems will not be fixed.
 
Old 02-03-2010, 02:50 PM   #35
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by linusunis View Post
Well i am currently using Live CD of Ubuntu 9.04 , Jaunty Jackalope.
This is the output of fdisk -l :
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
Disk identifier: 0xf920f920

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 9729 78043770 8e Linux LVM
I just ran, sudo rm -r /dev/sda1 And also
sudo rm -r /boot . But nothing happened. I mean the o/p of fdisk -l is the same as above.
run these commands on the Ubuntu live CD:

sudo mkdir /media/mydisk
sudo mount /dev/sda1 /media/mydisk


Now you should be able to access your data by going onto the folder /media/mydisk.
 
Old 02-03-2010, 03:16 PM   #36
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
/dev/sda1 is a raw device file. You need to mount it in order to access the files inside. A mountpoint is a directory. 'sudo mount /dev/sda1 /media/mydisk' will mount the device and make the filesystem available through the directory '/media/mydisk'.

I don't know whether ubuntu live cd uses a ramdisk, in which case you may have borked your /dev directory. No big deal, but if MTK358's commands don't work you will have to reboot the live cd.

It looks to me like /dev/sda1 is just your boot partition, and /dev/sda2 is where your data and most of the system reside. 'Linux LVM' means a logical volume, so there may be more than one logical partition that is not recognized by fdisk. Logical partitions are under a different /dev/ directory.

I think gparted might be a better tool; it might be able to find the logical partitions for you.

If you are trying to recover the data, you'll probably have *MUCH* better luck booting into your installed FC6, if that's still possible. Find your data, burn it onto a CD or copy onto a USB pendrive.

If you're not trying to recover data, from the ubuntu live you can nuke all your partitions, make one new partition type NTFS (assuming you're still trying to install Windows), if you want to dual-boot make one NTFS, one Linux swap (=2x RAM) one Linux native. Don't bother with Linux LVM unless you know what that means and have a good reason for it.
 
Old 02-03-2010, 03:58 PM   #37
archlinux_jessica
Member
 
Registered: Aug 2009
Location: PA USA
Distribution: Arch Linux
Posts: 78

Rep: Reputation: 19
I don't really understand the issue. The installing process does not automatically come up like you stated unless you chose the wrong starting option. And if the program does auto start, you just close it out and go into the menu. What I am guessing you did was you chose to install Ubuntu from the beginning instead of using it without making changes to your harddrive option.

Another possibility is that your Cd isn't working properly, you can use the check CD for defects option to test it.

But you can use gparted just fine with a Ubuntu live CD.

Tell us step by step every single thing you are doing, and if it seems right, then show a picture of your screen to show us what it looks like when it starts up. But really going through these extra sudo steps seems a bit over the top, seeing as how gparted should work just fine.

-Jessica-
 
Old 02-03-2010, 04:11 PM   #38
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by JimBrewster View Post
It looks to me like /dev/sda1 is just your boot partition, and /dev/sda2 is where your data and most of the system reside. 'Linux LVM' means a logical volume, so there may be more than one logical partition that is not recognized by fdisk. Logical partitions are under a different /dev/ directory.
I don't really understand partitions very much, I just thought that LVM prpbably means virtual memory. Anyway, if the OP tries my commands and /media/mydisk contains the wrong data, try this:

sudo umount /media/mydisk
sudo mount /dev/sda2 /media/mydisk


Note that the command is umount, not unmount!
 
Old 02-03-2010, 05:39 PM   #39
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
[ankesh@localhost ~]$ sudo /usr/sbin/gparted
ankesh is not in the sudoers file. This incident will be reported.
(as i don't know the super user pwd. which fc 6 uses by default)
OK ! i'm not using ubuntu live cd! I just have that live CD with me. But i'm currently running on fc 6.
It appears that this is not your computer, and you have not been granted administrative rights to it.

So I do not think that we on LQ can help you further with gaining root privileges.

Have you read the LQ rules ?
 
Old 02-03-2010, 07:18 PM   #40
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
FWIW I have seen the same message on my own computer, especially in my logs, from when I've entered incorrect passwords. It doesn't necessarily mean this is not the OP's computer. Considering the other 2 or 3 (or more??) threads the OP has created during his adventures with this computer, I'm inclined to believe it is his. Why would someone want to go through all this pain to install Windows illicitly, while preserving an FC6 installation, on someone else's PC?

linusunis, please tell us, is this your own computer?
 
Old 02-04-2010, 07:31 AM   #41
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
Quote:
Originally Posted by MTK358 View Post
I don't really understand partitions very much, I just thought that LVM prpbably means virtual memory. Anyway, if the OP tries my commands and /media/mydisk contains the wrong data, try this:

sudo umount /media/mydisk
sudo mount /dev/sda2 /media/mydisk


Note that the command is umount, not unmount!
You can't mount LVM partitions this way. The lvm system creates new device nodes under /dev/mapper. I suggest you read this how-to:

http://www.howtoforge.com/linux_lvm
 
Old 02-04-2010, 08:45 AM   #42
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
OK then, I guess run

sudo lvdisplay

?
 
Old 02-04-2010, 09:44 AM   #43
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
@linusunis;
I have merged your 3 closely-related threads---Please keep the discussion all in on place. Thanks
 
Old 02-04-2010, 09:55 AM   #44
archlinux_jessica
Member
 
Registered: Aug 2009
Location: PA USA
Distribution: Arch Linux
Posts: 78

Rep: Reputation: 19
Strange. I posted to another thread and it appeared on this one...
 
Old 02-04-2010, 04:40 PM   #45
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by archlinux_jessica View Post
Strange. I posted to another thread and it appeared on this one...
because I just merged 3 threads, perhaps?
 
  


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
uninstall fedora core 3 uxan Linux - Software 12 06-22-2006 01:06 PM
how to uninstall fedora core 3 uxan Linux - General 9 06-14-2006 05:40 PM
How to uninstall the Fedora core 4? VincentChau Linux - Hardware 7 04-06-2006 05:14 AM
How do you uninstall Fedora Core 4 ? JohnnioM Linux - General 10 04-03-2006 04:32 PM
How Do You Uninstall Fedora Core? SoldierofHyrule Linux - Newbie 6 04-24-2005 03:02 PM


All times are GMT -5. The time now is 06:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration