-
-
Senior Member
registered user
have you changed the fstab?
to be able to help further it would be nice if you could post putput from (and coment where you want your /home)
then post your fstab.
-
Senior Member
registered user
I had this problem when I ran out of space/wanted to use a new partition for my home directory. I changed fstab, but without going into detail, the change to fstab stopped me from viewing my existing /home directory, i.e. I remounted my new volume over the old /home directory. I puzzled for ages over this and in the end I didn't change fstab but instead I put a soft link in the home directory to the actual directory I wanted to use. (On the other partition).
This works but I bet it's not the correct way to do it! I expect you would have problems as you add new users, but this is no problem for me as I am the only user!
Stu.....
-
Senior Member
registered user
if you mke a folde called home2 and mount the new partition there, i will assume ext3 as filesystem.
Code:
mount -t ext3 /dev/hdXY /home2
as root do a cp -avx /home/* /home2/
then unmount the /home2 change fstab so that the new home will be mounted under /home.
that is add the line.
Code:
/dev/hdXY /home ext3 defaults 1 2
replace the XY with the apropiate numbers. this SHOULD work. perhaps a
Code:
chown -R username:users /home/username
is necesary (not likely) but that should be a quick operation...
-
Senior Member
registered user
if you still want your old home, mount that under the users /home/username directory with fstab,
put line
Code:
/dev/hdAB /home/username/oldhome ext3 defaults 1 2
as above change the AB to apropriate value.
-
First of all, thanks to everyone for replying!!
To OErjan: I changed fstab and the relevant lines are
/dev/hdc3 / ext3 defaults,errors=remount-ro 0 1
(where the old /home resides), and
/dev/hdc4 /home ext3 defaults 0 0
(where the copy of the old /home resides (made as specified in the HOWTO with
cp -Rp * /mnt/hdc4/
executed as root from the old home directory). In response to your other request, the output of fdisk -l is "Konnte /dev/hdc nicht öffnen" (english: "Could not open /dev/hdc"). I will try your suggestion about creating /home2 etc. shortly and will report the results.
-
Nothing worked
OErjan,
I tried your suggested /home2 approach -- without success . What happened was that I could no longer login as the <username>, but instead got sent back to the login screen. I logged in as root and could mount /dev/hdc4 at /home but apparently the system could not do this.
I'm baffled
-
Senior Member
registered user
Don't be baffled.
First, rename the old home (old_home) will do. Next create a new home directory alongside it.
Next mount the new home temporarily (something like -- adjust to suit your system) mount -t ext3 /dev/hdc? /home
Copy everything you want from /old_home to /home
edit your /etc/fstab. You want a line something like:
/dev/hdc3 /home ext3 auto 0 0
the auto here is crucial -- omit it and you'll have to remount it by hand every time you boot.
Reboot.
Chances are that you'll only be able to log in as root. Don't panic. As root (hell, use Kde to do it) chown home.
Once you're sure everything is OK, grab back a little space by deleting /old_home.
-
Senior Member
registered user
The easiest way is to boot the knoppix CD with knoppix 2 dma then once at the command prompt.
Code:
mkfs.ext3 /dev/hdc4
mount /dev/hdc3 /mnt/hdc3
mount /dev/hdc4 /mnt/hdc4
cp -Rp /mnt/hdc3/home/* /mnt/hdc4/
Then edit the /etc/fstab and use this line for new /home.
Code:
/dev/hdc4 /home ext3 defaults 0 2
Reboot (shutdown -r now at the knoppix command line) and you should be using the new /home partition.
-
Senior Member
registered user
Wow!
Similar Threads
-
By radnor in forum Hdd Install / Debian / Apt
Replies: 8
Last Post: 03-17-2005, 02:58 PM
-
By firebyrd10 in forum General Support
Replies: 1
Last Post: 05-28-2004, 01:09 AM
-
By liebrand in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-20-2004, 04:28 PM
-
By stukennedyuk in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 02-13-2004, 02:55 PM
-
By eadz in forum The Lounge
Replies: 6
Last Post: 01-12-2003, 02:25 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Cisco GLC-FE-100FX-RGD 100BASE-FX SFP Transceiver Module
$17.99
Cisco Meraki MA-SFP-1GB-SX 1000BASE-SX SFP Transceiver Module
$24.99
Cisco Meraki MA-SFP-10GB-SR 10G SFP+ SR 850nm 300m LC MMF
$29.99
CISCO SFP GLC-GE-100FX 10-2019-02 100Base-FX SFP GBIC Transceiver Module 1pcs
$52.99
Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03
$8.00
SFP-10G-SR Original Cisco 10GBASE-SR SFP+ V02 Multi mode Transceiver 10-2415-02
$5.00
Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC
$13.89
Genuine Cisco ‎SFP-10G-SR Transceiver Module (10-2415-03)
$5.85
New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module
$49.99
10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module
$85.00