LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cant mnt / filesystem (https://www.linuxquestions.org/questions/linux-newbie-8/cant-mnt-filesystem-411067/)

browser 02-02-2006 08:01 PM

Cant mnt / filesystem
 
I have a couple of Linux Distros or so + XP64 on 2 drives + on 1 external drive,
Now no matter which Distro I log into I find I cant mount into any of their root Partitions or files even when I login as root.
All my distros on this PC only have the one partition (root) for each Distro along with Swap ,I dont worry about Home partitions to often.
"/dev/hdb1" is my SWAP
This is the similar error I get everytime I click on a particular HardDisk to mount

Could not mount device.
The reported error was:
mount: can't find /dev/hda2 in /etc/fstab or /etc/mtab.

I did try one time adding the partitions I wanted to mount in fstab but didnt work,"may have done it wrong"
AnyWay the Distro I am using at moment is SuSE10
Here is my "fdisk -l" if it helps ,I am trying to mount "/dev/hda2" which has Frugelware on it .

Disk /dev/hda: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 117603 59271786 7 HPFS/NTFS
/dev/hda2 117603 238216 60789046+ 83 Linux

Disk /dev/hdb: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 118 947803+ 82 Linux swap / Solaris
/dev/hdb2 119 7297 57665317+ 83 Linux

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 7320 58797868+ 83 Linux
/dev/sda2 7321 17616 82702620 83 Linux
/dev/sda3 17617 23783 49536427+ 83 Linux
linux:~ #

Does anyone know if its possible to mount the root partition of linux on another Distro ? And How

perfect_circle 02-02-2006 08:12 PM

just create a directory somewhere (probably in /mnt)
Code:

mkdir /mnt/other_root
and try something like:
Code:

mount /dev/hda2 /mnt/other_root
if it complains for unknown filesystem, add the -t flag with the correct filesystem:
Code:

mount /dev/hda2 /mnt/other_root -t reiserfs
or
Code:

mount /dev/hda2 /mnt/other_root -t ext3
or something like that.

bosewicht 02-02-2006 08:13 PM

ok, post the relevant parts of your fstab. yes, you should be able to mount any partition

browser 02-03-2006 03:19 AM

Mate- Your'e a Genious'
I did step 1 & 2 of your'e tutorial ,Followed it exactly not changing a word or letter & it worked Beautifuly.
Thanks- will Add this to my Tips & Tricks File on DeskTop.
AnyWay my fstab is


/dev/hdb2 / reiserfs acl,user_xattr 1 1
/dev/hdb1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/sda1 /data1 auto noauto,user 0 0
/dev/sda2 /data2 auto noauto,user 0 0
/dev/dvdrecorder /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/cdrecorder /media/cdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
none /subdomain subdomainfs noauto 0 0


All times are GMT -5. The time now is 03:47 AM.