WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Partitions are gone after installation [solved]  (Read 3532 times)

Offline ghosts

  • Newbie
  • *
  • Posts: 19
Partitions are gone after installation [solved]
« on: February 04, 2013, 08:45:44 AM »
Hope this is the right place to post this. Not really sure what's going on--I downloaded Core Plus and used it to connect to the internet.

Then I downloaded cfdisk and used it to create a swap, tce, opt, and home partition. After that I ran the installer, formatted everything to ext2.
The install was apparently successful, however when I rebooted and took out the cd, I noticed that my partitions are gone. They are not recognized when I turn my netbook on.

I put the cd back in and installed cfdisk again. This time it showed me one big ext2 partition instead of the four I'd created.

Can someone explain this to me?

. . . also, a few minutes ago I tried to re-install it, but whenever I try to format a swap partition, the next time I print the partition table it says "ext2" instead of swap. It's happened a few times already. What am I doing wrong?

edit

changed the title of this thread as it seemed kind of misleading or inaccurate

« Last Edit: February 04, 2013, 06:56:26 PM by ghosts »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11625
Re: Tiny Core "destroys" partitions. . . ?
« Reply #1 on: February 04, 2013, 09:23:55 AM »
Hi ghosts
Yes, Tinycore will destroy partitions, as will any Linux or Windows operating system if you tell them to.
Quote
Then I downloaded cfdisk and used it to create a swap, tce, opt, and home partition.
There's really no need to create separate partitions for tce, opt, and home.
Quote
After that I ran the installer, formatted everything to ext2.
So you selected  "Whole Disk"  instead of  "Existing Partition"  in step 2? (See: http://tinycorelinux.net/install.html)

aus9

  • Guest
Re: Paritions are gone after installation
« Reply #2 on: February 04, 2013, 09:31:36 AM »
Hi ghosts

Without trying to re-partition--- what is the result of this command please
Code: [Select]
ls -al /dev/disk/by-path

Can you describe how many drives or usb sticks you have connected during your attempt to install as well pls

Can you briefly describe what main uses you want to do with your computer?

2) Leaping ahead, if you like the idea of having persistence after reading the concepts page
http://www.tinycorelinux.net/concepts.html

I think most people who use persistence have the tce folder, the home folder, the opt folder on one or 2 partitions and not on one each
Personally I like to keep it simple and all exist on one partition.

Whether you need a swap partition is dependent on much RAM you have, and what you intend to do with your computer like video editting etc
eg I don't have a swap but I have 2G RAM

cheers

Offline ghosts

  • Newbie
  • *
  • Posts: 19
Re: Tiny Core "destroys" partitions. . . ?
« Reply #3 on: February 04, 2013, 10:03:33 AM »
Hi ghosts
Yes, Tinycore will destroy partitions, as will any Linux or Windows operating system if you tell them to.

That's why I changed the title :)) I don't blame it on Tiny Core, though I don't think I did anything intentional to destroy the partitions.
Quote
Quote
Then I downloaded cfdisk and used it to create a swap, tce, opt, and home partition.
There's really no need to create separate partitions for tce, opt, and home.
I'll keep that in mind when I try to install again, thanks.
Quote
Quote
After that I ran the installer, formatted everything to ext2.
So you selected  "Whole Disk"  instead of  "Existing Partition"  in step 2? (See: http://tinycorelinux.net/install.html)

Yeah. I don't intend to dual-boot.

Hi ghosts

Without trying to re-partition--- what is the result of this command please
Code: [Select]
ls -al /dev/disk/by-path

Ah, I can't, I've already installed a backup os :( I'll try again in the morning though.

Quote
Can you describe how many drives or usb sticks you have connected during your attempt to install as well pls

Just an external DVD drive connected through a USB port

Quote
Can you briefly describe what main uses you want to do with your computer?

Internet, essays, manga, movies & series. . .  Nothing heavy, and I usually use very small applications.

Quote
2) Leaping ahead, if you like the idea of having persistence after reading the concepts page
http://www.tinycorelinux.net/concepts.html

I think most people who use persistence have the tce folder, the home folder, the opt folder on one or 2 partitions and not on one each
Personally I like to keep it simple and all exist on one partition.

Noted, I'll use one :)

Quote
Whether you need a swap partition is dependent on much RAM you have, and what you intend to do with your computer like video editting etc
eg I don't have a swap but I have 2G RAM

I have 2G  ram too, the swap is just for insurance.

Quote
cheers

Thanks!

Offline ghosts

  • Newbie
  • *
  • Posts: 19
Re: Partitions are gone after installation
« Reply #4 on: February 04, 2013, 10:11:05 AM »
I'm gonna  try again tomorrow with less partitions. If all goes well, I'll chalk it up to some mysterious mistake on my part. If not. . . well I'll get back to this thread with more questions  U^_^

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11625
Re: Partitions are gone after installation
« Reply #5 on: February 04, 2013, 10:27:24 AM »
Hi ghosts
That's why your partitions disappeared, you told the installer to use the whole disk, and then format it.
If you are comfortable using cfdisk, that's fine, I personally use gparted when dealing with partitions. Leaving
some unpartitioned space on the drive might be a good idea. This will allow you to set up partitions in the future
should you wish to test a different version of Tinycore (or other OS) without disturbing the current version.
Create a partition where you want to install to and a swap partition. This time try USB-HDD, Existing Partition, and
Install boot loader options. Be sure to select the partition in the window labeled  Select for core.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Partitions are gone after installation
« Reply #6 on: February 04, 2013, 12:54:07 PM »
but whenever I try to format a swap partition, the next time I print the partition table it says "ext2" instead of swap. It's happened a few times already. What am I doing wrong?
Swap space cannot be formatted, it gets prepared using "mkswap" (regardless if partition or file).
I'd recommend you prefer swap file(s) over swap partition.
« Last Edit: February 04, 2013, 03:43:11 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Partitions are gone after installation
« Reply #7 on: February 04, 2013, 01:51:53 PM »
Swap partitions are formatted with mkswap.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Partitions are gone after installation
« Reply #8 on: February 04, 2013, 03:46:11 PM »
Oops!  :o
Thank you gerald_clark, of course that was meant to read "mkswap" instead of "swapon"   ::)

Prior post edited accordingly
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline ghosts

  • Newbie
  • *
  • Posts: 19
Re: Partitions are gone after installation
« Reply #9 on: February 04, 2013, 06:56:04 PM »
Hi ghosts
That's why your partitions disappeared, you told the installer to use the whole disk, and then format it.
If you are comfortable using cfdisk, that's fine, I personally use gparted when dealing with partitions. Leaving
some unpartitioned space on the drive might be a good idea. This will allow you to set up partitions in the future
should you wish to test a different version of Tinycore (or other OS) without disturbing the current version.
Create a partition where you want to install to and a swap partition. This time try USB-HDD, Existing Partition, and
Install boot loader options. Be sure to select the partition in the window labeled  Select for core.

THANK YOU! Worked perfectly.
. . . wow it seems so obvious now that I think about it  :-[

but whenever I try to format a swap partition, the next time I print the partition table it says "ext2" instead of swap. It's happened a few times already. What am I doing wrong?
Swap space cannot be formatted, it gets prepared using "mkswap" (regardless if partition or file).
I'd recommend you prefer swap file(s) over swap partition.

Oh, thanks. "mkswap" was something I thought was mostly necessary for things like Arch where you're formatting and mounting partitions manually. Since I used "cfdisk" to format it as "swap" I thought it wasn't needed. Oh well XD Lesson learned.
« Last Edit: February 04, 2013, 07:57:21 PM by ghosts »