LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2008, 02:31 PM   #1
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
Angry ..missing NTFS files/partition..


I am missing an NTFS partition with Suse10.2. 2 drives, 1st with XP/NTFS .... dualboot, 2nd drive with FAT32 & linux swap on it. (PROBLEM 1) After unsuccessfully trying to add an XP entry for boot into XP (several attempts), (PROBLEM 2) OpenSuse is now not seeing any "items" on the NTFS partition and reports it as a linux partition. The install DVD does correctly recognize it as NTFS however. My goal here is to either fix it so I can dual boot into XP or at least be able to access my data so I can backup and banish XP for GOOD. Thank you!
 
Old 02-14-2008, 02:55 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Here is what my XP entry looks like in my menu.lst file:
Code:
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
    rootnoverify (hd0,5)
    chainloader (hd0,0)+1
When you boot, escape to the grub shell and see if grub can locate the main XP partition. You can do so using tab completion. If it can, enter similar lines manually and then enter boot. The device numbers will be different for your situation. The rootnoverify value is due to my linux root device being /dev/sda6.

I did have a problem with my desktop where bios says one disk is hd0 when booting and the kernel says another. I fixed this problem by editing /etc/grub/device.map
 
Old 02-14-2008, 03:39 PM   #3
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Red face ...missing NTFS....

I can boot into install DVD, however now the following happens..

loading edd, fan/loading djbd, mbcache, ext3
waiting for device /dev/hda1 to appear: ok
mounting root /dev/hda1
mount unknown fs type 'ntfs'
unmount: /dev: device is busy
unmount: /dev: device is busy
unmount: /dev/pts: device is busy
unmount: /dev/pts: device is busy

kernal panic -not syncing: attemped to kill init!

...and thats it!

On the install DVD, when trying to repair file system it reports: /dev/hda1 contains non-linux NTFS FS

When auto repairing: partitions found
/dev/hda1 /dev/hda2 /dev/hda3 /dev/hda4 /dev/hdb1
File system check /dev/hda1 contains valid NTFS file system
/dev/hda4 unknown file system: error
check fstab entry: skipped/omitted
mounting all partitions /dev/hda1: problematic
minimum packages: error
installing packages: omitted
verify base package: failed
asking about boot loader: error
repair: omitted

The errors seem to be multiplying, if you could walk me through 'tab completion' thank you!
 
Old 02-14-2008, 08:12 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Forget about trying to repair the ntfs filesystem. You don't have the ntfs kernel module loaded.

Boot into the rescue mode or enter "init=/bin/bash" as a boot option or use a live distro. Next mount your linux root partition and comment out any entries for your ntfs filesytems. Then try rebooting.
It looks like /dev/hda4 is your root partition, so try to mount it using:
mount -t ext3 /dev/hda4 /mnt
Then you can cd to /mnt/etc/. Edit the fstab file by adding '# ' before any line with 'ntfs' as the file type. Now cross your fingers and try rebooting.

There are two ways to mount an ntfs partition. Read-only with the "ntfs" kernel module loaded. or "read-write" with both the "fuse" and "ntfs" kernel modules loaded. Using the latter, your entry in /etc/fstab should use the "ntfs-3g" filesystem. You will need to make sure that the "fuse" and "ntfs-3g" packages are installed first. Then modprobe the modules.
sudo /sbin/modprobe ntfs
sudo /sbin/modprobe fuse

Now to make sure these modules are loaded when you boot:
If you look in /etc/sysconfig/kernel, you can add modules to load just after the filesystem becomes active.
Code:
## Type:                string
## ServiceRestart:      boot.loadmodules
#
# This variable contains the list of modules to be loaded
# once the main filesystem is active
# You will find a few default modules for hardware which
# can not be detected automatically.
#
MODULES_LOADED_ON_BOOT=""
You could add either "ntfs" or "ntfs fuse" to the MODULES_LOADED_ON_BOOT variable. Then you would need to run "sudo /sbin/mkinitrd" to update the startup script in the /boot/initrd file.

Now you can try uncommenting the entries for the ntfs partitions.

---

For reference, here I just manually mounted my main XP partition.
Code:
sudo mount -t ntfs-3g /dev/sda1 /mnt/windows/ -o rw,defaults,uid=jschiwal,utf8,fmask=0177,dmask=0077
jschiwal@hpmedia:~> ls /mnt/windows/
AUTOEXEC.BAT  cmldr        cygwin                  IO.SYS        ntldr                            Python22    System Volume Information
BOOT.BAK      CMPNENTS     Documents and Settings  logfile       openSUSE-10.2-GM-DVD-x86_64.iso  RECYCLER    temp
boot.ini      CONFIG.SYS   hp                      MSDOS.SYS     pagefile.sys                     SystemRoot  WINDOWS
cmdcons       cygpackages  hpWebHelper.log         NTDETECT.COM  Program Files                    system.sav
jschiwal@hpmedia:~> ls -ld /mnt/windows/
drwx------ 1 jschiwal root 8192 2007-11-27 07:06 /mnt/windows/
----

