DamnSmallLinuxThis forum is for the discussion of DamnSmallLinux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm actually playing around with an old 486 and I've installed DSL 3.1 on it. Now, as the BIOS only supports a 512MB partition to boot from and as I have installed a 2GB drive, I'd like to mount the /home partition from hda3 (hda2 being swap). Do I have to edit mtab? I've already added "home=hda3" to menu.lst (GRUB bootloader configuration file). However, it has no effect. Hda3 currently must be mounted manually (but seems to work). Filesystem is ext2, if this matters.
Thanks for your help
PS: How do I change the machine to do an autologin?
Last edited by hansalfredche; 02-21-2007 at 09:58 AM.
The system is booting up. I already did some editing in /etc/fstab and will post its content. However that boot command shouldn't it be home=/dev/hda3 instead of home=hda3. I'm unsure ...
Here we go for the /etc/fstab file. As I have to copy it manually I only copied the relevant line:
Quote:
/dev/hda3 /home ext2 defaults 0 0
What did I forget?
EDIT: setting the home boot command to /dev/hda3 didn't help.
Last edited by hansalfredche; 02-21-2007 at 12:37 PM.
Dooo! I've edited the /etc/fstab file and changed the last number from zero to either 1 or 2 like that:
Quote:
/dev/hda3 /home ext2 defaults 0 1
What is that last number for? hda1 has the numbers "0 1", should I change it to "0 0"?
Result during boot time: e2fsck complains: Filesystem has unsupported features. Get a newer version of e2fsck.
All partitions were created with Gparted featured in the latest Knoppix. Why does it only complain for hda3 and not for hda1 (it's reported clean)? The ext2 specs didn't changed lately?
Last edited by hansalfredche; 02-21-2007 at 01:19 PM.
The reason why I didn't got any error messages so far is because 0 means no check. However, this still doesn't tell me what's wrong. /dev/hda3 doesn't get mounted as /home at boot time. Why not? There are no error messages other than that of e2fsck. Should I format that partition again? There is nothing important on it.
I can mount something, but it is bizarre. When I mount /mnt/hda3, it seems to mount something like my home directory while when I mount /home, there was only some lost+found directory. Here we go for the fstab, if the floppy does work.
Let's back up a second. There is nothing you need to be changing in your grub configuration file. Eliminate that from the equation.
It looks to me like you've set up /etc/fstab correctly. Here's the scenario:
You have created a new filesystem with nothing on it.
When /dev/hda3 is not mounted, you should see your normal /home directory. Currently it's on the same filesystem as /, which is /dev/hda1.
When /dev/hda3 is mounted, you should see an empty /home directory (+ lost+found, as you noted). This is because your newly mounted filesystem is overlaying your existing /home directory.
Here is what you can do. Create a /home-new directory. Mount /dev/hda3 to /home-new. Copy (preserving permissions) everything from /home to /home-new. You can use -Rp options from the cp command, or you can use tar with similar options - your choice.
Next, as root (or a sudoer), mv /home-new to /home. You'll have to use the -f option.
Unless I've overlooked some detail, you should be in business after that. Make sure you carefully follow all the steps and ask questions if you get confused.
Thanks. I managed it to get to work. For future reference I'm writting a possible solution. I did what you proposed, but this resulted in an message complaining that /home wasn't found just after the login screen (and only when login in as user). In this case, pressing CTRL-C, login in as root and mounting the partition manually solves the problem as long as the machine isn't shut down. That is however not what is expected, so one has to open a text editor and edit the following file /opt/bootlocal.sh
Quote:
(as root)
beaver /opt/bootlocal.sh
There you add following line
Quote:
mount /dev/hda3
Of course, adapt /dev/hda3 to wathever has to be mounted. This solved the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.