You are not logged in.
Pages: 1
Hi
I recently reinstalled my arch because I messed my old installation up.
But during the installation, I could not mount my old /home to be my new /home
And I don't know how to mount it afterwards either, pleas help.
The filesystem is jfs
/Ato
Last edited by ato (2009-06-01 11:44:02)
Offline
Hi,
first of all you should try mounting it manually. Do you know the name of the partition (as in /dev/sda*)?
mkdir /mnt/home
mount -t jfs /dev/sdaX /mnt/home/
You may have to use sudo for this (if configured) or change the user to "root".
See whether this works alright. If it does just add an entry in /etc/fstab to mount the partition at boot time.
Have a look at: http://wiki.archlinux.org/index.php/Fstab
If you are unable to mount the partition by hand post the output here.
Cheers.
He who says A doesn't have to say B. He can also recognize that A was false.
Offline
first run
fdisk -l
as root.
from the output find the partition id of your old home partition(in the device column)
it will look like /dev/sda2
open /etc/fstab in a text editor as root and add the line
/dev/sda2 /home jfs rw,users,noauto,noatime 0 0
replace /dev/sda2 in the code above with the partition id you identified earlier and reboot your system it should mount your old home in /home when it restarts
note: if your new /home directory is not empty it might not mount it and if you have old configuration files in your home directory then it might give you a couple of errors
you could alternately try mounting your old home to a temporary folder and copy your files to the new home(might be a safer option)
you can mount a filesystem temporarily by using the mount command
first create a directory(as root)
cd /mnt
mkdir oldhome
then run the mount command as root
mount -t jfs /dev/sda2 /mnt/oldhome
then go to /mnt/oldhome and copy your files to the new home directory
then to unmount the oldhome directory type (as root)
umount /dev/sda2
IcePik
Samsung Series 5 Ultrabook NP530U3C-A01US
Intel® Core™ i5-3317U CPU @ 1.70GHz | 4 GB DDR3 | Intel® HD Graphics 4000 (Intel i915) | Intel® Centrino Advanced-N 6235
Offline
Go with the suggestion from kowalski first... It's a much simpler first step in working out what the problem is...
Last edited by fukawi2 (2009-05-28 09:56:11)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Neiter way is working
When I try to mount it like kowalski suggested this happens:
bash-3.2# mount -t jfs /dev/sdb6 /mnt/oldhome
mount: wrong fs type, bad option, bad superblock on /dev/sdb6,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
and when I try adding the line in /etc/fstab like IcePik suggested nothing happens, It does not mount my old /home to /home
my old /home is sdb6 and lies within the extended disk sdb4
bash-3.2# fdisk -l
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1add1adc
Device Boot Start End Blocks Id System
/dev/sda1 * 1 24320 195350368+ 7 HPFS/NTFS
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x67baa6e9
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 5 40162 83 Linux
/dev/sdb2 6 71 530145 82 Linux swap / Solaris
/dev/sdb3 72 1895 14651280 83 Linux
/dev/sdb4 1896 9729 62926605 5 Extended
/dev/sdb5 1896 2138 1951866 83 Linux
/dev/sdb6 2139 9729 60974676 83 Linux
Offline
What output does
dmesg | tail
give after trying to mount the disk?
Could it be you accidently re-wrote the partition table when reinstalling arch?
Furthermore do you have the package "jfsutils" installed?
If not install it and try mounting it again.
He who says A doesn't have to say B. He can also recognize that A was false.
Offline
bash-3.2# dmesg | tail
[drm] Initialized drm 1.1.0 20060810
pci 0000:01:00.0: setting latency timer to 64
[drm] Initialized radeon 1.29.0 20080528 on minor 0
[drm] Setting GART location based on new memory map
[drm] Loading R500 Microcode
[drm] Num pipes: 4
[drm] writeback test succeeded in 1 usecs
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
I didn't re-wrote the partition table when I reinstalled arch
and I have jfsutils installed
Offline
Is this actually the output of dmesg right after trying to mount the partition of interest?
No offense meant but I'm confused since it doesn't say anything about the error message stated above when you tried to mount the partition and got an error about wrong file system, bad blocks and so on.
He who says A doesn't have to say B. He can also recognize that A was false.
Offline
Kowalski's first post is the best one - if that fails, try
mount /dev/sdb6 /mnt/home # ie use 'auto' for filesystem
If that fails - your sdb6 is lost! (ie it has no proper filesystem on it)
Offline
Assuming you get the partition mounted, you might have a few additional housekeeping chores.
For example, you will want to change ownership on all the files in your home directory over to your username. Either as root or using the sudo command, execute the following command - substitute your own username wherever you see the word 'username' in the following line:
chown -R username /home/username/*
Also, you will need to change permissions. To give your username read, write, and execute permissions on all files in your home directory, but to exclude them from other users or members of your group for best security; either as root or using the sudo command, execute the following command - substitute your own username wherever you see the word 'username' in the following line:
chmod -R 700 /home/username/*
Cheers,
Luke Seubert
"To the question whether I am a pessimist or an optimist, I answer that my knowledge is pessimistic, but my willing and hoping are optimistic."
-- Albert Schweitzer
Offline
If that fails - your sdb6 is lost! (ie it has no proper filesystem on it)
Let's not jump to that conclusion just yet... What is the output of the following (run as root):
file - < /dev/sda6
On a JFS partition, it should say:
/dev/stdin: data
And try running an fsck over the partition:
fsck -f /dev/sda6
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
@kowalsky
yes this is the output directly after trying to mount with: mount -t jfs /dev/sdb6 /mnt/home
@perbh
mount /dev/sdb6 /mnt/home
does not work either
@fukawi2
bash-3.2# file - < /dev/sdb6
/dev/stdin: data
bash-3.2# fsck -f /dev/sdb6
fsck 1.41.5 (23-Apr-2009)
fsck.jfs version 1.1.14, 06-Apr-2009
processing started: 5/29/2009 9.29.44
The current device is: /dev/sdb6
Block size in bytes: 4096
Filesystem size in blocks: 15243669
**Phase 0 - Replay Journal Log
**Phase 1 - Check Blocks, Files/Directories, and Directory Entries
**Phase 2 - Count links
**Phase 3 - Duplicate Block Rescan and Directory Connectedness
**Phase 4 - Report Problems
**Phase 5 - Check Connectivity
**Phase 6 - Perform Approved Corrections
**Phase 7 - Rebuild File/Directory Allocation Maps
**Phase 8 - Rebuild Disk Allocation Maps
60974676 kilobytes total disk space.
3121 kilobytes in 1227 directories.
47244668 kilobytes in 10697 user files.
4 kilobytes in extended attributes
51193 kilobytes reserved for system use.
13681932 kilobytes are available for use.
Filesystem is clean.
What does this mean?
Offline
I'm not to deeply into fsck but judging from the output posted I'd say everything should work since fsck doesn't give any errors and says your filesystem is clean :-)
Furthermore fsck was able to tell you about the filesystem's disk space usage therefore it was able to read the disk's content.
So, your data appears not be lost. My last idea is to boot a gparted live cd and try mounting the partition from the live os as described in my first post. If that also doesn't work I'm totally lost.
Oh, I guess you tried mounting the disk after fsck ran didn't you?!
He who says A doesn't have to say B. He can also recognize that A was false.
Offline
:D:D:D:D:D:D;););););););):P:P:P:lol::lol::lol::lol::lol::lol::cool::cool::cool::cool::cool::cool::cool:
THANKS GUYS
IT WORKED
I'm so thankful, omg I was starting to lose hope
Offline
[solved]?
Offline
What did work? fsck -f?
He who says A doesn't have to say B. He can also recognize that A was false.
Offline
THANKS GUYS
IT WORKED
I'm so thankful, omg I was starting to lose hope
Glad it worked out. I know that sinking feeling as hope drains out of you after you realise something's gone wrong with your data.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
@kowlaski
yes after these two comands it worked:
file - < /dev/sdb6
fsck -f /dev/sdb6
I don't know if it was fsck -f that did it
@ karol
yes [solved]
how do you add it to the topic line?
Offline
Edit your first post and add [SOLVED] to the title.
Offline
Pages: 1