PDA

View Full Version : [ubuntu] Not recognising C drive after Ubuntu installation



Vire
November 23rd, 2008, 10:40 AM
Yesterday I got bored and decided I would give Ubuntu a go as i had been interested in it for a while. I downloaded it, found a guide for installation (see here (http://apcmag.com/how_to_dual_boot_windows_xp_and_linux_xp_installed _first.htm)) and then proceeded to install it.

All went well (asides from it never asking me to import documents and whatnot from XP, which i still find irritating because i thought it would), Ubuntu loaded up fine after i restarted and I was browsing around, testing things out.

However, after 10 minutes or so I noticed that in Ubuntu's equivalent 'explorer', there was no C drive. I can easily see D and E drive, but no C drive.(the place where both Ubuntu and XP are installed)

If anyone knows why, or how to fix this, I'd love some help.
Oh, and I can do everything in XP fine, including see the C drive. It's just Ubuntu that can't.

awesome nick
November 23rd, 2008, 01:37 PM
I can easily see D and E drive, but no C drive.(the place where both Ubuntu and XP are installed)

As me newbie)) knows, Ubuntu - as folder named "ubuntu" - is situated in the /host directory.
So if your C: drive is where ubuntu is - thus its name is /host.

I had problem like this one - no C: drive seen, but my Ubuntu was on D: (/host). Editing fstab helped me mount C: properly.

AnoPoli
November 23rd, 2008, 01:45 PM
Your "C" drive in Ubuntu is usually the one named "filesystem".
All the other drives (including your windows C drive) are automatically mounted under "/media" and shown in explorer equivalent with their volume names or their sizes if volume names are absend.

Vire
November 23rd, 2008, 03:58 PM
Your "C" drive in Ubuntu is usually the one named "filesystem".
All the other drives (including your windows C drive) are automatically mounted under "/media" and shown in explorer equivalent with their volume names or their sizes if volume names are absend.

I do have something called filesystem, however it has none of my files from C on it... is this something to do with it not importing my settings from windows? But really, it doesn't at all look even similar to my C drive does on Windows... I don't see why they would do it like that.

Also, in fstab it only shows a single NTFS drive, D.

oldos2er
November 23rd, 2008, 06:43 PM
How did you install Ubuntu? Using Wubi?

Can you please post the output of this command:

sudo fdisk -l

Vire
November 24th, 2008, 05:54 AM
How did you install Ubuntu? Using Wubi?

Can you please post the output of this command:

sudo fdisk -l

I used daemon tools to mount the iso, which auto launched the setup .exe i guess, then just installed it from that menu.

Here's the sudo fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9dd69dd6

Device Boot Start End Blocks Id System
/dev/sda1 * 1 15201 122102001 7 HPFS/NTFS
/dev/sda2 15202 30401 122094000 f W95 Ext'd (LBA)
/dev/sda5 15202 29636 115949106 7 HPFS/NTFS
/dev/sda6 29637 30401 6144831 b W95 FAT32

And here's also my fstab if it helps

# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
/host/ubuntu/disks/root.disk / ext3 loop,errors=remount-ro 0 1
/host/ubuntu/disks/boot /boot none bind 0 0
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0
/dev/sda5 /media/D ntfs-3g defaults,locale=en_AU.UTF-8 0 0

awesome nick
November 24th, 2008, 09:40 AM
I've just did that sudo fdisk -l and then opened my fstab to compare with yours. So here's what i have there:


root@exe-desktop:~# fdisk -l

Диск /dev/sda: 500.1 Гб, 500107862016 байт
255 heads, 63 sectors/track, 60801 cylinders
Units = циліндри of 16065 * 512 = 8225280 bytes
Disk identifier: 0x621a621a

Пристрій Завант Початок Кінець Блоків Ід Система
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 60800 457659720 f W95 Ext'd (LBA)
/dev/sda5 3825 35694 255995743+ 7 HPFS/NTFS
/dev/sda6 35695 39773 32764536 7 HPFS/NTFS
/dev/sda7 39774 60800 168899346 7 HPFS/NTFS

and in /etc/fstab:



proc /proc proc defaults 0 0
/host/ubuntu/disks/root.disk / ext3 loop,errors=remount-ro 0 1
/host/ubuntu/disks/boot /boot none bind 0 0
/host/ubuntu/disks/swap.disk none swap loop,sw 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda1 /media/disk ntfs-3g rw,user,utf8 0 0
/dev/sda5 /media/games_progs ntfs-3g rw,user,utf8 0 0
/dev/sda7 /media/media ntfs-3g rw,user,utf8 0 0
/dev/sdb1 /media/usb vfat rw,user,utf8 0 0

My C: drive is /dev/sda1 mounted to /media/disk.
So what i can recommend you is to try to mount your /dev/sda1 somewhere just to check if it's your C: drive))
Something like

sudo mkdir /media/C
sudo mount /dev/sda1 /media/C && ls /media/C

Vire
November 24th, 2008, 09:17 PM
I've just did that sudo fdisk -l and then opened my fstab to compare with yours. So here's what i have there:



and in /etc/fstab:


My C: drive is /dev/sda1 mounted to /media/disk.
So what i can recommend you is to try to mount your /dev/sda1 somewhere just to check if it's your C: drive))
Something like

I tried what you said, however C: drive is still not visible. Interestingly enough though, if I do this

sudo mount /dev/sda1 /media/C
followed by

ls /media/C
My C drive is accessible. Or, at least, I can see it via the terminal. It still doesn't show up in the explorer, though. Plus, if I reboot I noticed if I type "ls /media/C" again, nothing shows up.

[Edit] I've solved the er, problem. Ironically, it actually wasn't a problem to start with it seems. You were right originally when you said it renamed C: drive... I fail to see why, but I found my C: drive, inside the filesystems folder, called "host"

Seems like a bizarre way to do things to me, but alas. I could use some minor help though, in order to fix this problem I created two extra folders in my media folder called backup and C, I'm just wondering, if I do sudo rm -f backup (same for C), 1, will it remove them, and 2, will it mess anything up?