PDA

View Full Version : [ubuntu] dual boot Lucid-xp question



rey1321
June 3rd, 2010, 06:37 PM
Hi guys, I recently installed Xp professional next to lucid Lynx
everything is working fine, I had partitioning my drive like this:

16GB-ext4-Lucid Lynx- mounted on /
85GB-ext4-extended partition(2GB swap)(83GB/home)
31GB-ntfs- XP Professional
27GB unallocated

but now a weird thing happened! my xp partition is full
is that possible? according to gparted I just have 32mb free of space
could that be possible? how huge xp is? 31gb? I don't have anything
installed in xp ,is just the OS plus service pack 3 added,
also I can't not resize xp and make it bigger with Gparted, all the
options are gray out.

this are the pict. to have an idea
also I need help sharing music folder or home folder
between both OS.




Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for /boot/grub.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sda6: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sda3: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 63 31,262,489 31,262,427 83 Linux
/dev/sda2 31,262,551 198,188,923 166,926,373 5 Extended
/dev/sda5 31,262,553 36,531,809 5,269,257 82 Linux swap / Solaris
/dev/sda6 36,531,873 198,188,923 161,657,051 83 Linux
/dev/sda3 * 251,369,055 312,576,704 61,207,650 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 c47d5d4d-8093-4678-9b5b-1aa7da292ca2 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda3 0E8873EE8873D2A7 ntfs
/dev/sda5 12e3fa30-367d-4d15-8089-6ef7345bda96 swap
/dev/sda6 307bd4c8-bbe5-4f13-95ba-670d1e3c7fdf ext4
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro)
/dev/sda3 /windows fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sda6 /home ext4 (rw)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c47d5d4d-8093-4678-9b5b-1aa7da292ca2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c47d5d4d-8093-4678-9b5b-1aa7da292ca2
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c47d5d4d-8093-4678-9b5b-1aa7da292ca2
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c47d5d4d-8093-4678-9b5b-1aa7da292ca2 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c47d5d4d-8093-4678-9b5b-1aa7da292ca2
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c47d5d4d-8093-4678-9b5b-1aa7da292ca2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c47d5d4d-8093-4678-9b5b-1aa7da292ca2
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c47d5d4d-8093-4678-9b5b-1aa7da292ca2 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c47d5d4d-8093-4678-9b5b-1aa7da292ca2
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c47d5d4d-8093-4678-9b5b-1aa7da292ca2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c47d5d4d-8093-4678-9b5b-1aa7da292ca2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c47d5d4d-8093-4678-9b5b-1aa7da292ca2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 0e8873ee8873d2a7
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### 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 ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=c47d5d4d-8093-4678-9b5b-1aa7da292ca2 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=307bd4c8-bbe5-4f13-95ba-670d1e3c7fdf /home ext4 defaults 0 2
# /windows was on /dev/sda3 during installation
UUID=0E8873EE8873D2A7 /windows ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# swap was on /dev/sda5 during installation
UUID=12e3fa30-367d-4d15-8089-6ef7345bda96 none swap sw 0 0

=================== sda1: Location of files loaded by Grub: ===================


2.2GB: boot/grub/core.img
9.2GB: boot/grub/grub.cfg
2.4GB: boot/initrd.img-2.6.32-21-generic
2.4GB: boot/initrd.img-2.6.32-22-generic
2.2GB: boot/vmlinuz-2.6.32-21-generic
2.3GB: boot/vmlinuz-2.6.32-22-generic
2.4GB: initrd.img
2.4GB: initrd.img.old
2.3GB: vmlinuz
2.2GB: vmlinuz.old

