LinuxQuestions.org
Help answer threads with 0 replies.
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 06-24-2009, 12:56 PM   #16
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40

Yves Parmentier,

Quote:
posting the output
means to put the output somewhere where we can see it as you do.
You can redirect out to a file with something like
Code:
fdisk -l > fdisk.txt
If you move the file fdisk.txt to your FAT partition, you can include in it a post here, between CODE tags please.
Using CODE tags preserves the formatting.

This 'redirection' works with most commands. If the file is large, you should put it on a pastebin site and post the URL here so we can find it. Its very important that you do not copy type as we will spend time picking up on your typing errors.
 
Old 06-25-2009, 04:05 AM   #17
Yves Parmentier
LQ Newbie
 
Registered: Jun 2009
Posts: 23

Original Poster
Rep: Reputation: 15
Error 21

Please find hereafter the pasted text of what I got after entering the command fdisk -l

Best regards and thanks
Yves Parmentier






To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@ubuntu:~$ fdisk -l
Cannot open /dev/sda
Cannot open /dev/sdb

Disk /dev/sdc: 4003 MB, 4003463168 bytes
84 heads, 19 sectors/track, 4899 cylinders
Units = cylinders of 1596 * 512 = 817152 bytes
Disk identifier: 0x578a40c3

Device Boot Start End Blocks Id System
/dev/sdc1 * 6 4900 3905600 c W95 FAT32 (LBA)
ubuntu@ubuntu:~$
 
Old 06-25-2009, 03:43 PM   #18
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
Yves Parmentier,

This
Code:
Cannot open /dev/sda
Cannot open /dev/sdb
tells us that your first two disks do not use a partition table format the fdisk can read. It probably means they use the new GPT format and to read the partition tables you need a different tool.

Code:
Disk /dev/sdc: 4003 MB, 4003463168 bytes
84 heads, 19 sectors/track, 4899 cylinders
Units = cylinders of 1596 * 512 = 817152 bytes
Disk identifier: 0x578a40c3

Device Boot Start End Blocks Id System
/dev/sdc1 * 6 4900 3905600 c W95 FAT32 (LBA)
Tells that you have a 4Gb FLASH memory stick attached that has a single FAT32 partition.

Your ubuntu install may or may not have succeeded but Grub will almost certainly have problems with GPT partitions. To test if ubuntu can see them at all, boot the ubuntu CD/DVD and in a terminal, run
Code:
ls /dev/sd[ab]?
The "?" is a part of the command. It means match any one character.
I get
Code:
$ ls /dev/sd[ab]?
/dev/sda1  /dev/sda4  /dev/sda6  /dev/sdb2  /dev/sdb5
/dev/sda2  /dev/sda5  /dev/sdb1  /dev/sdb4  /dev/sdb6
If you get nothing the ubuntu kernel cannot see your partitions.
 
Old 06-26-2009, 05:23 AM   #19
Yves Parmentier
LQ Newbie
 
Registered: Jun 2009
Posts: 23

Original Poster
Rep: Reputation: 15
error 21

when I entered the command, this was the result(pasted):
ubuntu@ubuntu:~$ ls /dev/sd[ab]
/dev/sda /dev/sdb
ubuntu@ubuntu:~$

Since I will be absent for two days (tomorrow saturday and sunday), I will not be able to react on your threads before monday.
Greetings
Yves Parmentier


P.S.:
When I look at the content(root directory) of my usb-harddisk, I Find :

-maps: bin, boot,cd-rom, dev, etc, home, lib, lost+found, media, mnt, opt, proc, root, sbin, srv, sys, tmp, usr, var.
-files: initrd.img and vmlinuz.

The map "boot" contains 6 items, 5 of them with extension "2.6.27-generic" and "memtest86+.bin"

Following maps are empty: cd-rom,mnt,opt,proc,root,srv,sys and tmp
 
Old 06-26-2009, 05:34 AM   #20
Yves Parmentier
LQ Newbie
 
Registered: Jun 2009
Posts: 23

Original Poster
Rep: Reputation: 15
error 21

I made another entry or command, ls /dev/sd[abcd]? and I got:
ubuntu@ubuntu:~$ ls /dev/sd[abcd]?
/dev/sda1 /dev/sda2 /dev/sda5 /dev/sdb1 /dev/sdc1 /dev/sdc2 /dev/sdc5
ubuntu@ubuntu:~$
 
Old 06-26-2009, 11:24 AM   #21
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
Yves Parmentier,

Taken together, the results of fdisk -l and ls /dev/sd[abcd]? show that the ubuntu kernel sees all your partitions but fdisk does not. You are almost certainly using GPT partition tables.

