LinuxQuestions.org
Visit Jeremy's Blog.
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 09-13-2004, 03:31 PM   #16
DaBlade
Member
 
Registered: Aug 2004
Distribution: Debian Sid
Posts: 381

Original Poster
Rep: Reputation: 30

Okay, nice that you helped that guy, but can you help me too? Where do I put MyPartitionTable.txt?
 
Old 09-13-2004, 04:51 PM   #17
DaBlade
Member
 
Registered: Aug 2004
Distribution: Debian Sid
Posts: 381

Original Poster
Rep: Reputation: 30
It didn't work. I edited the mypartiontable.txt and saved it in /home/MyPartitionTable.txt, like the guys in #Fedora on freenode told me. but it didn't work. and it's almost 24:00....
 
Old 09-13-2004, 04:56 PM   #18
caid
Member
 
Registered: Dec 2002
Location: NZ
Distribution: slack current
Posts: 61

Rep: Reputation: 15
I could be completely off, but just taking a quick look at the link above, I would've thought it wouldn't matter where you saved the actual txt file as you are simply piping its contents to the sfdisk command with the line below:

cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hda

What output do you get ( if any ) when you execute that?
 
Old 09-13-2004, 05:00 PM   #19
DaBlade
Member
 
Registered: Aug 2004
Distribution: Debian Sid
Posts: 381

Original Poster
Rep: Reputation: 30
[root@online root]# cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hda
Warning: HDIO_GETGEO says that there are 16 heads

Disk /dev/hda: 159560 cylinders, 255 heads, 63 sectors/track
Old situation:
Warning: The partition table looks like it was made
for C/H/S=*/16/63 (instead of 159560/255/63).
For this listing I'll assume that geometry.
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 91433- 91434- 46082421 7 HPFS/NTFS
/dev/hda2 91433+ 159550- 68117- 34330905 f W95 Ext'd (LBA)
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
/dev/hda5 91433+ 101585- 10153- 5116671 b W95 FAT32
/dev/hda6 101585+ 104199- 2614- 1317298+ 82 Linux swap
/dev/hda7 104199+ 159263- 55064 27752256 83 Linux

sfdisk: unrecognized input: extended partition does not start at a cylinder boundary.
[root@online root]#
 
Old 09-13-2004, 05:09 PM   #20
caid
Member
 
Registered: Dec 2002
Location: NZ
Distribution: slack current
Posts: 61

Rep: Reputation: 15
at risk of repeating what everyone else has said and p*ssing you off:

are you completely sure you followed the instructions given earlier about

- booting with the rescue disk
- putting "linux rescue" at the prompt
- #chroot /mnt/sysimage
- THEN doing the cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hda

ps. i've also heard that using -H240 instead of -H255 works for some people, but don't quote me on it.


Last edited by caid; 09-13-2004 at 05:26 PM.
 
Old 09-13-2004, 05:25 PM   #21
DaBlade
Member
 
Registered: Aug 2004
Distribution: Debian Sid
Posts: 381

Original Poster
Rep: Reputation: 30
I got it going! A friend on MSN helped me through it. Thanks for the help anyways people!
Adios from a !
 
Old 09-14-2004, 06:40 AM   #22
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
I'm glad you got it going ... when you get some time, could you put a detailed description of exactly what you did? You never know, it may help someone else.

Baldrick
 
Old 09-14-2004, 10:04 AM   #23
DaBlade
Member
 
Registered: Aug 2004
Distribution: Debian Sid
Posts: 381

Original Poster
Rep: Reputation: 30
Detailed description of what I did (lol): I opened Konsole, and copy/pasted a code that a MSN buddy gave me, and rebooted. Then windows worked again. :P
Sorry that I can't be more specific, but that's all I remember...
 
  


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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
Using GRUB to boot WinXP Northy Linux - Newbie 4 09-19-2005 05:12 AM
/boot mysteriously empty, but i can still boot into Linux/WinXP via grub. hypoglycemic Linux - Software 4 07-18-2005 05:42 AM
lilo and grub won't boot winXP mshahwan Linux - Software 2 10-21-2004 07:57 PM
Using GRUB to boot RedHat and WinXP monroepq Linux - Newbie 6 05-28-2002 03:31 AM


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