Another option is to remove the lines in /etc/fstab for the ntfs partitions and rely on the automounting system to access them. You will still need the ntfs module loaded.

Last edited by jschiwal; 02-14-2008 at 08:34 PM.
 
Old 02-16-2008, 01:24 AM   #5
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Didnt seem to work out. Didn't locate /etc/grub. Added ntfs fuse to modules, then mkinitrd. Looks like root is hda2.

/var/log/messages
Feb 16 00:19:00 linux-ogye smpppd[6024]: smpppd version 1.59 started
Feb 16 00:19:01 linux-ogye kernel: hdb: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
Feb 16 00:19:01 linux-ogye kernel: hdb: drive_cmd: error=0x04 { DriveStatusError }
Feb 16 00:19:01 linux-ogye kernel: ide: failed opcode was: 0xef
Feb 16 00:19:01 linux-ogye powersave-set_disk_settings[6035]: WARNING: hdparm returned error '5'
Feb 16 00:19:02 linux-ogye sshd[6105]: Server listening on :: port 22.
Feb 16 00:44:12 linux-ogye sudo: root : TTY=pts/1 ; PWD=/etc/sysconfig ; USER=root ; COMMAND=/sbin/mkinitrd
Feb 16 00:49:05 linux-ogye sudo: root : TTY=pts/1 ; PWD=/etc/sysconfig ; USER=root ; COMMAND=/sbin/modprobe ntfs
Feb 16 00:49:05 linux-ogye kernel: NTFS driver 2.1.27 [Flags: R/W MODULE].
Feb 16 00:49:16 linux-ogye sudo: root : TTY=pts/1 ; PWD=/etc/sysconfig ; USER=root ; COMMAND=/sbin/modprobe fuse
Feb 16 00:49:16 linux-ogye kernel: fuse init (API version 7.7)
Feb 16 00:49:58 linux-ogye sudo: root : TTY=pts/1 ; PWD=/etc/sysconfig ; USER=root ; COMMAND=/sbin/mkinitrd
Feb 16 00:50:43 linux-ogye gconfd (root-7347): Exiting
Feb 16 01:02:58 linux-ogye sudo: root : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/sbin/modprobe ntfs
Feb 16 01:02:58 linux-ogye kernel: NTFS driver 2.1.27 [Flags: R/W MODULE].
Feb 16 01:03:02 linux-ogye sudo: root : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/sbin/modprobe fuse
Feb 16 01:03:02 linux-ogye kernel: fuse init (API version 7.7)
Feb 16 01:03:46 linux-ogye sudo: root : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/sbin/mkinitrd
Feb 16 01:04:49 linux-ogye sudo: root : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/mount -t ntfs-3g /dev/hda1 /mnt/windows/ -o rw
Feb 16 01:04:55 linux-ogye sudo: root : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/mount -t ntfs /dev/hda1 /mnt/windows/ -o rw
Feb 16 01:04:55 linux-ogye kernel: NTFS-fs warning (device hda1): is_boot_sector_ntfs(): Invalid boot sector checksum.
Feb 16 01:04:55 linux-ogye kernel: NTFS-fs error (device hda1): read_ntfs_boot_sector(): Primary boot sector is invalid.
Feb 16 01:04:55 linux-ogye kernel: NTFS-fs error (device hda1): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
Feb 16 01:04:55 linux-ogye kernel: NTFS-fs error (device hda1): ntfs_fill_super(): Not an NTFS volume.
Feb 16 01:09:56 linux-ogye su: (to root) root on /dev/pts/1
Feb 16 01:26:09 linux-ogye gconfd (root-7062): Exiting

/var/log/boot.msg
Inspecting /boot/System.map-2.6.18.2-34-default
Loaded 23374 symbols from /boot/System.map-2.6.18.2-34-default.
Symbols match kernel version 2.6.18.
No module symbols loaded - kernel modules not enabled.
<6>EXT3-fs: mounted filesystem with ordered data mode.
<6>EXT3 FS on hda2, internal journal
<6>EXT3 FS on hda3, internal journal
<6>EXT3-fs: mounted filesystem with ordered data mode.
<6>NTFS driver 2.1.27 [Flags: R/W MODULE].
<3>NTFS-fs warning (device hda1): is_boot_sector_ntfs(): Invalid boot sector checksum.
<3>NTFS-fs error (device hda1): read_ntfs_boot_sector(): Primary boot sector is invalid.
<3>NTFS-fs error (device hda1): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
<3>NTFS-fs error (device hda1): ntfs_fill_super(): Not an NTFS volume.
/dev/hdb1 on /windows/D type vfat

(rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true)
failed<notice>'boot.localfs start' exits with status 0
Failed features: boot.open-iscsi
 