Google suggests that you need grub2 (still experimental) or some other boot loader to boot from a disk with a GPT partition table. Parted (or gparted) is GPT aware. Try looking at yuor partition table with that tool.

Lilo may also work with GPT, as it does not try to read any filesystems, to boot the system it reads a block list into RAM.

I think your install worked but grub cannot boot it.
 
Old 06-26-2009, 12:48 PM   #22
Yves Parmentier
LQ Newbie
 
Registered: Jun 2009
Posts: 23

Original Poster
Rep: Reputation: 15
error 21

Thank you for your reply.
Since I am not an expert in computers, I do not know, really, what I should do to restore my system to the state it was before I attempted to install Ubuntu.
I can only boot with the live disk. I cannot reload Windows since Windows performs a reboot during the setup procedure and them I'm back at the beginning.
How can I get rid of the grub error 21 that appears when I reboot without the live disk?
I do not know how to change anything in the bios.
I do not necessarily want to have Linux on my PC, I can work further with Windows. But I made the trial because one told me that Linux was better.
Thank you for your efforts, and patience, but I am really in trouble if I cannot access my Windows-based programs.
Yves Parmentier
 
Old 06-26-2009, 07:59 PM   #23
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Do you have options on your W2K installation CD other than install? With xp and/or vista I believe you have a recovery option. If you have that you can try accessing it and going to a command line and typing the "fixmbr" and/or "fixboot" commands to repair master boot record for windows.

You have a Grub file in your master boot record but no partition with the rest of the Grub bootloader files per your previous output because your installation of Linux was not successful. This is the cause of the Error 21.

You could try googling "SystemRescueCD" and use that to recover data. I haven't used windows for a long time but others here may have some ideas. You might go to the microsoft site and do a search there.
 
Old 06-30-2009, 12:03 PM   #24
Yves Parmentier
LQ Newbie
 
Registered: Jun 2009
Posts: 23

Original Poster
Rep: Reputation: 15
error 21

Thank you for your suggestion with to try with a recovery disk.
I managed to fix the Bios with fixboot and fixMBR and could reinstall Windows 2000 and to boot with it. Error 21 disappeared.
I still have one problem. When Windows is loaded, it detects a mass storage device (my usb-harddisk with ubuntu partitions on it) but gives it no name (for example e This means that it does not appear in the root directory of windows explorer and that I cannot access it.
How can I make this harddisk visible so that I can, if necessary, format it as a normal harddisk and use the 160 GB space it has on it?
Can I do this with the live CD of Ubuntu?
Thank you for a solution of this, I hope, ultimate problem.
Greetings
Yves Parmentier
 
Old 06-30-2009, 04:36 PM   #25
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
It is my understanding that windows operating systems do not have the ability to read or write to Linux filesystems and it will be necessary to download some third party software. You should be able to use the Ubuntu Live CD and use GParted (which comes with Ubuntu) to create an ntfs filesystem on that drive so your windows system will be able to see it. You can use GParted to create partitions and filesystems.
 
Old 07-01-2009, 03:01 PM   #26
Yves Parmentier
LQ Newbie
 
Registered: Jun 2009
Posts: 23

Original Poster
Rep: Reputation: 15
error 21

Thanks to your suggestion I could with the live CD (with GParted) create a new partition (MSDOS) on my usb-harddrive, and create a ntfs-filesystem.
Windows could thus recognize my lost disk.
I lost all data on this disk but had backups.
I also lost about 10 GB of this disk, GB that with GParted were qualified as allocated. I still have 150 GB.
Thank you very much for your valued help and patience with a newbie in the Linux-experience.
It is a pitty that I could not install Linux successfully, but I can still use the live CD and experience the workings of this system.
Yours sincerely
Yves Parmentier
Belgium (Flanders)
 
Old 07-01-2009, 03:53 PM   #27
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
Yves Parmentier,

Get Knoppix if you want the full Linux experience from CD/DVD. Its slower that a real install, as its on much slower optical media and files are compressed, which needs CPU time to decompress.
None the less, there is a lot of Open Source Software there for you to try.

You probably installed Linux properly but for reasons that we could not establish, you could not get it to boot.
 
  


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
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 01:41 AM
PHP Error Parse error: parse error, unexpected $ in /home/content/S/k/i/SkinCare4U/h CowanServices Programming 2 12-09-2008 09:26 PM
Inkscape compilation error: *** [extension/internal/pdfinput/pdf-parser.o] Error 1 w1k0 Slackware 12 10-25-2008 10:53 AM
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 07:46 PM
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-16-2005 12:22 AM


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