Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 07-02-2009, 10:01 PM   #1 (permalink)
 
Newb Techie

Join Date: Aug 2004

Posts: 21

MattP is on a distinguished road

Default Switching from XP to Ubuntu, how to?

Not sure if this is the read forum to post this, but here's my situation. On my hard drive right now is Windows XP Home Edition however its virus filled to the point of no return and I have been wanting to switch to Ubuntu for a long time now and figure this is the time to do it.

I'm just unsure how to go about doing this. How do I go about uninstalling Windows and reformating my hard drive? I don't want to end up doing any damage to my hard drive so if anyone has a guide or something they can post to help me out it would be much appreciated.
MattP is offline  
Old 07-03-2009, 08:25 AM   #2 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,611

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: Switching from XP to Ubuntu, how to?

Save files you want to save on an external media such as an ext. hard drive. Download the Ubuntu .iso file (latest is 9.04), burn it to CD, reboot the computer, select the install link and it will format and install Ubuntu. Won't damage anything.
oldskool is offline  
Old 07-03-2009, 03:56 PM   #3 (permalink)
 
Newb Techie

Join Date: Aug 2004

Posts: 21

MattP is on a distinguished road

Default Re: Switching from XP to Ubuntu, how to?

Thank you for the help I have a few more questions to ask you guys

I have installed Ubuntu quickly with no errors and did a format on my 30GB hard drive before hand. It is up and running smoothly but I have just a few newbie questions for you guys

I have my 30GB hard drive which the OS is installed on showing up fine. However I also have an 80GB hard drive which I use for music and games that isn't showing up anywhere. Is there something I need to do so that my second hard drive will be recognized?

Secondly I'm not sure which audio/video drivers I'll need to install to be able to play music/movies, play games etc. I have a JVC sterio system connected to my computer via USB but cant seem to get audio playing.

Also, I'm unsure of which hardware I have, does Ubuntu have its own version of 'dxdiag' to find this out?

Any help for this linux newb is much appreciated
MattP is offline  
Old 07-03-2009, 06:53 PM   #4 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,611

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: Switching from XP to Ubuntu, how to?

Check out this link, it goes into detail about installing and "mounting" a drive. Mounting is required before Linux (in this case Ubuntu) can use it.

https://help.ubuntu.com/community/In...gANewHardDrive

I can't remember if "lshw" comes with Ubuntu by default, but if it isn't you can download and install the lshw package and it will show you a list of your hardware.

In regards to drivers, I know of a couple other people here more experienced with Linux, including Ubuntu that would be able to help you better.

Note: Something interesting, you posted at 3:56 (my local time) and I posted at 6:53 (my time as well). Numbers are exactly opposite each other
oldskool is offline  
Old 07-04-2009, 05:16 PM   #5 (permalink)
 
Newb Techie

Join Date: Aug 2004

Posts: 21

MattP is on a distinguished road

Default Re: Switching from XP to Ubuntu, how to?

Quote:
Originally Posted by oldskool View Post

Note: Something interesting, you posted at 3:56 (my local time) and I posted at 6:53 (my time as well). Numbers are exactly opposite each other
Haha thats awesome

I'm following the guide and have gotten to this step

Quote:
The defaults part may allow you to read, but not write. To write other partition and FAT specific options must be used. If gnome is being used, use the right-click, mount method. Then launch the mount command from terminal, no options. The last entry should be the FAT drive and and look something like:

/dev/sda5 on /media/mynewdrive type vfat (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1 000,utf8,umask=077,flush)

All of the parts between the parenthesis are the mount options and should replace "defaults" in the fstab file. The "2" at the end instructs your system to run a quick file system check on the hard drive at every boot. Changing it to "0" will skip this. Run 'man fstab' for more info here.
I'm not sure what I am supposed to do here. I tried doing "sudo mount -a" and got the following message

Quote:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

MattP is offline  
Old 07-04-2009, 06:16 PM   #6 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,611

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: Switching from XP to Ubuntu, how to?

Well I think I mentioned I don't have experience mounting hard drives in Linux, only USB thumb drives which is usually no problem. I can say that there are several other members here that can help if they read this.

If you are going to use Ubuntu for a while, you could go to Ubuntu Forums