================================ sda3/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 44 57 4e 9d 3e 94 a6 c2 12 d9 df 47 47 47 4c 89 |DWN.>......GGGL.|
00000010 d1 eb f4 dd 3a 7a b5 59 7d 7e 68 c5 c1 c8 b9 1d |....:z.Y}~h.....|
00000020 2c c9 b2 6d 4f 17 08 8c 82 f0 20 33 5b b0 66 bd |,..mO..... 3[.f.|
00000030 b3 06 ba 21 62 61 89 1b ff ff e9 18 d4 7a 74 46 |...!ba.......ztF|
00000040 a7 50 ff 5f 5d aa 1d d1 04 95 c9 5f 47 47 54 eb |.P._]......_GGT.|
00000050 7f 49 8c 9f 8a 08 89 40 5a 2e 5d 11 36 e9 e9 94 |.I.....@Z.].6...|
00000060 21 37 fd 2a d4 9b 4f 4f 4e 08 43 1d fd 13 a2 78 |!7.*..OON.C....x|
00000070 41 67 53 ff 4a 22 3a 3d 37 c5 05 1a 34 4b 3a 74 |AgS.J":=7...4K:t|
00000080 e9 ac c1 a2 01 49 99 18 55 3d 3f fd 35 d2 25 3f |.....I..U=?.5.%?|
00000090 a5 84 fd 70 ca 47 d3 a7 4f a3 a4 3e 8f d1 ff 5a |...p.G..O..>...Z|
000000a0 59 21 b4 e9 d3 a7 a6 a9 d3 ab 74 eb d9 3a 69 5b |Y!........t..:i[|
000000b0 7a fa 74 5f 82 12 87 69 b2 4f a7 44 f4 74 e9 d2 |z.t_...i.O.D.t..|
000000c0 93 26 f7 d1 2d 5b fa 74 63 27 d3 e9 5a 74 e9 e9 |.&..-[.tc'..Zt..|
000000d0 d3 a6 dd 2f f4 f4 fa 59 93 a3 64 f8 28 37 52 82 |.../...Y..d.(7R.|
000000e0 7e 9e 9d 1e 95 35 2d 4d 93 a7 f4 a2 27 4d 51 1e |~....5-M....'MQ.|
000000f0 9d 32 7f d1 6f 54 a6 bd 97 d3 05 88 e9 08 d7 22 |.2..oT........."|
00000100 51 74 d1 a8 20 99 5f fe 89 bc 10 45 0f 71 43 7a |Qt.. ._....E.qCz|
00000110 21 e4 fd 76 44 5a 8e 95 6a 3d 10 5d 47 a3 a4 16 |!..vDZ..j=.]G...|
00000120 51 f4 82 e6 4e b6 ff a6 89 d3 a6 9a 52 9d 19 7a |Q...N.......R..z|
00000130 3e 96 44 eb 64 5e 8c 9f ff e8 b1 91 e8 e8 e9 d1 |>.D.d^..........|
00000140 d3 a3 a3 a7 06 05 cf 51 d1 d1 d3 d2 de 9f 4f a3 |.......Q......O.|
00000150 a7 4e 9d 3d 14 4a 26 e8 d3 46 c8 e9 d1 d1 98 d1 |.N.=.J&..F......|
00000160 fd 8a 96 0c 03 3a 7a 3a 7a 3f 4f fd 3a 7f 45 fa |.....:z:z?O.:.E.|
00000170 48 89 33 3f 30 31 77 62 0a 02 00 00 ff fb a0 60 |H.3?01wb.......`|
00000180 97 80 06 ec 54 d3 e9 f8 c3 68 00 00 09 70 00 00 |....T....h...p..|
00000190 01 1a fd 3d 51 ac e3 2d b0 5e 9a e6 94 10 89 68 |...=Q..-.^.....h|
000001a0 78 e4 28 66 07 d5 13 c9 9c 73 95 5c 04 61 75 94 |x.(f.....s.\.au.|
000001b0 6c 94 86 4c ae 5c b7 09 00 6b 3a 04 59 30 00 01 |l..L.\...k:.Y0..|
000001c0 c1 ff 82 fe ff ff 02 00 00 00 09 67 50 00 00 fe |...........gP...|
000001d0 ff ff 05 fe ff ff 0b 67 50 00 1a b1 a2 09 00 00 |.......gP.......|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200



/home/rey/Desktop/Screenshot.png

darkod
June 3rd, 2010, 06:45 PM
And when you boot XP what does it say, how much free space do you have on C: ? I have no idea why, but Gparted might not be getting the info correctly.

As for sharing /home, it's ext4 so windows can't see it. There are some add-ons to make it see linux partitions, but first of all, I'm not sure how good they work on ext4, it's rether new filesystem.
Also, don't you think it's risk to let windows read/write regularly to your /home partition?

If you wanted to share files like music, photos, videos, usually you would create ntfs partition with appropriate size and both ubuntu and windows can read/write to it.

rey1321
June 3rd, 2010, 11:14 PM
thanks Darkod for helping me
when I boot in xp, drive " C " said that I have
198 mb free space! , also when I boot in lucid a windows
appear saying that windows volume is out of space
and want me to delete some files to make some room.

also I thinking to use the unallocated partition to use it
as a media storage, I installed xp cause my ubuntu lucid
didn't recognised my sansa mp3 player
and xp does:(

I want to post some picture of gparted and Disk Utility
but I don't know how, when I take a screen shot of those
windows I placed on the desktop, but them I can't paste'em
on ubuntu forum

please help me

darkod
June 3rd, 2010, 11:16 PM
When creating your reply there is a button Manage Attachments. Look further below, under the box where you are typing the message. That's how you can upload pictures.

rey1321
June 3rd, 2010, 11:38 PM
thaknks
Isending the screen shots
so you can have a better idea
of my problem

darkod
June 3rd, 2010, 11:47 PM
Boot XP, and download this free software which scans your hdd and tells you where are the biggest files/folders:
http://www.jam-software.com/freeware/index.shtml

Install it and run it on C:. See where is all that size coming from.

rey1321
June 4th, 2010, 12:17 AM
thanks
I run the treesize program
on C drive:


It looks like I only have
5GB used, but xp keep saying
that i running out of space!

darkod
June 4th, 2010, 12:28 AM
Why are you mounting it as /windows? You plan to use it frequently?
You can always just mount it (open it) when you want to write or read something from the windows partition.
I'm not sure what is going on, but it seems ubuntu is reporting the used space wrongly. It looks fine from within XP.
I don't have any ideas, sorry.

rey1321
June 4th, 2010, 12:39 AM
thanks for your help!
the reazon I installed xp (dual boot)is because
I can't not mount my Sansa Clip+
in ubuntu, if you help me with that
I'll delete xp, and I just named windows
when i partitioned it, is just a name.
but it boot fine and everything, but I can't
install anything cause no space!!


my other problem is this:

http://ubuntuforums.org/showthread.php?t=1485448

maybe you can help me and I will get rid of WINDOW$ and GATE$:)

darkod
June 4th, 2010, 12:47 AM
My point was that the windows partition doesn't need to be mounted in ubuntu at all.
They operate as two separate OSs, at boot you select which one to use. Maybe mounting the partition is doing something to it, or simply the used size is detected wrongly.

rey1321
June 4th, 2010, 12:58 AM
you are right, at booting I
can decide which OS I want,
and
all this mess happened cause probably
i re-installed 3 times
first time xp took control of ubuntu
second time grub2 couldn't see xp
finaly i install xp again in separeted partition
and then I reinstalled ubuntu side by side.

thanks, is been a learning experience for me
Did you take a peek at my other problem?
My sansa mp3 player?
thanks anyway