Old 02-16-2008, 01:30 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The grub directory is under /boot. The grub boot menu is from /boot/grub/menu.lst. It does look like the ntfs partition may be corrupt. With the menu.lst file edited to add a windows boot entry, see if it will boot. It it does, it might repair the filesystem. Before doing that, you might want to try booting up with a live distro and see if you can backup any important files in XP.

Last edited by jschiwal; 02-16-2008 at 01:31 AM.
 
Old 02-16-2008, 10:15 AM   #7
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
edited menu.1st in /boot/grub
title Windows
rootnoverify (hd0,2)
chainloader (hd0,0)+1

with a 'invalid' error

Shouldn't the below "root=hda1" say hda2? (Looks like failsafe is hda2) Since linux is on hda2?

With the live distro it displays the usual opensuse or opensuse failsafe.

I'm unable to backup XP as linux simply says 0 items in "C" ext3 (should be NTFS), whereas I 3500 items in "D"

# Modified by YaST2. Last modification on Thu Feb 14 14:43:24 EST 2008
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.2
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda1 vga=0x31a resume=/dev/hdb2 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd

title Windows
rootnoverify (hd0,2)
chainloader (hd0, 0) +1
 
Old 02-17-2008, 03:20 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Yes, it should be "rootnoverify (hd0,1)"
 
Old 02-17-2008, 08:20 PM   #9
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
edited to:

rootnoverify (hd0,1)
chainloader (hd0,0) +1


Error 11: Unrecognized device string

Boot yields: kernal panic - not synching: Attempting to kill init!

..at which point it locks up. Thank you.
 
Old 02-17-2008, 08:30 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I didn't look at your messages close enough on the earlier posts. It looks like you may have repartitioned. So the second partition isn't a the linux root partition anymore. That is the one that need to be referred to in "root(0,X)" where X is the partition number starting with 0. With grub, you can escape into the grub shell and use autocompletion to locate the kernel and initrd files. Then enter the "boot" command to boot up. Do this and make a note on which partition is root and if there is a separate /boot partition make a note on what it is as well. If you can boot up then, enter:
sudo /sbin/fdisk -l
It would be a good idea to print out the results. If you ever muck up your mbr partition table, this info can help you rebuild it.
 
Old 02-18-2008, 01:00 AM   #11
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I did try a repair earlier on. I can esc to shell, but trying to figure out autocompletion rite now.
 
Old 02-18-2008, 01:43 AM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Just type in part of the line and type the TAB key.
You need to lines to boot. One for the kernel and the other for initrd.

kernel (hd[TAB]
will list the drives available. Suppose you decide on hd0,
kernel (hd0,[TAB]
Now the partitions are listed. (The second step was just adding a 0, and not retyping the entire line)
Suppose when you type
kernel (hd0,4)/[TAB]
that you see a list of directories like /boot /home /etc etc.
You found the root directory. If /boot is a subdirectory of home, then enter:
kernel (hd0,4)/boot/vmli[TAB]
If you have only one kernel, the entire kernel will be selected and you can hit the [ENTER] key.

On the next line:
initrd (hd0,4)/boot/initrd[TAB]

After the kernel and initrd lines are complete enter:
boot

Hopefully your system will boot up.

If you have a separate /boot partition, then find that partition instead. You may need to add a "root (hdX,X)" line then.
 
Old 02-19-2008, 09:08 PM   #13
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
First attempt resulted in not enough memory error
2nd attempt:
grub
(using tab completion)
kernel (hd0,1)/boot/vmlinuz
[Linux-bzImage,setup=0x1e00,size=0x166e82]
initrd (hd0,1)/boot/vmlinuz
[Linux-initrd@0x28700, 0x168e82 bytes]
however when "boot" it simply exits grub
from looking at the kernels available looks like the options are vmlinuz
vmlinuz-2.6.18.2-34-default.gz
&
vmlinuz-2.6.18.2-34-default
 
Old 02-19-2008, 10:05 PM   #14
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
When rebooting, it has same result. I can still boot via install DVD.
 
Old 02-19-2008, 10:21 PM   #15
bigwaterdesign
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
When booting, the DVD loads and prompts to boot from HD (resulting in kernel panic), using second option, I load installaion. I can then select to boot installed system from the GUI. I then log out to root. At this point, I can use terminal to start grub.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTFS partition won't let me change files, and ideas? groovetrain Mandriva 7 10-10-2005 05:44 PM
Cant see files on NTFS partition... smartergod Linux - Hardware 6 05-12-2005 03:04 PM
Files missing on NTFS partition Dartelin Linux - Hardware 0 06-26-2004 02:58 PM
Recovering files from an NTFS partition? RadicalGrande Linux - General 4 03-17-2004 11:39 PM
ntfs resize - xp partition - files in the way jonnycarlos Linux - Software 3 02-28-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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