LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   cd /dev/hda dosn't work (https://www.linuxquestions.org/questions/ubuntu-63/cd-dev-hda-dosnt-work-402933/)

iarebob 01-13-2006 11:14 AM

cd /dev/hda dosn't work
 
i am trying to install osx on one of my drives. the tutorial i was following involved me cding into one of my drives. first i get a root shell (sudo -s i think) then i mount my drive. it says the drive is not in the /ect/fstab thingy magingy. so i open the diskmanager and attempt to enable it. it works and i can brows the folder useing the gui. when i attempt to mount it in the terminal it says that it's already mount. sounds great all i have to do now is cd into it right. well i try and guess what. i get the error file or firectory does not exist. wtf. any ideas? the mount point i set for it in the disk manager is /. mabey wrong mount point? i don't know how to change the fstab in ubuntu. is there an option at boot up to auto mount all my drives(i have 2 drives but the first one has 4 partions). any help would be great. it's the ubuntu 5.10 live cd.

aysiu 01-13-2006 11:45 AM

Quote:

Originally Posted by iarebob
i am trying to install osx on one of my drives.

Huh? You mean the bootlegged version of the x86 OS X?

Quote:

the tutorial i was following involved me cding into one of my drives.
cding from where? Ubuntu?

Quote:

first i get a root shell (sudo -s i think) then i mount my drive. it says the drive is not in the /ect/fstab thingy magingy.
Can you post exactly what you're typing to mount it and exactly what error you get?

Quote:

so i open the dickmanager and attempt to enable it. it works and i can brows the folder useing the gui.
What's the dickmanager?

Quote:

when i attempt to mount it in the terminal it says that it's already mount. sounds great all i have to do now is cd into it right. well i try and guess what. i get the error file or firectory does not exist. wtf. any ideas?
No ideas unless you post exactly what you're typing and exactly what errors you get. I still don't understand how mounting a partition in Ubuntu helps you install OS X...

Quote:

the mount point i set for it in the disk manager is /. mabey wrong mount point?
It's definitely wrong. / means the root mount point--that's the beginning of your entire filesystem, and it should already be mounted; otherwise, you wouldn't be in Ubuntu at all. You still haven't given any details about what you're trying to mount. Is this a Windows partition?

Quote:

i don't know how to change the fstab in ubuntu. is there an option at boot up to auto mount all my drives(i have 2 drives but the first one has 4 partions). any help would be great. it's the ubuntu 5.10 live cd.
If you're using a live CD, you won't be able to have the drives automount every time you boot up. This is a setting you can change only with an actual installation of Ubuntu. If you want a live CD that does this, try Knoppix or Mepis.

If you're still interested in mounting your partitions, post the output of these three commands (do not describe the output--copy and paste it exactly as it comes out):
Code:

cat /etc/fstab
sudo fdisk -l
df -h


zhelezov 01-13-2006 11:58 AM

Quote:

i am trying to install osx on one of my drives.
i don't get the point of installing within another OS.

Quote:

it works and i can brows the folder useing the gui. when i attempt to mount it in the terminal it says that it's already mount. sounds great all i have to do now is cd into it right. well i try and guess what. i get the error file or firectory does not exist.
You can browse it so it IS already mounted. Issuing the 'mount' command with no option in the term will show you the exact mountpoint and then just cd into it, as you say.

Quote:

is there an option at boot up to auto mount all my drives(i have 2 drives but the first one has 4 partions).
and now's the time to meet fstab face-to-face and add the option 'auto' in the options_field of every non-removable drive_partition you feel nessessary...

P.S. Slac, Ubuntu, OS installer - where are you in fact???

iarebob 01-13-2006 03:21 PM

root@dhcp-578-58:~# cat /etc/fstab
/dev/mapper/casper-snapshot / auto noatime 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
root@dhcp-578-58:~# sudo fdisk -l

Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/hda2 5100 24320 154392682+ f W95 Ext'd (LBA)
/dev/hda5 5100 10198 40957686 7 HPFS/NTFS
/dev/hda6 10199 15297 40957686 7 HPFS/NTFS
/dev/hda7 15298 24320 72477216 7 HPFS/NTFS

Disk /dev/hdb: 13.5 GB, 13520166912 bytes
255 heads, 63 sectors/track, 1643 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 2 1643 13189365 f W95 Ext'd (LBA)
/dev/hdb5 2 1643 13189333+ 7 HPFS/NTFS
root@dhcp-578-58:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/casper-snapshot
2.0G 1.3G 670M 65% /
tmpfs 507M 4.0K 507M 1% /dev/shm
tmpfs 507M 13M 494M 3% /lib/modules/2.6.12-9-386/volatile
tmpfs 507M 20K 507M 1% /tmp
tmpfs 10M 2.9M 7.2M 29% /dev

yes it is the x86 OSX.
i am cding from ubuntu.
typo i ment diskmanager.
i type sudo -s for the root shell.
i type mount /dev/hda1 and it says "mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab"
me mounting it is a step in getting os10 on my drive(http://www.360insider.net/forums/showthread.php?t=203)
i was mistaken it was acces path i was setting. still don't know what it should be. it is a windows(ntfs) partion that i am trying to mount(actually several partions all of which are windows)

aysiu 01-13-2006 08:49 PM

It looks as if you have four NTFS partitions. I'm going to assume /dev/hda1 is the one that really matters (and I still don't know how mounting it helps you install OS X... but you can figure that part out--the link you linked to made no sense to me).

Open a terminal and copy and paste these commands in this order:
Code:

sudo umount /dev/hda1
sudo mkdir /windows
sudo mount /dev/hda1 /windows -t ntfs -o nls=utf8,umask=0222
cd /windows
ls

If you prefer to browse it graphically, press Alt-F2 and type
Code:

nautilus /windows


All times are GMT -5. The time now is 05:41 PM.