I am a member there and everyone is helpful there. Mean time, you will get probably most everything you need Ubuntu/Linux wise right here in this subforum. I am just letting you know that I know about needing to mount the hard drive, I just dont have any experience with it.
oldskool is offline  
Old 07-05-2009, 03:36 PM   #7 (permalink)
 
Super Techie

Join Date: Aug 2007

Location: Portugal

Posts: 273

farinha is on a distinguished road

Default Re: Switching from XP to Ubuntu, how to?

Hi.

Can you paste the content of your fstab file? And the return of the command "fdisk -l"?
Your 80Gb partition is formated with which file system? ntfs? fat32? ext3?
farinha is offline  
Old 07-06-2009, 10:03 PM   #8 (permalink)
 
Monster Techie

Join Date: Sep 2005

Location: /home/jason

Posts: 1,780

Jayce will become famous soon enoughJayce will become famous soon enough

Send a message via AIM to Jayce
Default Re: Switching from XP to Ubuntu, how to?

The reason you got the errors with the mount command is because you didn't complete the command. You told Linux to "Hey! Ubuntu! Mount this!.........."

Ubuntu sat there wondering what "this" was.

A completed mount command looks like this:

sudo mount /dev/sdb1 /media/localbackup

Breaking down the command piece by piece, we have several sections. I'm not sure how much you understand by this command but I figured if thirty seconds of typing helps ya out, awesome. If you already know this, so be it.

Sudo - Root user. Superuser priviledges. Think of it as you telling the computer "Just ****ing do what I tell you."

mount - The actual "command" that is issued.

/dev/sdb1 - dev is known as "device" and sdb1 is the hard drive ID. You can see your hard drive ID in GParted (Gnome Partition Editor - weapon of mass destruction, be careful with it) along with the command "sudo fdisk -l" in terminal.

/media/localbackup - the destination. You create this destination with the "sudo mkdir" command (mkdir = make directory). Example - sudo mkdir /media/localbackup. This issues a folder called "localbackup" to be within the "media" directory. Localbackup is simply the name of the mount point. Customize this to what YOU would like. Localbackup is just an example from my system.

[NOTE] - Always remember - source first, destination second. You are mounting /dev/sdb1 (source) to /media/localbackup (destination), that's why they appear /dev/sdb1 /media/localbackup and not the other way around.

So now we've dissected the "sudo mount /dev/sdb1 /media/localbackup" command. You can customize this command to whatever you want to do. Is your drive /dev/sdc1? No problem. Plug that in place of /dev/sdb1. Along with your mount point (/media/localbackup), name it whatever you want when you create it.

So where are we at now? You have the hard drive, you have the mount point, but now you need to tell the system to automatically mount the drive each time you boot up so its always accessible. That's what /etc/fstab is (fstab is file system table, located in the /etc directory).

You need to edit this file, using an editor such as gedit. I use gedit for almost everything.

Command is - sudo gedit /etc/fstab

And presto. Your fstab file shows up. This is where you add the entry for your drive. This is very easy, but make sure you do it accordingly to what the Ubuntu documentation says. Otherwise it won't mount when you boot up.

This is the entry that Ubuntu suggested:

/dev/sdb1 /media/mynewdrive ext3 defaults 0 2

Customize this to YOUR needs. Is /dev/sdb1 your drive? If not, change it. What is your mount point? Is it /media/mystuff? If so, change it here. The section where ext3 is is simply the file system. If you are running Ubuntu ONLY, ext3 should be just fine. ALL of my drives use ext3. If you are running another file system such as fat32, it should be noted here, but I believe fat32 is noted as "vfat", however I'm not positive. ALSO - Please note, there is a newer file system out known as ext4 (newer than ext3). You can use that if you wish. I personally chose not to until the future release of Ubuntu this fall due to the fact ext4 is new and I'd rather wait a bit. Just keep in mind to tag in /etc/fstab whatever file system is on that hard drive.

Personally, what I do is I add a comment tag in there too so I know what I'm doing. This may or may not be something you want to do, but I like doing this with having 4 drives in my PC. The first backup drive in my system shows up as follows in /etc/fstab:

