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.
Alright, I put my Hi-MD recorder in fstab and it is safely mounted.
If I open up the folder I can view the folders I have on the disc, but then as soon as I click to open it I get an error saying "Couldn't display (folder) The attempt to login failed."
Can anyone explain this to me? I can see the partion plain as day....
Now, I'm not too intelligent on the subject. But what I think might be happening is that the drive "times out." I've seen this happen in my Windows enviroment..where I have to open the file via the actual program its accessed with. But when I right-click or go into said program to open I have no luck...
I'll wager you will find a /dev/sdb1 partition you should have been using, rather than /dev/sdb which refers to an entire un-partitioned drive. You have to mount a partition of a hard drive.
So my HiMD mounts cleanly, works, and its viewable.
You'll notice fstab now reports it again as /dev/sdb. I went a head and changed it just for the hell of it, and its working fine. Don't know why it works fine later than earlier, but that's the way its going.
But its read only.
Now we go to newbie territory...how do I change this so I can read and write?
Thanks again for all the help!
Last edited by otakuprinzess; 05-02-2005 at 11:18 AM.
kudzu (the hardware probe/configurator) can act strange sometimes, therefore I removed it from /etc/fstab options so it couldn't screw it up any more.
The umask option (a board/google/LDP search will find lots of the answers I have already posted) will control the user access. Linux can safely write to Windows FAT, VFAT and FAT32 filesystems and several other non-Linux filesystems, but you are likely to corrupt an NTFS filesystem as it is still in the reverse-engineered, pre beta stage.
You can also open an x terminal and look at these for more (but geekier) information.
man mount
info mount
man fstab
info fstab
man umount
info umount
Last edited by fancypiper; 05-02-2005 at 12:00 PM.
Did you remember that you need to be root to administer to your system?
Basic system administration
To change to the full root account (system administrator), if you are running X, open an x terminal and use these commands from your user account. Note the change in the prompt. You can do the same from a virtual terminal as well, but you can't open an x terminal to do so.
Code:
[fancy@tinwhistle fancy]$ su -
Password: <give root password and press enter>
[root@tinwhistle root]#
Remember, now whatever you command in root (it's the "god" mode. You can bless or destroy at your whim) usually gets done if enough system is left to carry out the command. Sit on your hands and read the commands you type at least 3 times before pressing the enter key when in root.
Code:
Mon May 02 09:27 PM fancy@uilleann ~ $ su -
Password:
Mon May 02 09:28 PM root@uilleann ~ # fdisk -l
Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 9729 78148161 c Win95 FAT32 (LBA)
Disk /dev/hda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 5008 40226728+ 7 HPFS/NTFS
/dev/hda2 5009 10010 40178565 f Win95 Ext'd (LBA)
/dev/hda5 5009 10010 40178533+ 7 HPFS/NTFS
Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 7 56196 83 Linux
/dev/hdb2 8 130 987997+ 83 Linux
/dev/hdb3 131 143 104422+ 83 Linux
/dev/hdb4 144 19457 155139705 5 Extended
/dev/hdb5 144 1056 7333641 83 Linux
/dev/hdb6 1057 1665 4891761 83 Linux
/dev/hdb7 1666 2274 4891761 83 Linux
/dev/hdb8 2275 2883 4891761 83 Linux
/dev/hdb9 2884 3492 4891761 83 Linux
/dev/hdb10 3493 4101 4891761 83 Linux
/dev/hdb11 4102 8357 34186288+ 83 Linux
/dev/hdb12 8358 19457 89160718+ 83 Linux
Mon May 02 09:28 PM root@uilleann ~ #
Gawd, I feel so stupid. Since the "command" was not found, I just figured it wasn't there. I didn't even bother to run it under root. It usually says "permission denied," but I suppose this is not the case with that command...
Here's whats going on at the moment:
Disk /dev/hda: 8037 MB, 8037679104 bytes
49 heads, 63 sectors/track, 5085 cylinders
Units = cylinders of 3087 * 512 = 1580544 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 5086 7849264+ 7 HPFS/NTFS
Disk /dev/hdc: 10.2 GB, 10262568960 bytes
255 heads, 63 sectors/track, 1247 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1194 9590773+ 83 Linux
/dev/hdc2 1195 1247 425722+ 5 Extended
/dev/hdc5 1195 1247 425691 82 Linux swap
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 14593 117218241 c W95 FAT32 (LBA)
Note: sector size is 2048 (not 512)
Disk /dev/sdb: 305 MB, 305915904 bytes
10 heads, 59 sectors/track, 253 cylinders
Units = cylinders of 590 * 2048 = 1208320 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 100 MB, 100663296 bytes
64 heads, 32 sectors/track, 96 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdc4 * 1 96 98288 6 FAT16
How does that work out?
/dev/sdb doesn't contain a valid partion table..how cute..I can still see and read everything! But its mounted read only. I used DiskDrake to format an MD into fat32, but it said the same damned thing. Go figure. But when I booted into Win2K I could see it the drive and use it all fine and dandy. So this morning I edited fstab and I just went with /dev/sdb instead of /dev/sdb1 and here we are: read only. Hmmph.
1. have from 1-4 primary partitions such as:
/dev/sda1
or
/dev/sda1
and
/dev/sda2
or
/dev/sda1
and
/dev/sda2
and
/dev/sda3
or
/dev/sda1
and
/dev/sda2
and
/dev/sda3
and
/dev/sda4.
2. One of these 4 partitions can be a, well, please, please, with sugar and cream on it, read the Linux Partition HOWTO. They explain much better than I can...
Links are posted to help, not be ignored, please a few clickies....
What's this bash command stuff?
# Bash shell commands Command Reference NHF O'Reilly Directory of Linux Commands
# Handy bash commands I might use or ask a newbie to use:
# Find CPU specifications
cat /proc/cpuinfo
# Find running kernel version
uname -r
# What modules are loaded
cat /proc/modules
/sbin/lsmod
# What compiler version do I have installed
gcc -v
gcc --version
# What is the running kernel and compiler installed
cat /proc/version
# Find X server version
X -showconfig
# What pci cards are installed and what irq/port is used
cat /proc/pci
# What kernel modules are loaded
lsmod
# Memory and swap information
cat /proc/meminfo
free
An article: Tips for Optimizing Linux Memory
# How are the hard drives partitioned
fdisk -l
# How much free/used drive space
df -h
# What drives are mounted
mount
# How much used drive space in a directory
du -sh /path/to/directory
# Show disk usage by current directory and all subdirectories
du | less
# What is the distribution
cat /etc/.product
cat /etc/.issue
cat /etc/issue
cat /etc/issue.net
sysinfo
# For finding or locating files
find
locate (updatedb needs to be run first)
which
whereis
# Use dmesg to view the kernel ring buffer (error messages)
dmesg | less
# Watch error messages as they happen (sysklog needed)
as root, tail -f /var/log/messages (shows last 10 lines, use a number in front of f for more lines)
# What processes are running
ps -A
# Find a process by name
ps -ef | grep -i <plain text>
For example, XCDroast
ps -ef xcdroast
# See current environment list, or pipe to file
env | more
env > environmentvariablelist.txt
# Show current userid and assigned groups
id
# See all command aliases for the current user
alias
# See rpms installed on current system
rpmquery --all | less
rpmquery --all > <filename>
rpmquery --all | grep -i <plaintext> Autospec for tarballs RPM tools
# What directory am I using
pwd
# Get ls colors in less
ls --color=always | less -R
Look at man <command> or info <command> for the flags I used and for other options you can use for bash commands.
Oh, btw, ignore the 1024 boundary error messages if you have a CPU bigger than an i386 processor. That is for backwards compatability. Most folk are i686 or higher now.
If you attempt to mount an extended partition (what you are attempting to do according to your /etc/fstab file), the drive does contain partitions as shown by your output, intepretatitation left to learner), Linux is smart enough to do what you are trying to tell it to do, but you are telling it wrong, so it does the best it can and mounts it read only.
Make a mount point for each of those partitions and mount each primary and logical partitions you found on that drive.
Edit /etc/fstab to reflect your changes and comment it so you can have some 'remembry.
Last edited by fancypiper; 05-02-2005 at 10:40 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.