Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Shop: Bridgetown Botanicals Bridgetown Botanicals   Kraken Kratom Red Vein Kratom   Myyco.com Golden Teacher Liquid Culture For Sale   PhytoExtractum Buy Bali Kratom Powder   Unfolding Nature Unfolding Nature: Being in the Implicate Order

Jump to first unread post Pages: 1 | 2 | Next >  [ show all ]
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
linux question, ntfs windows xp doesn't want to be booted in the grub
    #14951991 - 08/20/11 10:40 AM (12 years, 8 months ago)

now before you guys go deep into a tale about how I should use google, I've been using google extensively. I can't find the answer I'm looking for, fdisk seems to want to format a partition more then anything else, although fdisk -l seems to give good results for information.

here i my issue, when I try and dual boot, windows xp with ntfs isn't found. when I try and load it, I get this error: device format "/dev/sda, msdos1" invalid: must be (f|h)dn, with o <= n c 128

so in ubuntu it was recommended I try this from an online article:

sudo mount /dev/sdb1 /disk1

but this is the result I get:

Mount is denied because the NTFS volume is already exclusively opened. The volume may be already mounted, or another software may use it which could be identified for example by the help of the 'fuser' command.

also, just to be clear, /dev/sdb1 is the ntfs windows partition, not /dev/sda

now in windows, setting this partition as active is as simple as using these tools:

diskpart
list disk
select disk
list partition
select partition
active

why is this so complex in linux?? would it not be as simple? the weird thing is, windows was installed first, and then when I installed linux under dual boot, at first linux stopped showing up, when I marked this partition as active, it worked, but now I can only load into ubuntu, and not windows. so it's the opposite now :facepalm:

would anyone like the results of fdisk -l? THANKS


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
InvisibleDawks
Jolly African Potato


Registered: 06/09/10
Posts: 4,935
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14952402 - 08/20/11 12:51 PM (12 years, 8 months ago)

>using windows XP
>2011


Quote:

imachavel said:
would anyone like the results of fdisk -l? THANKS




It wouldn't hurt.

You're MBR is located on the first part of your first disk (/dev/sda).

What I like to do, is to create a boot partition as the first primary partition on the first disk.

Something like:

Code:
Device		Boot		Id		System
/dev/sda1 * 83 Linux (bootloader partition)
/dev/sda2 82 Swap
/dev/sda3 83 Linux (root/filesystem partition)




Then you'd need to tell the grub config (/boot/grub/grub.conf) to boot from it, so it would be like:

Code:
title Ubanto
root (hd0,0)
kernel /boot/<kernel name> root=/dev/sda3



The you'd add a windows XP entry to grub (/dev/sdb1 is called hd1,0 in grub):
Code:
Title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1



And that should boot XP.

Edit:
Disregard my pervious babble and just post your fdisk -l output and your grub.conf

Edited by Dawks (08/20/11 01:17 PM)

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: Dawks]
    #14953227 - 08/20/11 04:38 PM (12 years, 8 months ago)

ok give me a second and let me find that. that's a ton. using linux is like programming a computer. it is a beautiful operating system, but can be a real hassle.

ok I'll edit this post in a second and post fdisk -l and grub.conf, thank god there is someone here who has used linux a time or two. much appreciated.


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14953277 - 08/20/11 04:49 PM (12 years, 8 months ago)

fdisk -l:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0xbcd9bcd9

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1      28683  230396166    7  HPFS/NTFS
/dev/sda2  *      44619      60802  129989632  83  Linux
Partition 2 does not end on cylinder boundary.

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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: 0x5b6ac646

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1      30401  244196001    7  HPFS/NTFS

grub.conf:

danel@danel-Dimension-4700:~$ sudo grub.conf
sudo: grub.conf: command not found

I didn't get much help on that last one huh? my mistake, the fdisk -l help you out any??


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
InvisibleDawks
Jolly African Potato


Registered: 06/09/10
Posts: 4,935
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14953749 - 08/20/11 06:51 PM (12 years, 8 months ago)

Thanks for that:

Okay, whenever pasting output into a post do in inside the [­code][­/code] tags. It makes it easier for me to distinguish between what you're writing to me and what's output :smile:

