Salmontarre
May 30th, 2009, 08:42 PM
Hello.
I'm having quite the problem. I am shipping this computer off to my sister, and she refuses to use Ubuntu, so I'm putting windows back on it before she takes it.
It has a 320gb hard drive, split into two partitions. Originally, it was running windows, but some time ago I nyxed windows, installed Ubuntu on the smaller partition using ext3, and kept the larger partition with all the personal data intact as a NTFS partition.
Now I want to put WinXP back on the smaller partition.
Booted from CD, deleted the small swap partition Ubuntu uses, formatted that and the Ubuntu install partition into NTFS, which should have left me with two NTFS partitions, the large, backup partition never being touched. Install windows, blah blah.
Reboot, and nothing happens. After the device listing, there is no GRUB errors, just a blinking cursor (can't type anything, ofc).
So I boot into this 8.10 LiveCD, and, assuming it's a MBR problem, I type in:
ubuntu@ubuntu:~$ sudo apt-get install mbr
Reading package lists... Done
Building dependency tree
Reading state information... Done
mbr is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@ubuntu:~$ sudo install-mbr -i n -p D -t 0 /dev/sda
ubuntu@ubuntu:~$
Reset, same problem.
I try fixmbr from Windows recovery, which, by the way, boots me into D:/Windows... what? It should be C:/Windows, I thought. So I go back into LiveCD, and do:
ubuntu@ubuntu:~$ sudo fdisk -lu
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 16065 102398309 51191122+ f W95 Ext'd (LBA)
/dev/sda2 * 102398373 625121279 261361453+ 7 HPFS/NTFS
/dev/sda5 16128 102398309 51191091 7 HPFS/NTFS
This is where I get lost. Are those Start/Ends messed up? Shouldn't the boot be on sda5, which is the smaller partition? I don't even know what sda1 is.
I also ran the bootinfoscript, in case it helps anyone figure this out. Here is the output:
============================= Boot Info Summary: ==============================
=> Testdisk is installed in the MBR of /dev/sda
sda1: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Mounting failed:
$LogFile indicates unclean shutdown (0, 1)
Failed to mount '/dev/sda5': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda5 sda5 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda5 sda5 ntfs-3g force 0 0
$LogFile indicates unclean shutdown (0, 1)
Failed to mount '/dev/sda5': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda5 sda5 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda5 sda5 ntfs-3g force 0 0
sda2: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda2 starts
at sector 63. But according to the info from fdisk,
sda2 starts at sector 102398373.
Mounting failed:
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda2': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda2 sda2 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda2 sda2 ntfs-3g force 0 0
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda2': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda2 sda2 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda2 sda2 ntfs-3g force 0 0
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000
Partition Boot Start End Size Id System
/dev/sda1 16,065 102,398,309 102,382,245 f W95 Ext d (LBA)
/dev/sda5 16,128 102,398,309 102,382,182 7 HPFS/NTFS
/dev/sda2 * 102,398,373 625,121,279 522,722,907 7 HPFS/NTFS
blkid -c /dev/null: __________________________________________________ __________
/dev/sda2: UUID="9464D33964D31D34" TYPE="ntfs"
/dev/sda5: UUID="04A03FF9A03FF032" TYPE="ntfs"
/dev/loop0: TYPE="squashfs"
=============================== "mount" output: ===============================
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/scd0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
Those mounting fail messages are what I get when I try to look at the contents of the partitions from the LiveCD GUI, as well.
Any help would be great, I'm at a total loss for how to fix this. I'll watch thread closely, so if you need more information please ask!
I'm having quite the problem. I am shipping this computer off to my sister, and she refuses to use Ubuntu, so I'm putting windows back on it before she takes it.
It has a 320gb hard drive, split into two partitions. Originally, it was running windows, but some time ago I nyxed windows, installed Ubuntu on the smaller partition using ext3, and kept the larger partition with all the personal data intact as a NTFS partition.
Now I want to put WinXP back on the smaller partition.
Booted from CD, deleted the small swap partition Ubuntu uses, formatted that and the Ubuntu install partition into NTFS, which should have left me with two NTFS partitions, the large, backup partition never being touched. Install windows, blah blah.
Reboot, and nothing happens. After the device listing, there is no GRUB errors, just a blinking cursor (can't type anything, ofc).
So I boot into this 8.10 LiveCD, and, assuming it's a MBR problem, I type in:
ubuntu@ubuntu:~$ sudo apt-get install mbr
Reading package lists... Done
Building dependency tree
Reading state information... Done
mbr is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@ubuntu:~$ sudo install-mbr -i n -p D -t 0 /dev/sda
ubuntu@ubuntu:~$
Reset, same problem.
I try fixmbr from Windows recovery, which, by the way, boots me into D:/Windows... what? It should be C:/Windows, I thought. So I go back into LiveCD, and do:
ubuntu@ubuntu:~$ sudo fdisk -lu
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 16065 102398309 51191122+ f W95 Ext'd (LBA)
/dev/sda2 * 102398373 625121279 261361453+ 7 HPFS/NTFS
/dev/sda5 16128 102398309 51191091 7 HPFS/NTFS
This is where I get lost. Are those Start/Ends messed up? Shouldn't the boot be on sda5, which is the smaller partition? I don't even know what sda1 is.
I also ran the bootinfoscript, in case it helps anyone figure this out. Here is the output:
============================= Boot Info Summary: ==============================
=> Testdisk is installed in the MBR of /dev/sda
sda1: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Mounting failed:
$LogFile indicates unclean shutdown (0, 1)
Failed to mount '/dev/sda5': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda5 sda5 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda5 sda5 ntfs-3g force 0 0
$LogFile indicates unclean shutdown (0, 1)
Failed to mount '/dev/sda5': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda5 sda5 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda5 sda5 ntfs-3g force 0 0
sda2: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda2 starts
at sector 63. But according to the info from fdisk,
sda2 starts at sector 102398373.
Mounting failed:
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda2': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda2 sda2 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda2 sda2 ntfs-3g force 0 0
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda2': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda2 sda2 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda2 sda2 ntfs-3g force 0 0
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000
Partition Boot Start End Size Id System
/dev/sda1 16,065 102,398,309 102,382,245 f W95 Ext d (LBA)
/dev/sda5 16,128 102,398,309 102,382,182 7 HPFS/NTFS
/dev/sda2 * 102,398,373 625,121,279 522,722,907 7 HPFS/NTFS
blkid -c /dev/null: __________________________________________________ __________
/dev/sda2: UUID="9464D33964D31D34" TYPE="ntfs"
/dev/sda5: UUID="04A03FF9A03FF032" TYPE="ntfs"
/dev/loop0: TYPE="squashfs"
=============================== "mount" output: ===============================
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/scd0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
Those mounting fail messages are what I get when I try to look at the contents of the partitions from the LiveCD GUI, as well.
Any help would be great, I'm at a total loss for how to fix this. I'll watch thread closely, so if you need more information please ask!