Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Now working on a second computer which already has Ubuntu 6.06 installed. Have partitioned and formatted a second (larger) hard drive with partitions:
Device Boot Start End Blocks Id System
/dev/hdb1 1 1217 9775521 83 Linux
/dev/hdb2 1218 1340 987997+ 82 Linux swap / Solaris
/dev/hdb3 1341 18362 136729215 83 Linux
/dev/hdb4 18363 19929 12586927+ 83 Linux
1 is boot, 3 is for /home, and 4 will be changed to fat32. 6.06 is installed
and have booted the original drive which has the following partition structure:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3570 28675993+ 7 HPFS/NTFS
/dev/hda2 3571 4711 9165082+ 83 Linux
/dev/hda3 4712 4998 2305327+ 82 Linux swap / Solaris
The NTFS partition is corrupted, so this drive needs repartitioning and reinstalling.
After the reboot, I first tried to use the File Browser with the idea that I would simply copy the home directory from hda2 to hdb3, repart/reinstall hda with a structure more like hdb, copy /home back to the hda /home partition. However when I click on any partition, the Browser gives the message
Unable to mount the selected volume
with details as:
error: device /dev/hda[2-3] (or hdb[1-4])* is not removable
error: could not execute pmount
*(the "hda[2-3] (or hdb[1-4])" is my way of indicating that this is true for both drives and all linux partitions, although it will show the filesystem and home directories in hda2)
The unmounted drive shouldn't have any effect on the browser ooking at the first drive, but stranger things have been known to hapen.
Just FYI, you'll need to right click on the new drive under the live CD, and make sure the properties are changed so it can be written to. By default most live CDs mount read only, but that is easily changed to include the ability to write.
I second JimBass in assertion of the whole drive cannot be mounted.
One can have more than one partition and therefore more than one filing system inside a drive. An operating system can't cope if it has to switch around different filing systems for the reading/writing at same mounting point.
Also in mounting a partition its boot sector is excluded. If the whole drive is mounted it would look like a Swiss cheese with boot sector holes in every partition.
One can up to 63 partitions in a Pata. Modern Linux like a Slax will mount all of them automatically but never the as one drive.
Am now at the office and have brought the second hard drive with me. Understand about mounting partitions, not whole drive, and should have realized of course. Have now created two mount points for hdb1 and hdb3 (skipped hdb2 since it is swap) and mounted them.
This computer is running Ubuntu 5.04 and it's primary harddrive is really in need of repartioning, and upgrading (This was my first stab at Linux). AFAIK 5.04 does not have a browser like 6.06 does, but hopefully you will be able to set me straight if it is there. Can fdisk hdb, but can't figure out how to see hdb either in terminal or graphically Can you help me on this? (I will be copying /home over to hdb3 and then back to hda after repart and upgrade here as well.)
Had to leave due to ice storm coming in, but will implement this tomorrow (or as soon as the highways are open).
Small thing, but by "file manager" are you referring to a graphical file browser? In 6.06, when I click Places/Computer, it opens into a two pane window with /home and filesystem in left pane, and in the right pane:
the ersatz (corrupted) hda (described simply as 27.3GB Volume-Properties all unknown)
the partitions of the second drive (when connected)
In 5.04, the same opens to a single pane with only the home and filesystem showing.
Is this an improvement in 6.06 or have I just not figured out how to get the two pane result in 5.04?
Yes, by "file manager" Saikee means more or less, "the tool that allows you to look at files."
Both the single pane and the double pane window are available in both interfaces, it is just a different set of default rules. Chances are very good you could configure each to behave like the other if you desired it to.
The ice finally melted, just in time for me to lightnin-a_s to the airport and squeak onto the plane. Now back and hope to get the drive sorted out tomorrow.
One other question occured to me while I was away. I plan to do the tar thing in any case, but since both drives are now hooked up to the computer (or were last time I saw it), is there any reason not to just copy the /home directory (and /var and /etc) over to hdb3 on the new drive? That is, what are the advantages of the tar method over the straight copy method?