I'm going to need to few more details before I can help:


1. What version of unbuntu are you using
Find this out by typing lsb_release -a , paste the output

2. Find out what version of GRUB your using. It appears that modern versions of ubuntu are using that hellishly complex grub2 nonsense. Type cat /boot/grub/grub.cfg and paste me the output.

3. We can see clearly from the output you pasted that /dev/sda2 is your Ubuntu partition and that dev /dev/sdb1 is your windows partition. But what data is on /dev/sda1?


--------------------
date ; unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: Dawks]
    #14954679 - 08/20/11 10:59 PM (12 years, 8 months ago)

ok I don't want the tags to confuse you and give you the impression there is a bracket in the command. I'm sure you know the difference, but either way, how about I just put several space between the command and output, it should make it easier, thanks a lot btw. Ok here we go



[lsb_release -a]    :



LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty



and then





[cat /boot/grub/grub.cfg]  :





#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root 9e221fdc-3cce-47c8-b9b0-21f52af08280
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root 9e221fdc-3cce-47c8-b9b0-21f52af08280
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=22
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/09_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root EC94CADB94CAA802
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/09_os-prober ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-10-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root 9e221fdc-3cce-47c8-b9b0-21f52af08280
linux /boot/vmlinuz-2.6.38-10-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro  splash  quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-10-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-10-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root 9e221fdc-3cce-47c8-b9b0-21f52af08280
echo 'Loading Linux 2.6.38-10-generic ...'
linux /boot/vmlinuz-2.6.38-10-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro single  splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-10-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root 9e221fdc-3cce-47c8-b9b0-21f52af08280
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro  splash  quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root 9e221fdc-3cce-47c8-b9b0-21f52af08280
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro single  splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic
}
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root 9e221fdc-3cce-47c8-b9b0-21f52af08280
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root 9e221fdc-3cce-47c8-b9b0-21f52af08280
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###




I hope the spaces make it easier to read and jump from the command to the output, instead of more difficult. so /dev/sda2 is my ubuntu, and /dev/sdb1 is my windows, but what is my /dev/sda1? I don't know at all. How do I find out?? is this the problem? is the mbr or main grub loader supposed to be in /dev/sda1? or is that only reserved for another drive? if it's only reserved for another drive, then it's probably my external passport. I do, need a backup, since I use windows :tongue: I mean can't have windows without a backup, as we can all see :lol:

one thing that I do like about the difference between windows and linux, is linux has less gui information, but the commands give you extremely detailed output. Which is nice, whereas if you boot to windows command recovery, every out put is just pretty simple. I know some windows commands are pretty in depth, like the ones you get from using active directory commands. Well some commands, gpupdate doesn't tell you much. I believe you still need to capture instance, and things like such. Anyway I don't want to run off in left field or anything. Did that help you out at all? thanks quite a bit for the help, finding someone who knows linux commands is rare, but don't ask me why. it's an operating system with the same provided user functionality as windows, almost to the t, but completely free. free office, free server, operating system. you name it, and no viruses and no permanently fragmented hard drive. Ok let me know if you have any more ideas, thanks

Edited by imachavel (08/20/11 11:02 PM)

Extras: Filter Print Post Top
InvisibleDawks
Jolly African Potato


Registered: 06/09/10
Posts: 4,935
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14959476 - 08/22/11 02:27 AM (12 years, 8 months ago)

Many apologies for the delay my friend.

Alrighty, let's do this.

Step 1:
Let's find out what /dev/sda1 is.

We'll do this by mounting that partition and seeing what files it contains.

To do this type:

Code:
sudo su
mkdir /mnt/devsda1mntpnt
mount /dev/sda1 /mnt/devsda1mntpnt



If it spits you an error about something being mounted already type this:

Code:
mount



And paste me the result.


Otherwise type:
Code:
cd /mnt/devsda1mntpnt
ls



And paste me the result.

Step 2:

Let's try automatically reconfiguring grub2.

Type:
Code:
sudo su
grub-install /dev/sda
update-grub
reboot



Now see how you go, can you boot into Windows or Ubuntu now? give it a shot and see what happens.

Step 3:

