Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: SixT7 on February 21, 2010, 10:11:53 PM
-
Hi,
its already my second problem with tc on which i spent a little too much (or still not enough?) time googleing for a solution.
I want to create a backup. I have already read the stuff on the tc concepts site. My problem is, that I cant mount any HDs (neither internal nor external HDs).
I tried it with the mount tool, but when i click on the red 'unmounted' button, it stays unmounted and red. When i tried to use the console, it just said 'no such device'.
What do I do wrong?
thx, SixT7
-
What is the file system on partition you are mounting? Output 'fdisk /dev/xxx' and 'p' command may help to understand partioning on the specific device.
-
I dont really know more than before.. And I'd just paste it but i dont know how to copy and paste in the console. Is that possible?
-
The command "fdisk -l" will also list partitions and what kind of filesystem they have. I normally don't copy and paste from the console myself as I have mostly 2 button mice, I prefer to output to file instead. In this case, use this command to create a file called file that contains the output of the command:
fdisk -l > file
Then open the file file with leafpad or another graphical editor and you can copy and paste the results from it. To use bmarkus's command, do this:
fdisk /dev/xxx > file
then press the 'p' button, and then press the q button to exit the program. The prompts are hidden as they are output to the file file, but pressing those buttons will give the output of the 'p' option to the file named file which you can copy from there.
-
Okay, i should have known that, but i was just to focused on copy and paste that i didnt even think about that x)
okay, here is my output:
fdsik -l:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9729 78148161 7 HPFS/NTFS
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 60801 488384001 7 HPFS/NTFS
fdisk /dev/sdb1:
'/dev/sdb1' is opened for read only
The number of cylinders for this disk is set to 60800.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): pq
'/dev/sdb1' is opened for read only
The number of cylinders for this disk is set to 60800.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb1: 500.1 GB, 500105217024 bytes
255 heads, 63 sectors/track, 60800 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1p1 ? 121585 239029 943368597+ 43 Unknown
Partition 1 does not end on cylinder boundary
/dev/sdb1p2 ? 110106 229557 959493297+ 72 Unknown
Partition 2 does not end on cylinder boundary
/dev/sdb1p3 ? 10499 10499 0 65 Unknown
Partition 3 does not end on cylinder boundary
/dev/sdb1p4 166584 166587 24662+ 0 Empty
Partition 4 does not end on cylinder boundary
Partition table entries are not in disk order
Command (m for help): q
I dont really know what to do with that information. Can you see what the problem is?
-
Your internal HD is ntfs, not supported in TC base. Grab the filesystems extension for read-only ntfs, or ntfs-3g for rw.
Your external HD, sdb, has a corrupted partition table. I recommend wiping it clean and making partitions from linux. It will continue to work in Windows.
-
You should not be running fdisk on partitions - Ex: sdb1.
-
Good point, I missed that. Your external HD might be fine afterall, maybe it's ntfs as well.
-
oh, okay.
so theres no way to make my backup on a ntfs partition?
-
No.
Use a thumb drive formatted ext2.
-
No.
Use a thumb drive formatted ext2.
As backup used by TC/MC is a single file, you can use a FAT partition also, ext2 is not a must have.
-
I suggest you create an Ext3 partition and a swap partition on a hard drive, and install Tiny Core.
If you use persistent home and opt, you don't need to backup much.
If you have free space, you can use the Parted Magic CD, or the GParted extension installed in Tiny Core, to make new partitions.
-
It is the beauty and difficulty of LINUX and especially TC/MC. There are so many pathes to reach a goal :)
-
Okay, got my 8 GB Lexar JumpDrive today, its really as tiny as it lookes on the photo :D
tiny flash drive for tiny OS :) I love it ;D
Already installed tiny core on it - everything works perfectly.
But i still dont get how to load the backup i made. ??? All the manuals say 'just use this and that bootoption' but where do i enter them?
And ive installed firefox and after a reboot i had to install it again. How do i install programs permanently on my flash drive? Do i have to save the stuff on a backup before rebooting?
Thanks, SixT7 ;D
EDIT: oh, actually i wanted to create a new topic. But its more or less still the same problem. ;D
-
Did you use USB Install to install it? If not how did you install it?
Backup should work automatically, unless you change it so it doesn't.
If you install programs while running Tiny Core from the flash drive, they should still be there when you reboot.
Try running CPanel -> AppsAudit -> On Boot -> Maintenance. Click on the programs you want to be loaded when you start the computer.
Also run CPanel -> OnDemand for programs you want to be available on demand, that is not loaded until you start them.
If you are running an older version, some things are different. I suggest you install the latest version.
-
yeah, i think its the latest version.
no, i nstalled it using http://tinycorelinux.com/install.html (http://tinycorelinux.com/install.html).
And my problem is not, that firefox didnt load on startup, but that it was just not installed.
thanks for the fast answer, SixT7
-
You need to include more boot options.
like this
title Tiny Core
root (hd0,0)
kernel /boot/bzImage quiet tce=sda1 max_loop=256
initrd /boot/tinycore.gz
or this
title Tiny Core
root (hd0,0)
kernel /boot/bzImage quiet tce=sda1 home=sda1 opt=sda1 max_loop=256
initrd /boot/tinycore.gz
Change (hd0,0) and sda1 to the correct partition.
If you use the first one, you need to use backup. This will result in start up and shut down taking longer. However, the usb drive will last longer.
If you use the second one, you can have very little in backup, so it will be very quick. But the usb drive won't last as long.
My personal opinion: If you use it for browsing the internet, use the second one. If you don't use it for browsing the internet, use the first one. Internet cache adds a lot to backup. I think it is easier to buy a new drive when it fails (probably in several years time), than to waste time every time you start up and shut down.
This should get it working, but there is still more to learn. Read up more. Here is one example.
http://wiki.tinycorelinux.com/tiki-index.php?page=Backup
-
If I was in your situation, after learning how it works, I would make an Ext3 and swap partition on a hard drive and install Tiny Core there.
USB drives fail as a result of being written to too often. Hard drives don't.
Learn first. If you want, you can do that later.
You can then use the USB drive for transferring things to other computers.
Just my opinion.
-
The answer is probably here:
http://www.tinycorelinux.com/faq.html#pendrives
-
yeah, looked like a solution but didnt work. Any ideas how i could make it work? what about the save / restore thing? could i do that?
And i have an older home dir save, so i just copied the stuff in /home/tc. But the programs didnt work. Is the home dir just the settings? and what du i have to save to save the programs too?
SixT7
-
To install on a usb drive, run Tiny Core from the cd, install dosfstools and syslinux, then run USB Install (from the control panel). Select the Ext filesystem.
Then run Tiny Core from the usb drive, and install programs you want.
Everything should be set up automatically.
-
Thanks, that worked. :)