#BACKUP DRIVES
#Local Backup Drive
/dev/sdb1 /media/localbackup ext3 defaults 0 2

Anything before # in that particular line doesn't show up, so I use the #EnterTextHere feature so I can keep organized with my stuff.

Now... where are we at now? You have a mount point. You have the drive. You have /etc/fstab adjusted accordingly. What about permissions? I wouldn't advise messing with permissions on the drive unless you have any issues accessing it locally. However, I adjusted my permissions on my drives in a certain manner since I have network users who attach to some of the drives. The important thing is that you are the owner. If you right click on the mount point (AFTER it is mounted, that is) and hit the permissions tab you can see what's listed there. Are you the owner? If it's root, I suggest changing it.

sudo chown -R /media/mystuff

sudo - superuser
chown - change ownership
-R (CAPITAL R) - Recursive. This applies the changes to the folders within.
/media/mystuff - whatever your drive mount point is.

Now... if you followed these steps accordingly... whenever you boot, your drive should be easily accessible in the /media/WhateverYouNamedIt directory. Unlike Windows where it just plops the drive in (which is convenient, but far less customizable) you have more control over what your computer is doing. In my case, I have 3 backup drives. 1 for me, and 2 for network storage for other computers. I need to tell these drives apart, so I mount them to specific shares. With Windows, I suppose I could just have their Local Disk - D or Local Disk - E drives to tell them apart, but it's much easier to look at my disk usage analyzer and see drives labeled "Localbackup" and "Storage" and "Storagebackup".

So overall, this is what you did.

-Create a mount point for your drive.
-Added the hard drive to /etc/fstab to auto-mount upon system bootup.
-Changed ownership if the mount point, though, this may not be needed if you are already the owner.

This is a process that honestly takes about 30 seconds to do if you have done it before. Doing it the first time can seem a little cumbersome and sketchy. Another thing to throw out there is that if your drives are plugged in to your system when you install Ubuntu, this entire process can be automated. When you hit the partitioning section (using the manual partition mode option) you can select each drive accordingly and select its mount point. It'll add all of the nitty gritty details to /etc/fstab automatically for you, as we did manually above. Of course, please note, if you are installing Ubuntu on drive "A" and you don't want drive "B" formatted, which has data on it, make sure you don't check the "format" option for it. But don't worry about that until you get to that point.

For now, this should get you rolling. Post back if you have any issues.
Jayce is offline  
Old 07-07-2009, 06:38 PM   #9 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,611

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: Switching from XP to Ubuntu, how to?

Great post, Jayce ! It should be a tutorial or article on mounting drives in Linux, IMO.
oldskool is offline  
Old 07-07-2009, 11:09 PM   #10 (permalink)
 
Monster Techie

Join Date: Sep 2005

Location: /home/jason

Posts: 1,780

Jayce will become famous soon enoughJayce will become famous soon enough

Send a message via AIM to Jayce
Default Re: Switching from XP to Ubuntu, how to?

Ahh! I goofed! And I don't have the edit key available to edit my post.

VERY IMPORTANT - I mentioned about changing ownership of the folder you created to mount your drive in. I screwed up that command. I forgot to add the user in it.

sudo chown -R /media/localbackup

will not work. You need to have a user in it.

sudo chown -R jayce /media/localbackup

sudo - root
chown - change ownership
-R - recursively
jayce - user
/media/localbackup - directory you're applying these changes to

Change "jayce" accordingly to whatever user you want to own that folder.
__________________
Go open source, or go home.
Jayce is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu gets web-based file sync and sharing office politics Linux, BSD, other *nixes & Open Source Software 4 05-19-2009 05:35 PM
Portable Ubuntu Runs Ubuntu Inside Windows Osiris Linux Tips and Tricks 0 04-04-2009 02:32 PM
Which Ubuntu Derivative Is Right For You? Osiris Linux Tips and Tricks 0 04-02-2009 12:38 PM
US woman says Ubuntu can't access internet Osiris Linux, BSD, other *nixes & Open Source Software 25 01-26-2009 06:27 PM
Ubuntu goes more mobile with 8.10 release Osiris Linux Tips and Tricks 6 10-29-2008 08:37 AM