Grub2 is nasty complex piece of software that I'm for the moment unfamiliar with. Unfortunately ubuntu packages this silly bootloader with it by default (change for the sake of change I guess :shrug:).

Let's remove that nasty grub2 and replace is with a more reliable, more helpful legacy grub.

Type:
Code:
sudo su
apt-get purge grub2 grub-pc



It'll ask you if you want to remove and bla bla, hit yes.

Now that grub2 is gone, let's install grub.

Type:
Code:
apt-get install grub
mkdir /boot/grub
update-grub
grub-install /dev/sda
update-grub



It'll ask you if you want '/boot/grub/menu.lst' generated you. TYPE Y (default is N so you MUST type Y MUST MUST).

Did anything go wrong? if you got any errors at all during this part paste them too me.

Okay now reboot (type reboot to reboot).

Can you boot into windows? does it work now? If not, go to the next part.

Step 4:

Assuming you've gotten this far and you can still boot into Ubuntu but not windows than that's excellent. What you need you to do is type:

Code:
cat /boot/grub/menu.lst



And paste me the output. We will take it from here.



Do Step 1 and then Step 2. If at any point you fix it between step 2 and 4 then congratulations, otherwise we should be able to work out what's up after you complete up to step 4.


--------------------
date ; unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: Dawks]
    #14959617 - 08/22/11 04:49 AM (12 years, 8 months ago)

[cd /mnt/devsda1mntpnt
ls]:


AUTOEXEC.BAT  Documents and Settings  MSDOS.SYS    Program Files
boot.ini      drvrtmp                NTDETECT.COM  System Volume Information
CONFIG.SYS    IO.SYS                  ntldr        WINDOWS
dell          lj1010seriesprintsys    pagefile.sys


[sudo su]:


[sudo] password for danel:
root@danel-Dimension-4700:/home/danel# grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda



[update-grub]:



debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
cp: cannot remove `/boot/grub/menu.lst~': Permission denied



ok thanks I'll try reboot now, if that doesn't work I'll come back and try step 3 and 4 and post results. Hey, thanks a bunch


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: Dawks]
    #14959630 - 08/22/11 04:57 AM (12 years, 8 months ago)

lol now the option no longer exists to choose a boot partition at grub. not to be confused with being able to choose a boot device, that very well is possible if I hold f12 or f2. but linux now just boots up with no option for windows ntfs. hey, thanks for the great advice, let me try steps 3 and 4. you did you best, and I did my best to follow the instructions, so it's all good we tried very hard, thanks for racking your brain. I'll try steps 3 and 4 now and let you know how that works out. :tongue:


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14959648 - 08/22/11 05:10 AM (12 years, 8 months ago)

it appears that grub 2 was never in there to begin with?


[apt-get purge grub2 grub-pc]:


Reading package lists... Done
Building dependency tree     
Reading state information... Done
Package grub2 is not installed, so not removed
The following packages will be REMOVED:
  grub-pc*
0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.


here is why:



[sudo apt-get install grub]



[sudo] password for danel:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
grub is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.


it's already installed


[grub-install /dev/sda]:


Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

I can't tell if this is an error or a "possible error don't know" message



[update-grub]:



Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.38-10-generic
Found kernel: /boot/vmlinuz-2.6.38-8-generic
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done


[cat /boot/grub/menu.1st]:

cat: /boot/grub/menu.1st: No such file or directory




anyway let me try rebooting at any time. if I put the windows recovery disk into the computer and run fixmbr that will basically do the opposite? rewrite the grub for just windows and then linux will disappear? I already tried bootcfg /parameter
/scan
/list
/rebuild
/fast detect
and /default all using the bootcfg command. didn't help. Ok let me try restarting the computer just one more time, I did update the grub doubt that will have changed anything but it's always possible. Thanks a ton man, stay in touch!



ok same problem. it just boots linux, no option for windows. Ok we'll try again tomorrow. Thanks a ton :thumbup:


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Edited by imachavel (08/22/11 05:15 AM)

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14960303 - 08/22/11 10:11 AM (12 years, 8 months ago)

btw, I don't mean to put 1800 posts in this thread, I'm just hoping you can differ between the commands and the output I posted. I can relist some of this if you want, if the way I replied is a bit choppy and hard to read. Here is something simpler:




[ Minimal BASH-like line editing is supported.  For
        the  first  word,  TAB  lists  possible  command
        completions.  Anywhere else TAB lists the possible
        completions of a device/filename. ]

grub> find /boot/grub/stage1
(hd0,1)





did we already go through all that? I'm not sure what version of grub that is, but previously you wanted a command that listed /boot/grub/stage1, and it didn't work. this command did, if I'm not mistaken, is that what you were looking for?? Let me know if you need me to retry any steps you've listed so far. Thanks again:awejeez:

also, would any of this help?:

http://www.debianadmin.com/mount-your-widows-partitions-and-make-it-readwritable-in-ubuntu.html




UPDATE: ok I recovered windows xp in the grub. actually it won't boot, but by putting the windows disk into the cd drive, and running fixmbr, windows xp came back in grub, it just won't boot. so whatever we did with these linux commands, at the least we removed it from grub, and then restored it to grub. to most people that would be complete failure, but I think we are getting somewhere. we have diagnosed a symptom, that is a good start. so maybe we can work with this :shrug:


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Edited by imachavel (08/22/11 12:51 PM)

Extras: Filter Print Post Top
InvisibleDawks
Jolly African Potato


Registered: 06/09/10
Posts: 4,935
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14961204 - 08/22/11 01:29 PM (12 years, 8 months ago)

Quote:

imachavel said:
it IS /dev/sda1 for windows

sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0xbcd9bcd9

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1      28683  230396166    7  HPFS/NTFS
/dev/sda2  *      44619      60802  129989632  83  Linux
Partition 2 does not end on cylinder boundary.


did we reset that? I hope we did, because I thought it was /dev/sdb1





Try to keep all information in this thread. It makes it easier for me to read if I don't have to flick back and forth between PMs.

Quote:

imachavel said:
UPDATE: ok I recovered windows xp in the grub. actually it won't boot, but by putting the windows disk into the cd drive, and running fixmbr, windows xp came back in grub, it just won't boot. so whatever we did with these linux commands, at the least we removed it from grub, and then restored it to grub. to most people that would be complete failure, but I think we are getting somewhere. we have diagnosed a symptom, that is a good start. so maybe we can work with this :shrug:




Okay. This is an interesting problem.

What was /dev/sdb1 then? some kind of backup drive or something?

Also, boot into Ubuntu and type:

cat /boot/grub/menu.lst
NOT cat /boot/grub/menu.1st

and tell me the result.


--------------------
date ; unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: Dawks]
    #14961423 - 08/22/11 02:20 PM (12 years, 8 months ago)

[cat /boot/grub/menu.lst]



# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=9e221fdc-3cce-47c8-b9b0-21f52af08280

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 11.04, kernel 2.6.38-10-generic
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/vmlinuz-2.6.38-10-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro quiet splash
initrd /boot/initrd.img-2.6.38-10-generic

title Ubuntu 11.04, kernel 2.6.38-10-generic (recovery mode)
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/vmlinuz-2.6.38-10-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro single
initrd /boot/initrd.img-2.6.38-10-generic

title Ubuntu 11.04, kernel 2.6.38-8-generic
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/vmlinuz-2.6.38-8-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro quiet splash
initrd /boot/initrd.img-2.6.38-8-generic

title Ubuntu 11.04, kernel 2.6.38-8-generic (recovery mode)
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/vmlinuz-2.6.38-8-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro single
initrd /boot/initrd.img-2.6.38-8-generic

title Ubuntu 11.04, memtest86+
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST




sorry, I guess I typed it wrong the first time. yes, /dev/sdb1 MUST have been the backup drive. I disconnected it so it wouldn't read out in the list. Does this help at all? man, linux sure doesn't play around with these commands do they. whew* what a read out.


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
InvisibleDawks
Jolly African Potato


Registered: 06/09/10
Posts: 4,935
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14961496 - 08/22/11 02:38 PM (12 years, 8 months ago)

Quote:

imachavel said:
whew* what a read out.




It's mostly just comments to help you configure grub.

I stripped the comments using this command (in case you're interested):

Code:
grep -vE ^# menu.lst > menu2.lst



This left me with:

Quote:

t - See: grub(8), info grub, update-grub(8)

default 0

timeout 3

hiddenmenu

title Ubuntu 11.04, kernel 2.6.38-10-generic
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/vmlinuz-2.6.38-10-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro quiet splash
initrd /boot/initrd.img-2.6.38-10-generic

title Ubuntu 11.04, kernel 2.6.38-10-generic (recovery mode)
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/vmlinuz-2.6.38-10-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro single
initrd /boot/initrd.img-2.6.38-10-generic

title Ubuntu 11.04, kernel 2.6.38-8-generic
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/vmlinuz-2.6.38-8-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro quiet splash
initrd /boot/initrd.img-2.6.38-8-generic

title Ubuntu 11.04, kernel 2.6.38-8-generic (recovery mode)
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/vmlinuz-2.6.38-8-generic root=UUID=9e221fdc-3cce-47c8-b9b0-21f52af08280 ro single
initrd /boot/initrd.img-2.6.38-8-generic

title Ubuntu 11.04, memtest86+
uuid 9e221fdc-3cce-47c8-b9b0-21f52af08280
kernel /boot/memtest86+.bin





Which is really quite simple. It's just records for each item in the bootloader.

Those duplicate entries are simply there because of older kernel versions.

Looking at this file, there is NO windows XP entry specified, are you SURE that windows XP is showing up in grub the moment?


--------------------
date ; unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: Dawks]
    #14961602 - 08/22/11 03:00 PM (12 years, 8 months ago)

at boot it shows up, I just can't log into it. wow that sucks. Why do the core grub files in dual boot systems always have to screw each other up? like they don't like being shared. and people act like linux is perfect :lol:
apparently it needs to be in the form (f|h)dn instead of "/dev/sda,msdos1"

we did something earlier, one of those commands you had me try removed windows entry from grub. then I ran fixmbr from recovery console and the windows entry returned, I just can't boot it from grub. let me know if you have any ideas, THANKS


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Edited by imachavel (08/22/11 03:04 PM)

Extras: Filter Print Post Top
InvisibleDawks
Jolly African Potato


Registered: 06/09/10
Posts: 4,935
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14961713 - 08/22/11 03:27 PM (12 years, 8 months ago)

Curious, curious indeed. Okay, don't play with any windows commands yet, we don't want to mess things up.

Start ubuntu and type the following commands in this order: (don't worry if you don't have grub2, we'll attempt to purge it anyway, just in case).

Code:
sudo su
apt-get purge grub2 grub-pc
apt-get purge grub
rm -r /boot/grub
apt-get install grub
mkdir /boot/grub
update-grub
grub-install /dev/sda
update-grub
rm /boot/grub/menu.lst
wget http://bytecube.net/temp/shroomery/menu.lst /boot/grub
cat /boot/grub/menu.lst



Tell me if you get any errors before you reboot.


--------------------
date ; unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

Edited by Dawks (08/22/11 03:29 PM)

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: Dawks]
    #14963064 - 08/22/11 08:01 PM (12 years, 8 months ago)

everything worked up until the last command:

sudo cat /boot/grub/menu.lst
cat: /boot/grub/menu.lst: No such file or directory

btw what's up with: wget http://bytecube.net/temp/shroomery/menu.lst /boot/grub

this file is installed on the shroomery web site?? lol, let me reboot


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
InvisibleDawks
Jolly African Potato


Registered: 06/09/10
Posts: 4,935
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14963214 - 08/22/11 10:02 PM (12 years, 8 months ago)

Quote:

imachavel said:
btw what's up with: wget http://bytecube.net/temp/shroomery/menu.lst /boot/grub




It's just a menu.lst file I made for you.

Quote:

imachavel said:
lol, let me reboot




Okay, so I'm guessing your computer didn't boot?

That's my bad, I didn't proof read what I told you to type :/

I told you to type:

Code:
wget http://bytecube.net/temp/shroomery/menu.lst /boot/grub




When in fact I should have told you to type:


Code:
wget http://bytecube.net/temp/shroomery/menu.lst -O /boot/grub/menu.lst




If you can't boot into your Ubuntu now, don't fear. This is easily fixed.

Put an Ubuntu live CD in to your computer and boot off that.

Once you've arrived on the liveCD type:

Code:
sudo su
mkdir /mnt/myfs
mount /dev/sda2 /mnt/myfs
wget http://bytecube.net/temp/shroomery/menu.lst -O /mnt/myfs/boot/grub/menu.lst
reboot



Your computer should now boot.

If you already repaired it yourself OR are able to still get into ubuntu then just do this again:

Code:
sudo su
apt-get purge grub2 grub-pc
apt-get purge grub
rm -r /boot/grub
apt-get install grub
mkdir /boot/grub
update-grub
grub-install /dev/sda
update-grub
rm /boot/grub/menu.lst
wget http://bytecube.net/temp/shroomery/menu.lst -O /boot/grub/menu.lst
cat /boot/grub/menu.lst



(don't worry, all the commands work now).

If cat /boot/grub/menu.lst fails to produce output (i.e. says: "cat: /boot/grub/menu.lst: No such file or directory") then don't reboot.

Otherwise reboot.

:yesnod:


--------------------
date ; unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: Dawks]
    #14963412 - 08/22/11 10:58 PM (12 years, 8 months ago)

yeah, linux wouldn't boot at all. it brought me to grub automatically. so I need to put my live cd in and boot with that. and I use those commands when I'm inside ubuntu or just to get to start up, I boot from terminal or what? Sorry I'm just a bit confused

I might have to come back to this tomorrow. I'm using a different computer now to type this


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
Offlineimachavel
I loved and lost but I loved-ftw
Male User Gallery


Registered: 06/06/07
Posts: 31,564
Loc: You get banned for saying that Flag
Last seen: 12 hours, 17 minutes
Re: linux question, ntfs windows xp doesn't want to be booted in the grub [Re: imachavel]
    #14963696 - 08/23/11 12:11 AM (12 years, 8 months ago)

ok I'm booted into the live cd. I'm going to try all the commands you listed 3 times in a row, then I'll reboot. if I can't get in to any partition, then I'll be using a different pc and will just use windows 7 for the night.

the good news: I booted to gparted before I booted to this live cd. gparted listed 2 healthy partitions, one ext3, one ntfs, so it's all still in here. Thank god. ok, since you seem to know your stuff maybe when this is all over I can ask you some questions regarding logging in to d link with the d link i.p. and forwarding some ports, specifically, ones that allow me to use the program synergy to run two pc's with one keyboard and mouse. :lol: I'll pm you about it later when this thread is over. Let me get back to the hard core stuff I'll run those commands twice then reboot and see what happens, if anything I'll let you know tomorrow, let me know when you log back on.


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
Jump to top Pages: 1 | 2 | Next >  [ show all ]

Shop: Bridgetown Botanicals Bridgetown Botanicals   Kraken Kratom Red Vein Kratom   Myyco.com Golden Teacher Liquid Culture For Sale   PhytoExtractum Buy Bali Kratom Powder   Unfolding Nature Unfolding Nature: Being in the Implicate Order


Similar ThreadsPosterViewsRepliesLast post
* windows xp llib 1,046 3 09/27/02 08:03 PM
by tps
* For anyone looking to try linux as a desktop OS
( 1 2 all )
windex 5,980 37 02/07/03 12:32 AM
by Malformed
* HELP!!! win XP question Cubieman420 834 6 04/14/03 03:34 PM
by Cubieman420
* linux monoamine 1,969 14 10/19/02 08:55 AM
by BuzzDoctor
* Read this! Massive SECURITY problem with Win XP! Fd3000 1,379 14 10/24/02 05:57 PM
by
* Microsoft Issues Patch for 'Critical' Windows Secu Mojo_Risin 1,151 4 11/21/02 06:44 PM
by Mojo_Risin
* CD drive doesn't work the universe 1,270 8 03/20/03 11:08 AM
by Anno
* Running XP on older machines.. Anonymous 901 8 08/11/03 02:19 PM
by wingnutx

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: trendal, automan, Northerner
4,197 topic views. 0 members, 0 guests and 1 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.032 seconds spending 0.004 seconds on 14 queries.