[Newbie]GRUB issue - Linux

This is a discussion on [Newbie]GRUB issue - Linux ; On 3/14/2005 3:38 AM, I believe that domnicjp@gmail.com wrote: > Hi again, > > I just realised that I made a mistake in posting my query earlier. I am > trying to get at the data in /dev/hda1, but I ...

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 21 to 37 of 37

Thread: [Newbie]GRUB issue

  1. Re: GRUB issue

    On 3/14/2005 3:38 AM, I believe that domnicjp@gmail.com wrote:
    > Hi again,
    >
    > I just realised that I made a mistake in posting my query earlier. I am
    > trying to get at the data in /dev/hda1, but I keep getting the
    > following error:
    >
    > mount -r -t ntfs /dev/hda1 /mnt/windows
    > mount: wrong fs type, bad option, bad superblock on /dev/hda1,
    > or too many mounted file systems
    >


    Well, it's not the wrong fs type.

    From 'man mount'
    -r Mount the file system read-only. A synonym is -o
    -t vfstype
    The argument following the -t is used to indicate
    the file system type. The file system types which
    are currently supported are listed in
    linux/fs/filesystems.c: adfs, affs, autofs, coda,
    coherent, devpts, efs, ext, ext2, hfs, hpfs,
    iso9660, minix, msdos, ncpfs, nfs, ntfs, proc,
    qnx4, romfs, smbfs, sysv, udf, ufs, umsdos, vfat,
    xenix, xiafs. Note that coherent, sysv and xenix

    So it's not a bad option.

    Dunno if there's a bad superblock on /dev/hda1, but if windows boots OK,
    that's probly not the problem either.

    That leaves too many mounted filesystems.

    Is something already mounted on /mnt/windows?

    > Also, the output of fdisk is shown below(if it is of any help):
    >
    > /sbin/fdisk -l
    >
    > Disk /dev/hda: 60.0 GB, 60011642880 bytes
    > 255 heads, 63 sectors/track, 7296 cylinders
    > Units = cylinders of 16065 * 512 = 8225280 bytes
    >
    > Device Boot Start End Blocks Id System
    > /dev/hda1 * 1 5099 40957686 7 HPFS/NTFS
    > /dev/hda2 5100 7295 17639370 f W95 Ext'd (LBA)
    > /dev/hda5 5100 7295 17639338+ 83 Linux
    >
    > Please can someone tell me as to what I should be doing to be able to
    > get the data in /dev/hda1. Hope to hear from someone on this soon. TIA.
    >


    HTH,
    Tim

  2. Re: GRUB issue

    How do I check if something is already mounted on /mnt/windows. I did
    an ls /mnt/windows which showed up nothing. Also did umount
    /mnt/windows and then did mount -r -t ntfs /dev/hda1 /mnt/windows ,but
    still got the same error.

    Also, Windows doesn't boot because I made a mistake doing grub-install.
    So right now GRUB only allows me to boot into Linux.


  3. Re: GRUB issue

    On 3/14/2005 10:47 AM, I believe that domnicjp@gmail.com wrote:
    > How do I check if something is already mounted on /mnt/windows. I did
    > an ls /mnt/windows which showed up nothing. Also did umount
    > /mnt/windows and then did mount -r -t ntfs /dev/hda1 /mnt/windows ,but
    > still got the same error.
    >
    > Also, Windows doesn't boot because I made a mistake doing grub-install.
    > So right now GRUB only allows me to boot into Linux.
    >


    executing the command 'mount' with no options will show you what's mounted.

    Again, from 'man mount':
    The type iso9660 is the default. If no -t option
    is given, or if the auto type is specified, the
    superblock is probed for the filesystem type
    (minix, ext, ext2, xiafs, iso9660, romfs ,ufs,
    ntfs, qnx4, bfs are supported). If this probe
    fails, mount will try to read the file
    /etc/filesystems, or, if that does not exist,
    /proc/filesystems. All of the filesystem types
    listed there will be tried, except for those that
    are labeled "nodev" (e.g., devpts, proc and nfs).

    Try mounting without any options, like this:
    # mount /dev/hda1 /mnt/windows

    Does that work?

    Is the ntfs module loaded?
    What is the output of
    # lsmod |grep ntfs

    Also, please keep SOME context with your replies.

    HTH,
    Tim

  4. Re: GRUB issue

    > Try mounting without any options, like this:
    > # mount /dev/hda1 /mnt/windows
    >
    > Does that work?
    >
    > Is the ntfs module loaded?
    > What is the output of
    > # lsmod |grep ntfs


    [root@localhost /]# mount -t ntfs /dev/hda1 /mnt/windows
    mount: wrong fs type, bad option, bad superblock on /dev/hda1,
    or too many mounted file systems
    [root@localhost /]# lsmod|grep ntfs
    ntfs 132624 0
    [root@localhost /]# cd /mnt/windows
    [root@localhost windows]# ls
    [root@localhost windows]#

    Still not working.


  5. Re: GRUB issue

    > Try mounting without any options, like this:
    > # mount /dev/hda1 /mnt/windows


    Also tried mount without any options but I got the same error:

    [root@localhost /]# mount /dev/hda1 /mnt/windows
    mount: wrong fs type, bad option, bad superblock on /dev/hda1,
    or too many mounted file systems


  6. Re: Mounting NTFS, was: Re: GRUB issue

    > Also, /mnt/windows exists. Please do let me know as to what I am to do
    > now.


    the ntfs module behaves funny. You probably need to modprobe it first.

    # mount
    (should list mounted filesystems and their mount points.)

    # modprobe ntfs
    (should load the ntfs filesystem module)

    # lsmod
    (should list loaded modules. ntfs should be one of them.)
    (assuming ntfs is a module. Shift+PgUp to scroll back in console)

    # mount -t ntfs /dev/hda1 /mnt/windows
    (should mount it)

    # mount -t ntfs /dev/hda1 /mnt/windows -o umask=0222
    (should mount it readable for users)
    (assuming /dev and /mnt and group perms are configured)

    HTH,
    Shadow_7


  7. Re: GRUB issue

    On 3/14/2005 6:14 PM, I believe that domnicjp@gmail.com wrote:
    >>Try mounting without any options, like this:
    >># mount /dev/hda1 /mnt/windows

    >
    >
    > Also tried mount without any options but I got the same error:
    >
    > [root@localhost /]# mount /dev/hda1 /mnt/windows
    > mount: wrong fs type, bad option, bad superblock on /dev/hda1,
    > or too many mounted file systems
    >


    What's the output of simply the 'mount' command? Show us what mount
    thinks is already mounted.


  8. Re: GRUB issue

    > What's the output of simply the 'mount' command? Show us what mount
    > thinks is already mounted.


    mount
    /dev/hda5 on / type ext3 (rw)
    none on /proc type proc (rw)
    none on /sys type sysfs (rw)
    none on /dev/pts type devpts (rw,gid=5,mode=620)
    usbfs on /proc/bus/usb type usbfs (rw)
    none on /dev/shm type tmpfs (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    /dev/sda1 on /media/usbdisk type vfat
    (rw,nosuid,nodev,sync,noatime,fscontext=system_ubject_r:removable_t,user=domnic)
    /dev/hdc on /media/cdrecorder type iso9660
    (ro,nosuid,nodev,fscontext=system_ubject_r:removable_t,user=domnic)


  9. Re: GRUB issue

    On 3/15/2005 5:33 PM, I believe that domnicjp@gmail.com wrote:
    >>What's the output of simply the 'mount' command? Show us what mount
    >>thinks is already mounted.

    >
    >
    > mount
    > /dev/hda5 on / type ext3 (rw)
    > none on /proc type proc (rw)
    > none on /sys type sysfs (rw)
    > none on /dev/pts type devpts (rw,gid=5,mode=620)
    > usbfs on /proc/bus/usb type usbfs (rw)
    > none on /dev/shm type tmpfs (rw)
    > none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    > sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    > /dev/sda1 on /media/usbdisk type vfat
    > (rw,nosuid,nodev,sync,noatime,fscontext=system_ubject_r:removable_t,user=domnic)
    > /dev/hdc on /media/cdrecorder type iso9660
    > (ro,nosuid,nodev,fscontext=system_ubject_r:removable_t,user=domnic)
    >


    *shrug*
    Beats me...
    I have no idea why you can't mount /dev/hda1.
    For grins, I booted to Suse on my work laptop, which usually runs WinXP.
    Suse 9.2 automatically mounts the ntfs partition as read only on
    /windows/C. I unmounted it with 'umount /dev/hda1' and re-mounted it
    with 'mount /dev/hda1 /windows/C'. It just works...

    Sorry I couldn't help you

    Tim

  10. Re: GRUB issue

    In <1110778028.325395.183440@f14g2000cwb.googlegroups. com>, on
    03/13/2005
    at 09:27 PM, domnicjp@gmail.com said:

    >/dev/hda2 5100 7295 17639370 f W95 Ext'd
    >(LBA)


    Would that be FAT32?

    >mount /dev/hda2 /mnt/windows -t ntfs -r


    Why NTFS?

    >mount /dev/hda1 /mnt/windows -t ntfs -r


    Maybe /dev/hda2 is partially mounted there. What happens if you try a
    different mount point?

    --
    Shmuel (Seymour J.) Metz, SysProg and JOAT

    Unsolicited bulk E-mail subject to legal action. I reserve the
    right to publicly post or ridicule any abusive E-mail. Reply to
    domain Patriot dot net user shmuel+news to contact me. Do not
    reply to spamtrap@library.lspace.org


  11. Re: GRUB issue

    In <1110815276.339906.124850@l41g2000cwc.googlegroups. com>, on
    03/14/2005
    at 07:47 AM, domnicjp@gmail.com said:

    >Also, Windows doesn't boot because I made a mistake doing
    >grub-install.


    What happens if you boot a windoze rescue disk long enough for a /MBR,
    then reconfigure grub properly?

    --
    Shmuel (Seymour J.) Metz, SysProg and JOAT

    Unsolicited bulk E-mail subject to legal action. I reserve the
    right to publicly post or ridicule any abusive E-mail. Reply to
    domain Patriot dot net user shmuel+news to contact me. Do not
    reply to spamtrap@library.lspace.org


  12. Re: GRUB issue

    On 3/17/2005 10:18 AM, I believe that Shmuel (Seymour J.) Metz wrote:
    > In <1110778028.325395.183440@f14g2000cwb.googlegroups. com>, on
    > 03/13/2005
    > at 09:27 PM, domnicjp@gmail.com said:
    >
    >
    >>/dev/hda2 5100 7295 17639370 f W95 Ext'd
    >>(LBA)

    >
    >
    > Would that be FAT32?
    >


    No, see below

    >
    >>mount /dev/hda2 /mnt/windows -t ntfs -r

    >
    >
    > Why NTFS?
    >
    >
    >>mount /dev/hda1 /mnt/windows -t ntfs -r

    >
    >
    > Maybe /dev/hda2 is partially mounted there. What happens if you try a
    > different mount point?
    >


    read the output of /sbin/fdisk -l again:
    /dev/hda1 * 1 5099 40957686 7 HPFS/NTFS
    /dev/hda2 5100 7295 17639370 f W95 Ext'd (LBA)
    /dev/hda5 5100 7295 17639338+ 83 Linux

    hda2 is an extended partition with hda5 defined on it.
    hda2 is not mountable, per se.

    Regards,
    Tim

  13. Re: GRUB issue


    > read the output of /sbin/fdisk -l again:
    > /dev/hda1 * 1 5099 40957686 7 HPFS/NTFS
    > /dev/hda2 5100 7295 17639370 f W95 Ext'd (LBA)
    > /dev/hda5 5100 7295 17639338+ 83 Linux
    >
    > hda2 is an extended partition with hda5 defined on it.
    > hda2 is not mountable, per se.


    Sounds like you do not have an entry in grub.conf to actually pass
    control to the Windows partition.
    If you have an entry is probably is wrong..
    Boot into Linux.
    Go to /boot/grub and edit the grub.conf (or menu.lst) file.
    Grub is already installed in the MBR and can remain there.
    Remember that Grub numbers things from zero, so hda is hd0 and hda1
    is (hd0,0). (This is where you could *very easliy*, have gone wrong),

    (If you ever need to install grub to the mbr from scratch, then from a
    grub command prompt (ie after a linux install):
    GRUB> root (hdo,5) # this tells it where /boot is
    GRUB> setup (hd0) # this writes to the MBR )

    Add a Title line to grub.conf:
    title Windows XP
    rootnoverify (hd0,0) #in your case, since your Windows partition is
    hda1 = (hd0,0)
    makeactive # should not be necessary but does not harm: you can also
    hide or unhide other partitions: RTFM
    chainloader +1 # this tells grub to just grab the first
    block and run it


    Geoff


  14. Re: GRUB issue

    To read a NTFS partition http://www.jankratochvil.net/project/captive/
    might work.

    Usually linux doesn't read NTFS

  15. Re: GRUB issue

    On 05/08/05 07:10, cyberdiction@hotmail.com wrote:
    > To read a NTFS partition http://www.jankratochvil.net/project/captive/
    > might work.
    >
    > Usually linux doesn't read NTFS


    Oh yes! It does :-)

    Ciao
    Giovanni
    --
    A computer is like an air conditioner,
    it stops working when you open Windows.
    Registered Linux user #337974

  16. Re: GRUB issue

    cyberdiction@hotmail.com wrote:

    > To read a NTFS partition http://www.jankratochvil.net/project/captive/
    > might work.
    >
    > Usually linux doesn't read NTFS


    It does, but it doesn't usually *write* NTFS.

    Chris

    --
    Everything gets easier with practice, except getting up in the morning!

  17. Re: GRUB issue


    "Giovanni" wrote in message
    news:d5kfic$2t5$1@marina.home.net.it...
    > On 05/08/05 07:10, cyberdiction@hotmail.com wrote:
    >> To read a NTFS partition http://www.jankratochvil.net/project/captive/
    >> might work.
    >>
    >> Usually linux doesn't read NTFS

    >
    > Oh yes! It does :-)
    >
    > Ciao
    > Giovanni


    The NTFS read modules have gotten more stable and work well, but are not
    built into some OS's default kernels. They're certainly available as part of
    the kernel source.

    NTFS writiing is still a dangerous business.



+ Reply to Thread
Page 2 of 2 FirstFirst 1 2