ex-windows partition on LINUX???

_SunTzu_

Distinguished
Apr 5, 2006
99
0
18,630
hey guyz,
here is my prob, i had 2 partitions C: and D:
i was running on windows XP(no dual booting) on D: while C: is only used for storage, both are NTFS. i formatted D: made it a reiserfs and installed SuSE 10.1 on it. now i dont know how to access the information on C:
Can anyone help?
 

bmouring

Distinguished
May 6, 2006
1,215
0
19,360
C: is a NTFS partition? Make sure that the old partition still shows up (since I am having a hard time following exactly what you did)

Open up a command prompt and type this in:[code:1:9f686a69ee]sudo /sbin/fdisk -l[/code:1:9f686a69ee]

This is the output on my virtual SuSE install:
suse_term.png


Note that it found only 1 hard disk, with 2 partitions, the root (/) partition and the swap (pagefile).

Look for an entry with either "FAT32" or "NTFS" in it (i.e. from my home system)
[code:1:9f686a69ee]brad@the-uberbeast ~ $ sudo /sbin/fdisk -l /dev/sda

Disk /dev/sda: 139.9 GB, 139978604544 bytes
255 heads, 63 sectors/track, 17018 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 7649 61440561 7 HPFS/NTFS
/dev/sda2 7650 7658 72292+ 83 Linux
/dev/sda3 7659 16413 70324537+ 83 Linux
/dev/sda4 16414 17018 4859662+ 82 Linux swap / Solaris[/code:1:9f686a69ee]

Before we go any further, the layout of your disk is somewhat critical to know.
 

_SunTzu_

Distinguished
Apr 5, 2006
99
0
18,630
well first, you have to know i'm a complete Newbie with Linux, but won't learn unless I'll try it :D

so doing literally what you said i got the following:

Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/hda2 1913 7297 43255012+ f W95 Ext'd (LBA)
/dev/hda5 1913 2009 779121 82 Linux swap / Solaris
/dev/hda6 2010 4128 17020836 83 Linux
/dev/hda7 4129 7297 25454961 83 Linux



In addition, is there a thread on this forum that describes how to change from Gnome to KDE without having to do a "Clean install" ?

Thanks in Advance,
Patrick
 

bmouring

Distinguished
May 6, 2006
1,215
0
19,360
Ok, this is a "Good Thing (TM)", linnux can still see your partitions, so they are accessible. There should be an entry in the fstab (filesystem table), so check with the following:
[code:1:f6a959ecd3]cat /etc/fstab|grep -i ntfs
//make sure you get some output from that, it should look something like this
/dev/hda1 /some/mountpoint ntfs some,options,here 0 0
//do the same with FAT32 (called VFAT here)
cat /etc/fstab|grep -i vfat
//should get you something akin to what you saw earlier with NTFS for hda2[/code:1:f6a959ecd3]

If you get those outputs, there is very very good news, it is very easy to get things going now (if not, skip towards the bottom). in the same terminal you were just playing in, type the following
[code:1:f6a959ecd3]sudo nano -w /etc/fstab
//this opens the filesystem table in a nice little editor
//navigate to the line that contains the NTFS stuff
//go to the part in the line with the options (after "ntfs" but before "0 0", they're comma deliminated)
//This is an example of that line, yours may differ slightly
/dev/hda1 /media/windows ntfs ro 0 0
//You should add the following options to the entry (if they're not already there):
/dev/hda1 /media/windows ntfs umask=000,auto,user,ro,noexec 0 0
//do the same for vfat, but omit the "ro"
/dev/hda2 /media/windows2 vfat umask=000,auto,user,noexec 0 0
//once done editing, save it with [ctrl+o][enter][/code:1:f6a959ecd3]

If the lines are missing from the file for those devices, simply add them into the file, opening the file like before (sudo nano -w /etc/fstab), and adding the two lines discussed above to the file at the start then saving it out ([ctrl+o][enter]). Note that for both filesystems, you can mount the thing where ever you'd like, choose any folder location, just make sure that it exists and is empty (i.e. make sure that "ls /path/to/your/chosen/directory" doesn't return a "does not exist" error and there's nothing in it other than "." and "..", I just picked /media/windows out of generality)

Once you've edited the file, try to mount it with the following command: "mount /path/to/one/of/your/mountpoints" (e.g. mount /media/windows). If no errors are reported, congrats, you now have access to one of your old filesystems (an icon shows up on the desktop). the "auto" option we put into the fstab will ensure it will be there on future boots (it auto mounts the filesystem).

If it gives you any errors, or anything herein confuses you, don't hesitate to ask for more assistance. Cheers.
 

_SunTzu_

Distinguished
Apr 5, 2006
99
0
18,630
thanks mate, but since i am a newbie, i realized after some research that there is a powerful app called File MAnager :p that made me able to go anywhere even to the NTFS drive :D

sorry for all the trouble :D
 

bmouring

Distinguished
May 6, 2006
1,215
0
19,360
No problem, that thing's just mounting the drive when you open it, but with a nice graphical interface. If you want those drives to show up automatically on boot, just add the "auto" to /etc/fstab.

Cheers