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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-03-2010, 12:59 PM
|
#31
|
Member
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 248
Rep:
|
Quote:
Originally Posted by MTK358
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).
|
|
|
02-03-2010, 01:07 PM
|
#32
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
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.
|
|
|
02-03-2010, 01:13 PM
|
#33
|
Member
Registered: Feb 2007
Posts: 46
Original Poster
Rep:
|
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.
|
|
|
02-03-2010, 01:20 PM
|
#34
|
Member
Registered: Feb 2010
Distribution: Arch Linux
Posts: 68
Rep:
|
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.
|
|
|
02-03-2010, 01:50 PM
|
#35
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
Quote:
Originally Posted by linusunis
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.
|
|
|
02-03-2010, 02:16 PM
|
#36
|
Member
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 248
Rep:
|
/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.
|
|
|
02-03-2010, 02:58 PM
|
#37
|
Member
Registered: Aug 2009
Location: PA USA
Distribution: Arch Linux
Posts: 78
Rep:
|
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-
|
|
|
02-03-2010, 03:11 PM
|
#38
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
Quote:
Originally Posted by JimBrewster
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!
|
|
|
02-03-2010, 04:39 PM
|
#39
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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 ?
|
|
|
02-03-2010, 06:18 PM
|
#40
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
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?
|
|
|
02-04-2010, 06:31 AM
|
#41
|
Member
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 248
Rep:
|
Quote:
Originally Posted by MTK358
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
|
|
|
02-04-2010, 07:45 AM
|
#42
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
OK then, I guess run
sudo lvdisplay
?
|
|
|
02-04-2010, 08:44 AM
|
#43
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
@linusunis;
I have merged your 3 closely-related threads---Please keep the discussion all in on place. Thanks
|
|
|
02-04-2010, 08:55 AM
|
#44
|
Member
Registered: Aug 2009
Location: PA USA
Distribution: Arch Linux
Posts: 78
Rep:
|
Strange. I posted to another thread and it appeared on this one...
|
|
|
02-04-2010, 03:40 PM
|
#45
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Quote:
Originally Posted by archlinux_jessica
Strange. I posted to another thread and it appeared on this one...
|
because I just merged 3 threads, perhaps?
|
|
|
All times are GMT -5. The time now is 07:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|