MountingForum: Other Help Topics Topic: Mounting started by: IDK Posted by IDK on June 21 2006,21:26
I got a partition that I got dsl on and then I got a couple of others that I got nothing on now. I ran out of space now, and I would want to use those partitions now.I would want to mount my hda5 as /home, but I can't seem to get it work. How should I do it? Also, if I wan't to remove some space from my first partition by mounting it, where should I mount it? Posted by mikshaw on June 22 2006,01:08
You can easily mount home and/or opt to another partition using the boot options "home=hda5" and "opt=hda5". If you want to mount other directories it will be a lot more complex, since even in a traditional harddrive install /etc/fstab is automatically rebuilt during boot.
Posted by IDK on June 22 2006,11:48
ThanksHow do I set the boot options so I don't need to specify them at boot? Posted by mikshaw on June 22 2006,16:57
depends on how you're booting...grub, lilo, floppy, CD?
Posted by IDK on June 22 2006,19:35
I got lilo
Posted by john_spiral on June 27 2006,07:44
Edit the correct lilo.conf file with the above additions. Obviously the lilo.conf file needs to be on one of your hard drive partitions.caio John Posted by IDK on June 27 2006,10:18
I have got some other things at mind, and maneged to remove some temporary files that relised some memmory.I edited the append line to look like this: append="hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce noapic home=hda5" And ran lilo. Then I rebooted, but nothing happend. What did I do wrong? Posted by john_spiral on June 27 2006,12:14
your above lilo line indicates that you have several scsi hard discs, is this true?Boot from the dsl CD and run the following command in Aterminal: sudo fdisk -l it will display all the partitions on all attached discs. post the results Posted by IDK on June 27 2006,15:22
Here you godsl@box:~$ sudo fdisk -l Disk /dev/hda: 12.0 GB, 12020391936 bytes 255 heads, 63 sectors/track, 1461 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 510 4096543+ b Win95 FAT32 /dev/hda2 * 511 753 1951897+ 83 Linux /dev/hda3 754 770 136552+ 82 Linux swap /dev/hda4 771 1256 3903795 5 Extended /dev/hda5 771 1013 1951866 83 Linux /dev/hda6 1014 1256 1951866 83 Linux dsl@box:~$ Posted by john_spiral on June 27 2006,15:42
Does DSL boot with the new lilo configuration?check the below post for more info on how /ramdisk/home is a symbolic link for /hda5/home < http://damnsmalllinux.org/cgi-bin....hl=home > Posted by IDK on June 27 2006,16:39
Yes it boots, but it won't mount.This is my mount: dsl@box:~$ mount /dev/hda2 on / type ext3 (rw,errors=remount-ro) /proc on /proc type proc (rw) /dev/pts on /dev/pts type devpts (rw) /proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666) I don't got a /ramdisk directory. I think I have a harddrive install... Posted by john_spiral on June 27 2006,23:53
have a look at the below post:< http://damnsmalllinux.org/cgi-bin....nd+home > there might be something in the fstab editing and cping the /home folder to other partition. Please tell us how it goes. Posted by IDK on June 28 2006,11:26
Thanks it solved it!Isn't it possible to login as lost+found now? ;) Posted by IDK on June 28 2006,21:02
Here's another thing.I copied the data from my original /home/dsl to /mnt/hda5/dsl and mounted /mnt/hda5/dsl at /home/dsl, where does the original /home/dsl files go? They still take up disk space... Posted by john_spiral on June 29 2006,00:32
ummmm, maybe you can delete them? Please get a 2nd opinion on that!
Posted by mikshaw on June 29 2006,01:51
They don't go anywhere...they're just unavailable. The directory containing your original files is now being used as a mountpoint instead of a regular directory, so entering that directory sends you to the mounted device. If you umount the partition, you'll have your old files back. Try using the dsl home=hda5 boot option. This will automatically set up your system to use that new directory as your home, and you don't have to mess with fstab or manual mounting, although you will first need to move the files to /mnt/hda5/home/dsl instead of /mnt/hda5/dsl Posted by john_spiral on June 29 2006,07:55
from the above:Boot from say the DSL cd or another partition, mount the hda2 partition on /mnt/hda2, then rename /mnt/hda2/home to say /mnt/hda2/homesomething. Reboot using /hda2 to see how the system responds. If it's ok rm the /homesomething dir. Obviously backup your files before palying with the evil rm command. The might be a simpler way of doing the above while still booted off hda2 Posted by IDK on June 29 2006,11:52
I did as you said, jonh, but then at boot, it could't find /home
Posted by john_spiral on June 29 2006,12:02
looks like DSL needs /home/dsl to exist for the mount point to work.try booting off cd, mount /dev/hda2 and create /home/dsl hopefully this should work, please post your results. If this does work you can remove /homesomething Posted by IDK on June 29 2006,12:25
thanks, that solved it!
|