LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2013, 05:13 PM   #1
LinWinApp
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Rep: Reputation: Disabled
I am installing Linux on a Netboook via USB for the first time, and I am getting this


The problem is with my Harddrive. I get a "The creation of swap space in partition 5 has failed" error. Could anyone help me? Thanks.
 
Old 01-22-2013, 05:21 PM   #2
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 13.2, 42.1, and 42.2, OS X 10.10, Ubuntu 16.04, and Linux Mint 17.3
Posts: 545
Blog Entries: 9

Rep: Reputation: 58
What does the rest of the partitioning on your hard disk look like?
 
Old 01-22-2013, 05:35 PM   #3
LinWinApp
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wagscat123 View Post
What does the rest of the partitioning on your hard disk look like?
http://i.imgur.com/IQkpNWj.png
I have taken a screenshot of what Gparted has listed.
Some other info I am using the Linix Mint Live USB Install.
Click image for larger version

Name:	Screenshot.png
Views:	24
Size:	115.2 KB
ID:	11679
 
Old 01-22-2013, 06:59 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Did Gparted give you the Extended/Swap partition size or did you enter that (1012MB)? If my math is correct, if you add that to your ntfs drive, you come up with 149.07GB which is more than the drive size shows in the upper right of GParted. Not sure this is the problem or how accurate these things have to be but it would be pretty easy to decrease the swap size and try?

What exactly are you trying to do? You have a windows partition taking up over 99% of the drive. Where were you planning to install Mint? Do you have another drive?? Were you planning to resize/shrink your windows partition?

Last edited by yancek; 01-22-2013 at 07:01 PM.
 
Old 01-22-2013, 07:28 PM   #5
LinWinApp
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Did Gparted give you the Extended/Swap partition size or did you enter that (1012MB)? If my math is correct, if you add that to your ntfs drive, you come up with 149.07GB which is more than the drive size shows in the upper right of GParted. Not sure this is the problem or how accurate these things have to be but it would be pretty easy to decrease the swap size and try?

What exactly are you trying to do? You have a windows partition taking up over 99% of the drive. Where were you planning to install Mint? Do you have another drive?? Were you planning to resize/shrink your windows partition?
Well I was planning on using the "Erase disk and install Linux Mint." Option. And I think that Swap partition is on there eveytime I boot my system with the USB. When I use Lubuntu Live USB the Swap isn't there. At the moment I have manually whiped the windows partition. And have tried to install, but I get the same error. I'll have to try using Xbuntu later I assume.
 
Old 01-22-2013, 09:58 PM   #6
LinWinApp
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Click image for larger version

Name:	Screenshot - 01232013 - 02:46:08 AM.png
Views:	21
Size:	208.1 KB
ID:	11681
Now I have swtiched over to Xubuntu, but now I get this error, anyone know the issue?
 
Old 01-22-2013, 10:01 PM   #7
LinWinApp
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Click image for larger version

Name:	Screenshot - 01232013 - 03:00:23 AM.png
Views:	20
Size:	101.5 KB
ID:	11682

And this is what my Partitions look like.

Last edited by LinWinApp; 01-22-2013 at 10:02 PM.
 
Old 01-23-2013, 08:21 AM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
are you sure the HDD is good? those types of errors typically happen when the drive it self is bad.
 
1 members found this post helpful.
Old 01-23-2013, 09:45 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
You might try just using gparted from a terminal instead of going to the installer. Just open a terminal and type: sudo gparted. That should start gparted. I'm not really sure gparted is on the Live CD but it usually is. If you get gparted open, I would delete the partitions starting with the swap and then the Extended and sda1. You did say you have no data on sda1, correct??

After doing that, go to the Device tab and select Create partition table and then go over to Partition and create your new partitions and format. If that doesn't work, it may be a bad drive??
 
1 members found this post helpful.
Old 01-23-2013, 12:13 PM   #10
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
How old is your hard drive? Do you have anything on your hard drive? IF you don't have anything that you need on your HD you could always try erasing it.
 
Old 01-23-2013, 04:07 PM   #11
LinWinApp
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
You might try just using gparted from a terminal instead of going to the installer. Just open a terminal and type: sudo gparted. That should start gparted. I'm not really sure gparted is on the Live CD but it usually is. If you get gparted open, I would delete the partitions starting with the swap and then the Extended and sda1. You did say you have no data on sda1, correct??

After doing that, go to the Device tab and select Create partition table and then go over to Partition and create your new partitions and format. If that doesn't work, it may be a bad drive??
I have started it from the Terminal, I usally do start gparted this way. But anyway I have a feeling this netbooks harddrive is bad, is there anyway to fix/test the harddrive?
 
Old 01-23-2013, 04:13 PM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
It looks like the ntfs partition isn't being removed properly.

What if you use fdisk?
Open it up for that drive "fdisk /dev/sda", use "p" to print the current partition table, and use "d" to delete a partition. Keep going until all of the partitions are gone, then use "w" to write the changes to disk. At that point, gparted should show that there are no partitions and the entire drive is empty. If it doesn't, then the drive might be bad.

Last edited by suicidaleggroll; 01-23-2013 at 04:14 PM.
 
Old 01-23-2013, 06:13 PM   #13
LinWinApp
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
It looks like the ntfs partition isn't being removed properly.

What if you use fdisk?
Open it up for that drive "fdisk /dev/sda", use "p" to print the current partition table, and use "d" to delete a partition. Keep going until all of the partitions are gone, then use "w" to write the changes to disk. At that point, gparted should show that there are no partitions and the entire drive is empty. If it doesn't, then the drive might be bad.
Code:
 mint@mint ~ $ fdisk /dev/sda
fdisk: unable to open /dev/sda: Permission denied
mint@mint ~ $ sudo fdisk /dev/sda

Command (m for help): p

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
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003a2af

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   310505471   155251712   83  Linux
/dev/sda2       310507518   312580095     1036289    5  Extended
/dev/sda5       310507520   312580095     1036288   82  Linux swap / Solaris

Command (m for help): d
Partition number (1-5): d1
Partition number (1-5): 1

Command (m for help): d
Partition number (1-5): 2

Command (m for help): d
No partition is defined yet!

Command (m for help): 3
3: unknown command
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): d
No partition is defined yet!

Command (m for help): 4
4: unknown command
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): p

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
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003a2af

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
mint@mint ~ $ ^C
mint@mint ~ $
As you can see I get a "busy" error. I think it is being used by my USB drive, but I am not sure
 
Old 01-23-2013, 07:05 PM   #14
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Are any of the partitions on the drive currently mounted? That's usually the cause of the "device busy" message from fdisk.
 
Old 01-23-2013, 08:32 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Its because he's deleted the first partition which would be the root (& boot) one ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Linux for the first time. Zaos Mandriva 3 02-03-2007 06:15 PM
Looking at installing Linux first time. New_User Linux - Distributions 6 08-25-2006 07:26 AM
Installing Linux for the first time jassesan Linux - Newbie 2 02-08-2004 12:16 PM
Installing Linux for first time aenimax Linux - Newbie 13 11-13-2003 03:09 PM
Installing Linux for the first time csjosh Linux - Software 2 06-13-2002 04:09 AM


All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration