How to mount internal drive just formatted to ext3
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You need to do three things:
a) create a mount point for /dev/hdd1 (mkdir /mnt/hdd1);
b) tell the systen it's there by adding it to /etc/fstab (/dev/hdd1 /mnt/hdd ext3 acl,user_xattr 1 2 (so that it looks like your hdb3 partition entry).
c) then use the mount command: mount /dev/hdd1.
You need to do three things:
a) create a mount point for /dev/hdd1 (mkdir /mnt/hdd1);
b) tell the systen it's there by adding it to /etc/fstab (/dev/hdd1 /mnt/hdd ext3 acl,user_xattr 1 2 (so that it looks like your hdb3 partition entry).
c) then use the mount command: mount /dev/hdd1.
Thanks for the reply. I was afraid to edit fstab. I tried to use vi the other day in another file, and couldn't get out; finally found out it was :wq.
Let me tell you! I tried every different way of putting it, but the search gave me an error every time. Probably I don't know how to do it, I read your link. It's very interesting; especially the permissions, because I think that's what happened to me; I did everything as root, but now I'm the user. Any ideas on how to get out of this hole?
My fdisk -l:
linux-wwtz:~ # fdisk -l
Disk /dev/hda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 14595 117234306 7 HPFS/NTFS
Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 262 2104483+ 82 Linux swap / Solaris
/dev/hdb2 263 2179 15398302+ 83 Linux
/dev/hdb3 2180 4998 22643617+ 83 Linux
Disk /dev/hdd: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 4870 39118243+ 83 Linux
linux-wwtz:~ #
Let me tell you! I tried every different way of putting it, but the search gave me an error every time. Probably I don't know how to do it, I read your link. It's very interesting; especially the permissions, because I think that's what happened to me; I did everything as root, but now I'm the user. Any ideas on how to get out of this hole?
If you haven't worked it out by now, /dev/hdd1 is the device.
Your diskspace (and any files) will be at /mnt/xwindowsd. Try looking there.
Thank you for your answer. I did find out it was hdd1. I created a dir /dev/mnt/xwindowsd. fdisk -l shows the drive but I can't access it. I think I did it as root and now I'm a user. I'm totally lost.Any ideas?
linux-wwtz:~ # fdisk -l
Disk /dev/hda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 14595 117234306 7 HPFS/NTFS
Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 262 2104483+ 82 Linux swap / Solaris
/dev/hdb2 263 2179 15398302+ 83 Linux
/dev/hdb3 2180 4998 22643617+ 83 Linux
Disk /dev/hdd: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 4870 39118243+ 83 Linux
linux-wwtz:~ #
As root, from the command line, enter the following commands EXACTLY AS WRITTEN:
mkdir /mnt/hdd1
chmod 777 /mnt/hdd1
mount -t ext3 /dev/hdd1 /mnt/hdd1
Then, to access the drive, forget all about /dev/hdd1. Go to /mnt/hdd1 and you'll be able to use it.
Thanks for the reply. I'll try it an let you know ASAP.
linux-wwtz:~ # mkdir /mnt/hdd1
linux-wwtz:~ # chmod 777 /mnt/hdd1
linux-wwtz:~ # mount -t ext3 /dev/mnt/hdd1
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
linux-wwtz:~ #
Im ok or I'm in trouble? Whats the next command if I need to issue one? Thanks for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.